I have a c# .NET 2.0 application that has been running on W2K/IIS5 quite happily for several years. The sysadmin team are currently setting up a W2K3 box for the app, using the same install files, but are running into the dreaded ‘Could not load type…’ error. The type in question is the class (i.e. code behind) for the page being requested.
I’ve read that switching the .NET version to 1.1 and back to 2.0 can fix the problem, but we’ve tried this with no luck.
Any ideas? Most of the info I can find is about solving the problem when it happens during development, running the app from Visual Studio.
Thanks, Jon.
Your best bet for finding out why an assembly isn’t loading is the Assembly Binding Log Viewer. http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx