I created a VS2008 solution with three projects in it (Class Library, Windows Application and Web Application). I use objects that I define in the class library in both a Windows application and a web application. This works great for a Windows application, but when I go to create an object in the code behind the webpage, I get a System.TypeLoadException:
Failed to load type 'Nutz.MusicMaster.Song' from assembly 'Nutz, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null'.
Description: An unhandled exception occurred during the execution of the current web request. View the stack trace for more information about the error and its occurrence in the code.
Exception Details: System.TypeLoadException: Failed to load type 'Nutz.MusicMaster.Song' from assembly 'Nutz, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null'.
I added a class library to the links in both the Windows application and the web application (right-click the "Links" → "Add Link" → "Projects" link).
Any ideas on what causes this would be much appreciated! Thank you Nutzy
Nutzy source
share