unable to publish web service "Object reference not set to an instance of an object"

Home Page Forums BizTalk 2004 – BizTalk 2010 unable to publish web service "Object reference not set to an instance of an object"

Viewing 1 reply thread
  • Author
    Posts
    • #21946

      Hi , I have been working with BizTalk for a while, I was able to publish a few orchestrations 2 months ago using the web service publishing wizard, now I have added some maps, orchestrations and updated schemas, project is built ok but I am unable to publish and get the error

      “Failed to construct code for schema “http://MOI.Schemas.BSF_Xml_Schema“.
      Object reference not set to an instance of an object.”

      this error is a little ambigouos and I need help, I enabled trace but the output is also not very helpful to me, I am attaching the trace file details below

      Thanks

      ————————————————————
      Entering Wizard.Main

      BTSWebSvcWiz, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
      C:\Program Files\Microsoft BizTalk Server 2006\BTSWebSvcWiz.exe

      Arguments: Assembly=C:\BSF\SADAD\BSF.SADAD\BsfSadadUtilitiesLibrary\obj\Debug\BsfSadadUtilitiesLibrary.dll

      Parameter ASSEMBLY=C:\BSF\SADAD\BSF.SADAD\BsfSadadUtilitiesLibrary\obj\Debug\BsfSadadUtilitiesLibrary.dll
      Void .ctor()
      Void .ctor()
      Void .ctor()
      Progress: (0, 0, 100) Creating project “http://localhost/Sadad“…
      Creating project “http://localhost/Sadad“…
      CreateSolution: http://localhost/Sadad
      Progress: (0, 20, 100) Creating web service project at “http://localhost/Sadad“.
      Creating web service project at “http://localhost/Sadad“.
      ————————————————————
      Entering WebServiceProject..ctor

      [WebServiceProject] Location: http://localhost/Sadad
      [WebServiceProject] Overwrite: False
      Suppressed error: The system cannot find the path specified.

      [WebDirectoryHelper] Created:
        SchemaClassName: IIsWebDirectory
        Path: IIS://localhost/W3SVC/1/ROOT/Sadad
        physicalPath: c:\inetpub\wwwroot\Sadad
      [WebServiceProject] WebDirectoryEntry:
        URI: http://localhost/Sadad
        SchemaClassName: IIsWebDirectory
        Path: IIS://localhost/W3SVC/1/ROOT/Sadad
      [WebDirectoryEntry] Creating application…
        Name: Sadad
        InProcFlag: Pooled
      [WebDirectoryHelper] Created:
        SchemaClassName: IIsWebDirectory
        Path: IIS://localhost/W3SVC/1/ROOT/Sadad/bin
        physicalPath: c:\inetpub\wwwroot\Sadad\bin
      [WebDirectoryHelper] Created:
        SchemaClassName: IIsWebDirectory
        Path: IIS://localhost/W3SVC/1/ROOT/Sadad/App_Code
        physicalPath: c:\inetpub\wwwroot\Sadad\App_Code
      [WebDirectoryHelper] Created:
        SchemaClassName: IIsWebDirectory
        Path: IIS://localhost/W3SVC/1/ROOT/Sadad/xsd
        physicalPath: c:\inetpub\wwwroot\Sadad\xsd
      ASP.NET Version: 1.1.4322.2379

      Exiting WebServiceProject..ctor
      (Elapsed time: 0.7500048 seconds)
      ————————————————————
      IIS Version: 6.6
      IIS Version: 6.6
      Progress: (0, 40, 100) Generating code “WebServiceDescription.xml”.
      Generating code “WebServiceDescription.xml”.
      ————————————————————
      Entering ImplementationGenerator.Generate

      Constructing code…
      IIS Version: 6.6
      Loading schemas…
      Loading message part schemas…
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      Adding schema http://MOI.Schemas.BSF_Xml_Schema
      CodeSchemaManager.AddSchema() added MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      [Schema] ### Getting XmlSchema across AppDomain ###
      [XmlSchemaMover] Unpack: MOI.BSF_MOI_Schema <<< AppDomain=BTSWebSvcWiz.exe
      [XmlSchemaMover] ComposeSchema: MOI.BSF_MOI_Schema
      [Schema] ### Got XmlSchema across AppDomain ###
      CodeSchemaManager.AddSchema() http://MOI.Schemas.BSF_Xml_Schema#BSF_MOI
      CodeSchemaManager.AddSchema() skiped MOI.BSF_MOI_Schema, MOI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e7ab72180c3d4c65
      Loaded schemas:
      * http://MOI.Schemas.BSF_Xml_Schema
      Constructing classes from schemas…
      Constructing code for schema: http://MOI.Schemas.BSF_Xml_Schema
      XmlSchemaObject typeName=System.Xml.Schema.XmlSchemaElement
      Failed to construct code for schema “http://MOI.Schemas.BSF_Xml_Schema“.
      Object reference not set to an instance of an object.

      Exiting ImplementationGenerator.Generate
      (Elapsed time: 24.5157819 seconds)
      ————————————————————
      Microsoft.BizTalk.WebServices.PublishingException: Failed to construct code for schema “http://MOI.Schemas.BSF_Xml_Schema“.
      Object reference not set to an instance of an object. —> System.NullReferenceException: Object reference not set to an instance of an object.
         at System.Data.SqlTypes.SqlTypesSchemaImporterExtensionHelper.ImportSchemaType(XmlSchemaType type, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider)
         at System.Xml.Serialization.XmlSchemaImporter.FindExtendedType(XmlSchemaType type, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, SchemaImporterExtension& extension)
         at System.Xml.Serialization.XmlSchemaImporter.RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.GatherGroupChoices(XmlSchemaParticle particle, NameTable choiceElements, String identifier, String ns, Boolean& needExplicitOrder, Boolean allowDuplicates)
         at System.Xml.Serialization.XmlSchemaImporter.ImportChoiceGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& needExplicitOrder, Boolean allowDuplicates)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType)
         at System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType, Boolean baseTypeCanBeIndirect)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping(XmlQualifiedName name)
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForSchema(CodeNamespace codeNamespace, XmlSchemaImporter schemaImporter, XmlCodeExporter codeExporter, XmlSchema xmlSchema, UInt32 depth)
         — End of inner exception stack trace —
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForSchema(CodeNamespace codeNamespace, XmlSchemaImporter schemaImporter, XmlCodeExporter codeExporter, XmlSchema xmlSchema, UInt32 depth)
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForXsdTypes(CodeCompileUnit codeCompileUnit, CodeNamespace baseCodeNamespace)
         at Microsoft.BizTalk.WebServices.Compilation.ImplementationGenerator.ConstructImplementationForWebServiceDescription(WebServiceDescription webServiceDescription)
         at Microsoft.BizTalk.WebServices.Compilation.ImplementationGenerator.Generate(WebServiceDescription webServiceDescription)
         at Microsoft.BizTalk.WebServices.WebServiceBuilder.BuildWebService()
      Failed to create project “http://localhost/Sadad“.
      Failed to construct code for schema “http://MOI.Schemas.BSF_Xml_Schema“.
      Object reference not set to an instance of an object.
      Object reference not set to an instance of an object.
      Progress: (0, 100, 100) Failed to create project “http://localhost/Sadad“.
      Failed to create project “http://localhost/Sadad“.
      Microsoft.BizTalk.WebServices.PublishingException: Failed to create project “http://localhost/Sadad“. —> Microsoft.BizTalk.WebServices.PublishingException: Failed to construct code for schema “http://MOI.Schemas.BSF_Xml_Schema“.
      Object reference not set to an instance of an object. —> System.NullReferenceException: Object reference not set to an instance of an object.
         at System.Data.SqlTypes.SqlTypesSchemaImporterExtensionHelper.ImportSchemaType(XmlSchemaType type, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider)
         at System.Xml.Serialization.XmlSchemaImporter.FindExtendedType(XmlSchemaType type, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, SchemaImporterExtension& extension)
         at System.Xml.Serialization.XmlSchemaImporter.RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.GatherGroupChoices(XmlSchemaParticle particle, NameTable choiceElements, String identifier, String ns, Boolean& needExplicitOrder, Boolean allowDuplicates)
         at System.Xml.Serialization.XmlSchemaImporter.ImportChoiceGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& needExplicitOrder, Boolean allowDuplicates)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementMember(XmlSchemaElement element, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean repeats, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroupMembers(XmlSchemaParticle particle, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean groupRepeats, Boolean& mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportGroup(XmlSchemaGroupBase group, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, String ns, Boolean mixed, Boolean& needExplicitOrder, Boolean allowDuplicates, Boolean groupRepeats, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMembers(XmlSchemaType type, String typeNs, String identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, Boolean& needExplicitOrder, Boolean order, Boolean allowUnboundedElements)
         at System.Xml.Serialization.XmlSchemaImporter.ImportStructType(XmlSchemaType type, String typeNs, String identifier, Type baseType, Boolean arrayLike)
         at System.Xml.Serialization.XmlSchemaImporter.ImportType(XmlSchemaComplexType type, String typeNs, String identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElementType(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlSchemaElement element, String identifier, Type desiredMappingType, Type baseType, String ns, Boolean topLevelElement)
         at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType)
         at System.Xml.Serialization.XmlSchemaImporter.ImportDerivedTypeMapping(XmlQualifiedName name, Type baseType, Boolean baseTypeCanBeIndirect)
         at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping(XmlQualifiedName name)
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForSchema(CodeNamespace codeNamespace, XmlSchemaImporter schemaImporter, XmlCodeExporter codeExporter, XmlSchema xmlSchema, UInt32 depth)
         — End of inner exception stack trace —
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForSchema(CodeNamespace codeNamespace, XmlSchemaImporter schemaImporter, XmlCodeExporter codeExporter, XmlSchema xmlSchema, UInt32 depth)
         at Microsoft.BizTalk.WebServices.Compilation.DataTypesImplementStrategy.ConstructCodeForXsdTypes(CodeCompileUnit codeCompileUnit, CodeNamespace baseCodeNamespace)
         at Microsoft.BizTalk.WebServices.Compilation.ImplementationGenerator.ConstructImplementationForWebServiceDescription(WebServiceDescription webServiceDescription)
         at Microsoft.BizTalk.WebServices.Compilation.ImplementationGenerator.Generate(WebServiceDescription webServiceDescription)
         at Microsoft.BizTalk.WebServices.WebServiceBuilder.BuildWebService()
         — End of inner exception stack trace —
         at Microsoft.BizTalk.WebServices.WebServiceBuilder.BuildWebService()
         at Microsoft.BizTalk.WebServices.Wizard.ProgressPage.CreateSolution()
      The wizard failed to create the ASP.NET Web Service project.
      Click Back to make changes and try again.
      Return value: 0

      Exiting Wizard.Main
      (Elapsed time: 2864.1745806 seconds)
      ————————————————————

    • #25738

      Looks like the problem is related to the http://MOI.Schemas.BSF_Xml_Schema schema?
      Is the assembly containing this schema deployed?
      Does this assembly reference any other assemblies, are these assemblies available in the GAC?

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.