(Mysterious) TypeLoadException Debugging

R

ryan groth

Every three or four compiles I get a TypeLoadException everytime I run a
web application on the same one or two dlls. The exception information
is vauge, no file errors, no permission errors, no binding errors
(according to fuslogvw), no file version problems, the dll that the type
is coming from is in the web's bin directory and has the version
specified on the error screen, the IL is valid in the dll of the type
being loaded. One odd thing is that the web applications dll has errors
(see below) but that may be normal. The problem disapears on rebuild
solution 1 out of 4 times. What else can I do to get a more detailed
reason for the typeloadexception? I have been all over google.

Could not load type qt.rs.te.te from assembly qt.rs.te,
Version=1.0.2000.27408, Culture=neutral, PublicKeyToken=null.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

=== ERROR ATTACHMENT

Exception Details: System.TypeLoadException: Could not load type
qt.rs.te.te from assembly qt.rs.te, Version=1.0.2000.27408,
Culture=neutral, PublicKeyToken=null.

Source Error:


[No relevant source lines]


Source File:
D:\Development\Dotnet\Administrator\www\Administrator\ApplicationState.vb
Line: 29

Stack Trace:


[TypeLoadException: Could not load type qt.rs.te.te from assembly
qt.rs.te, Version=1.0.2000.27408, Culture=neutral, PublicKeyToken=null.]
qt.ad.ApplicationState.Init() +0
qt.ad.ApplicationState.LoadState() in
D:\Development\Dotnet\Administrator\www\Administrator\ApplicationState.vb:29
qt.ad.Global.Application_Start(Object sender, EventArgs e) in
D:\Development\Dotnet\Administrator\www\Administrator\Global.asax.vb:35


=== PEVERIFY OUTPUT ON MAIN DLL
D:\Development\Dotnet\Administrator\www\Administrator\bin>peverify Admi
nistrator.Web.dll

Microsoft (R) .NET Framework PE Verifier Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000001]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000008]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000000E]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000000F]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000016]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000017]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000001D]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000001E]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000026]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000027]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000002D]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000002E]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000034]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000035]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000003A]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000040]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000046]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000047]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000004E]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000004F]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000056]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000059]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000064]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x00000065]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000006A]
[MD]: Error: MethodImpl's Decl and Body method signatures do not match.
[token:
0x0000006B]
26 Errors Verifying Administrator.Web.dll
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top