none
System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.Schema.Preprocessor.BuildSchemaList(XmlSchema schema) chamadas ASMX RRS feed

  • Pergunta

  • Bom dia!

    Utilizamos vários WS .asmx na maioria deles, após um recycle ou, eventualmente, "do nada", começa uma avalanche de erros como os que seguem abaixo:

    ALgumas vezes dá erro de referencia nula (Object reference not set to an instance of an object) e outras, The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared

    NullReferenceException:HttpUnhandledException:InvalidOperationException: System.InvalidOperationException The XML Web service help page encountered an internal error. at System.Web.Services.Protocols.WebServiceHandler.Void WriteException(System.Exception)() at System.Web.Services.Protocols.WebServiceHandler.Void CoreProcessRequest()() Caused by: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.Schema.Preprocessor.BuildSchemaList(XmlSchema schema) at System.Xml.Schema.Preprocessor.Execute(XmlSchema schema, String targetNamespace, Boolean loadExternals) at System.Xml.Schema.XmlSchemaSet.PreprocessSchema(XmlSchema& schema, String targetNamespace) at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, XmlSchema schema) at System.Xml.Schema.XmlSchemaSet.Add(XmlSchema schema) at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at ASP.defaultwsdlhelpgenerator_aspx.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.defaultwsdlhelpgenerator_aspx.ProcessRequest(HttpContext context) at System.Web.Services.Protocols.DocumentationServerProtocol.WriteReturns(Object[] returnValues, Stream outputStream) at System.Web.UI.Page.Boolean HandleError(System.Exception)() at System.Web.UI.Page.Void ProcessRequestMain(Boolean, Boolean)() ... 12 more Caused by: System.NullReferenceException: Object reference not set to an instance of an object. at System.Xml.Schema.Preprocessor.BuildSchemaList(XmlSchema schema) at System.Xml.Schema.Preprocessor.Execute(XmlSchema schema, String targetNamespace, Boolean loadExternals) at System.Xml.Schema.XmlSchemaSet.PreprocessSchema(XmlSchema& schema, String targetNamespace) at System.Xml.Schema.XmlSchemaSet.Add(String targetNamespace, XmlSchema schema) at System.Xml.Schema.XmlSchemaSet.Add(XmlSchema schema) at System.Collections.CollectionBase.System.Collections.IList.Add(Object value) at ASP.defaultwsdlhelpgenerator_aspx.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Xml.Schema.Preprocessor.Void BuildSchemaList(System.Xml.Schema.XmlSchema)() at System.Xml.Schema.Preprocessor.Boolean Execute(System.Xml.Schema.XmlSchema, System.String, Boolean)() ... 12 more Error capture limit has been reached, this stack trace is truncated.

    Exception of type 'System.Web.HttpUnhandledException' was thrown.
    at System.Web.UI.Page.Boolean HandleError(System.Exception)()
    at System.Web.UI.Page.Void ProcessRequestMain(Boolean, Boolean)()
    at System.Web.UI.Page.Void ProcessRequest(Boolean, Boolean)()
    at System.Web.UI.Page.Void ProcessRequest()()
    at System.Web.UI.Page.Void ProcessRequest(System.Web.HttpContext)()
    at ASP.defaultwsdlhelpgenerator_aspx.ProcessRequest()
    at System.Web.Services.Protocols.DocumentationServerProtocol.WriteReturns()
    at System.Web.Services.Protocols.WebServiceHandler.WriteReturns()
    at System.Web.Services.Protocols.WebServiceHandler.Invoke()
    at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
    at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest()
    at System.Web.Script.Services.ScriptHandlerFactory+HandlerWrapper.ProcessRequest()
    at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep()
    at System.Web.HttpApplication+PipelineStepManager.ResumeSteps()
    at System.Web.HttpApplication.BeginProcessRequestNotification()
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate()
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper()
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification()
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion()
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion()
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper()
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification() 
    Caused by: System.Web.HttpUnhandledException : System.Xml.Schema.XmlSchemaException: The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared. at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e) at System.Xml.Schema.Compiler.Prepare(XmlSchema schema, Boolean cleanup) at System.Xml.Schema.XmlSchemaSet.Compile() at System.Xml.Serialization.XmlSchemas.Compile(ValidationEventHandler handler, Boolean fullCompile) at System.Web.Services.Description.SchemaCompiler.Compile(XmlSchemas schemas) at System.Web.Services.Description.WebServicesInteroperability.AnalyzeDescription(ServiceDescriptionCollection descriptions, BasicProfileViolationCollection violations) at System.Web.Services.Description.WebServicesInteroperability.CheckConformance(WsiProfiles claims, ServiceDescriptionCollection descriptions, BasicProfileViolationCollection violations) at ASP.defaultwsdlhelpgenerator_aspx.Page_Load(Object sender, EventArgs e) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\DefaultWsdlHelpGenerator.aspx:line 1439 at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at at System.Xml.Schema.XmlSchemaSet.Void InternalValidationCallback(System.Object, System.Xml.Schema.ValidationEventArgs)() 
    at System.Xml.Schema.Compiler.Void Prepare(System.Xml.Schema.XmlSchema, Boolean)() 
    at System.Xml.Schema.XmlSchemaSet.Void Compile()() 
    at System.Xml.Serialization.XmlSchemas.Void Compile(System.Xml.Schema.ValidationEventHandler, Boolean)() 
    at System.Web.Services.Description.SchemaCompiler.System.Collections.Specialized.StringCollection Compile(System.Xml.Serialization.XmlSchemas)() 
    at System.Web.Services.Description.WebServicesInteroperability.Void AnalyzeDescription(System.Web.Services.Description.ServiceDescriptionCollection, System.Web.Services.Description.BasicProfileViolationCollection)() 
    at System.Web.Services.Description.WebServicesInteroperability.Boolean CheckConformance(System.Web.Services.WsiProfiles, System.Web.Services.Description.ServiceDescriptionCollection, System.Web.Services.Description.BasicProfileViolationCollection)() 
    at ASP.defaultwsdlhelpgenerator_aspx.Void Page_Load(System.Object, System.EventArgs)() 
    at System.Web.UI.Control.Void OnLoad(System.EventArgs)() 
    at System.Web.UI.Control.Void LoadRecursive()() ... 18 more

    Alguém faz ideia do que pode ser? Utilizamos o .net Framework 4.Obrigado

    Edson

    terça-feira, 24 de abril de 2018 11:36

