System.TypeLoadException

G

Guest

Having some trouble with my assembly running another assembly, and I am
starting to suspect this may be a windows bug or a framework bug.

Everything works fine on my development workstation (XP Pro, FW 1.1). When
I copy the binary assemblies to the server machine (2000 Server SP4, FW 1.1)
where the apps will be run, I have problems...specifically:

Unhandled Exception: System.TypeLoadException: Could not load type <vendor
type here> from assembly <vendors assembly name here> because the format is
invalid.

The <vendor type name> is Interop.AMOExecutants
and the assembly details are:
InterOp.AMOExecutants, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null

The app having the problem is not strong named, as the vendor stuff is not
signed, so I am not able to sign my stuff either.

Any help is appreciated.
 
G

Guest

I am also having this problem. From my understanding, rebuilding my project
using VS 2003, using .Net 2.0 SDK is causing this to occur.

I've been googling and noticed other people with this problem. I did not
find any concrete details as to what causes this exception and why.

Any advice would be appreciated.

Details Below.

An unhandled exception of type System.TypeLoadException' occured in
mscorlib.dll

Additional information: Could not load type
System.Xml.Serialization.XmlSerializerAssemblyAttribute from assembly
System.Xml, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b41d4h128443a340

Stack trace:
Could not load type System.Xml.Serialization.XmlSerializerAssemblyAttribute
from assembly System.Xml, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089.
at System.Reflection.CustomAttribute.GetCustomAttributeList(Int32 token,
IntPtr module, RuntimeType caType, CustomAttribute caItem, Int32 level)
at System.Reflection.CustomAttribute.GetCustomAttributeListCheckType(Int32
token, IntPtr module, Type caType, CustomAttribute caItem, Int32 level)
at System.Reflection.CustomAttribute.GetCustomAttributeList(MemberInfo
member, Type caType, CustomAttribute caItem, Int32 level)
at System.Reflection.CustomAttribute.GetCustomAttributes(MemberInfo member,
Type caType, Boolean inherit)
at System.Reflection.CustomAttribute.GetCustomAttributes(Type type, Type
caType, Boolean inherit)
at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean
inherit)
at
System.Xml.Serialization.XmlReflectionImporter.IncludeTypes(ICustomAttributeProvider provider)
at System.Web.Services.WebMethodReflector.IncludeTypes(LogicalMethodInfo[]
methods, XmlReflectionImporter importer)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()
at ...


Thanks, Mark.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top