Could not load type error for any webservice on ASP.NET 2.0 beta 2

Discussion in 'ASP .Net' started by mrkurt@gmail.com, Aug 24, 2005.

  1. Guest

    I've built a few webservices locally that work just fine. Deployed
    them to a server and I get the following exception. This exception
    happens on even the most basic webmethod call. Hitting the webservice
    without calling a webmethod brings up the WSDL and such as I would
    expect, only when I make an actual call does this happen. Any ideas?

    System.TypeLoadException: Could not load type
    'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from
    assembly 'mscorlib, Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089'.
    at System.ModuleHandle.ResolveType(Int32 typeToken,
    RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount,
    RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
    at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken,
    RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[]
    methodInstantiationContext)
    at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[]
    genericTypeArguments, Type[] genericMethodArguments)
    at
    System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord
    caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module
    decoratedModule, MetadataToken decoratedToken, RuntimeType
    attributeFilterType, Boolean mustBeInheritable, Object[] attributes,
    IList derivedAttributes, RuntimeType& attributeType,
    RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean&
    isVarArg)
    at System.Reflection.CustomAttribute.GetCustomAttributes(Module
    decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount,
    RuntimeType attributeFilterType, Boolean mustBeInheritable, IList
    derivedAttributes)
    at System.Reflection.CustomAttribute.GetCustomAttributes(Assembly
    assembly, RuntimeType caType)
    at System.Reflection.Assembly.GetCustomAttributes(Type
    attributeType, Boolean inherit)
    at
    System.Xml.Serialization.TempAssembly.AssemblyAllowsPartialTrust(Assembly
    a)
    at
    System.Xml.Serialization.TempAssembly.AssemblyAllowsPartialTrust(Assembly
    a)
    at
    System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[]
    xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
    CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
    xmlMappings, Type[] types, String defaultNamespace, String location,
    Evidence evidence)
    at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
    mappings, Evidence evidence)
    at
    System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[]
    methodInfos)
    at
    System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[]
    methodInfos)
    at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type
    type, LogicalMethodInfo[] methodInfos)
    at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
    at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
    type, HttpContext context, HttpRequest request, HttpResponse response,
    Boolean& abortProcessing)
    , Aug 24, 2005
    #1
    1. Advertising

  2. John Horst Guest

    I am assuming you developed the web services in 2.0. Make sure your
    target server is running 2.0 as well.

    John
    John Horst, Aug 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Parkinson
    Replies:
    2
    Views:
    503
    Kevin Parkinson
    Apr 3, 2004
  2. =?Utf-8?B?c2VndWU=?=

    Could not load type asp.net

    =?Utf-8?B?c2VndWU=?=, Jul 29, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    6,890
    =?Utf-8?B?c2VndWU=?=
    Aug 1, 2005
  3. =?Utf-8?B?Q3VydGlzcw==?=

    could not load type error message from ASP.NET

    =?Utf-8?B?Q3VydGlzcw==?=, Aug 11, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    381
    =?Utf-8?B?Q3VydGlzcw==?=
    Aug 11, 2005
  4. Replies:
    10
    Views:
    17,108
  5. Rob R. Ainscough
    Replies:
    4
    Views:
    3,804
    Jennifer
    Feb 27, 2006
Loading...

Share This Page