Respostas

  • Boa tarde,

    Por falta de retorno essa thread está encerrada.

    Se necessário, favor abrir uma nova thread.

    Atenciosamente,


    Filipe B de Castro

    Esse conteúdo é fornecido sem garantias de qualquer tipo, seja expressa ou implícita

    MSDN Community Support

    Por favor, lembre-se de Marcar como Resposta as postagens que resolveram o seu problema. Essa é uma maneira comum de reconhecer aqueles que o ajudaram e fazer com que seja mais fácil para os outros visitantes encontrarem a resolução mais tarde.

    quarta-feira, 2 de maio de 2018 19:13
    Moderador

Todas as Respostas

  • Boa noite. Tudo bem?

    Obrigado por usar o fórum MSDN.

    Poderia por favor me dar mais informações sobre o problema? O que estão tentando fazer, etc.

    Atenciosamente,

    Filipe B de Castro

    Esse conteúdo é fornecido sem garantias de qualquer tipo, seja expressa ou implícita

    MSDN Community Support

    Por favor, lembre-se de Marcar como Resposta as postagens que resolveram o seu problema. Essa é uma maneira comum de reconhecer aqueles que o ajudaram e fazer com que seja mais fácil para os outros visitantes encontrarem a resolução mais tarde.

    terça-feira, 24 de abril de 2018 22:10
    Moderador
  • Boa tarde,

    Por falta de retorno essa thread está encerrada.

    Se necessário, favor abrir uma nova thread.

    Atenciosamente,


    Filipe B de Castro

    Esse conteúdo é fornecido sem garantias de qualquer tipo, seja expressa ou implícita

    MSDN Community Support

    Por favor, lembre-se de Marcar como Resposta as postagens que resolveram o seu problema. Essa é uma maneira comum de reconhecer aqueles que o ajudaram e fazer com que seja mais fácil para os outros visitantes encontrarem a resolução mais tarde.

    quarta-feira, 2 de maio de 2018 19:13
    Moderador