none
No se puede serializar el miembro WebApplication9.modelo.estado.CatUsuario de tipo System.Collections.Generic.ICollection`1[[WebApplication9.modelo.CatUsuario, WebApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] porque es una interfaz RRS feed

  • Pregunta

  • Error de servidor en la aplicación '/'.

    No se puede serializar el miembro WebApplication9.modelo.estado.CatUsuario de tipo System.Collections.Generic.ICollection`1[[WebApplication9.modelo.CatUsuario, WebApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] porque es una interfaz.

    Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

    Detalles de la excepción: System.NotSupportedException: No se puede serializar el miembro WebApplication9.modelo.estado.CatUsuario de tipo System.Collections.Generic.ICollection`1[[WebApplication9.modelo.CatUsuario, WebApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] porque es una interfaz.

    Error de código fuente:
    Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

    Seguimiento de la pila:
    [NotSupportedException: No se puede serializar el miembro WebApplication9.modelo.estado.CatUsuario de tipo System.Collections.Generic.ICollection`1[[WebApplication9.modelo.CatUsuario, WebApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] porque es una interfaz.]
    
    [InvalidOperationException: No se puede serializar el miembro 'WebApplication9.modelo.estado.CatUsuario' del tipo 'System.Collections.Generic.ICollection`1[[WebApplication9.modelo.CatUsuario, WebApplication9, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]', consulte la excepción interna para obtener detalles.]
       System.Xml.Serialization.StructModel.CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type) +5322397
       System.Xml.Serialization.StructModel.GetPropertyModel(PropertyInfo propertyInfo) +125
       System.Xml.Serialization.StructModel.GetFieldModel(MemberInfo memberInfo) +93
       System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +272
       System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter) +416
       System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1849
    
    [InvalidOperationException: Error al reflejar el tipo 'WebApplication9.modelo.estado'.]
       System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1975
       System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +2547
       System.Xml.Serialization.XmlReflectionImporter.ImportFieldMapping(StructModel parent, FieldModel model, XmlAttributes a, String ns, RecursionLimiter limiter) +144
       System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +926
    
    [InvalidOperationException: Error al reflejar la propiedad 'estado'.]
       System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter) +1705
       System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter) +416
       System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1849
    
    [InvalidOperationException: Error al reflejar el tipo 'WebApplication9.modelo.CatUsuario'.]
       System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter) +1975
       System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +2547
       System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlReflectionMember xmlReflectionMember, String ns, XmlReflectionMember[] xmlReflectionMembers, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +883
       System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +300
    
    [InvalidOperationException: Error al reflejar 'consultarUsuarioByIdResult'.]
       System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +1022
       System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(String elementName, String ns, XmlReflectionMember[] members, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, XmlMappingAccess access) +139
       System.Web.Services.Protocols.SoapReflector.ImportMembersMapping(XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, Boolean serviceDefaultIsEncoded, Boolean rpc, SoapBindingUse use, SoapParameterStyle paramStyle, String elementName, String elementNamespace, Boolean nsIsDefault, XmlReflectionMember[] members, Boolean validate, Boolean openModel, String key, Boolean writeAccess) +248
       System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs) +3068
    
    [InvalidOperationException: No se puede reflejar el método serviciousuarios.consultarUsuarioById.]
       System.Web.Services.Protocols.SoapReflector.ReflectMethod(LogicalMethodInfo methodInfo, Boolean client, XmlReflectionImporter xmlImporter, SoapReflectionImporter soapImporter, String defaultNs) +6531
       System.Web.Services.Description.SoapProtocolReflector.ReflectMethod() +144
       System.Web.Services.Description.ProtocolReflector.ReflectBinding(ReflectedBinding reflectedBinding) +1755
       System.Web.Services.Description.ProtocolReflector.Reflect() +661
       System.Web.Services.Description.ServiceDescriptionReflector.ReflectInternal(ProtocolReflector[] reflectors) +729
       System.Web.Services.Description.ServiceDescriptionReflector.Reflect(Type type, String url) +128
       System.Web.Services.Protocols.DocumentationServerType..ctor(Type type, String uri, Boolean excludeSchemeHostPortFromCachingKey) +248
       System.Web.Services.Protocols.DocumentationServerProtocol.Initialize() +463
       System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +127
    
    [InvalidOperationException: No se puede administrar la solicitud.]
       System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +333
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +179
    
    [InvalidOperationException: No se pudo administrar la solicitud.]
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +390
       System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +225
       System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +48
       System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +318
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163
    


    Información de versión: Versión de Microsoft .NET Framework:4.0.30319; Versión ASP.NET:4.8.3928.0
    viernes, 8 de noviembre de 2019 13:42

Todas las respuestas