none
Publish Error In Visual Studio 2010 - TypeLoadError RRS feed

  • Question

  • Hi:  I am having trouble publishing my website...sometime it will publish, sometimes it will not...even without changing anything.  After Debugging the compile, when the solution publishes, I do not get a TypeLoadException.   When the publish doesn't go through, it is an error on a page that I built.  The error is a TypeLoadException....Cound not load type "MySolutionNameSpace.WebPageClass" from assembly.   The .dll is being built during the publish.  If I rename the class, it appears to load that assembly fine, and it gives an error on another assembly (on a page that I built).   I have cleaned my .dlls and in my webconfig I set a different tempDirectory each time.  I close VS, and even Reboot..and no luck.   During debugging the compile, and I get the error, I viewed the assembly during publish as soon as I get the error and everything in the .dll appears fine....what it is trying to load is there in the .dll   I am at a standstill.  I am using Visual Studio 2010 Professional   Version 10.040219.1 SP1Rel    Microsoft .Net Framework Version 4.5.50938 SP1 Rel.  The application runs fine as expected.

    
    
    • Moved by 宝宝徐 Tuesday, September 26, 2017 8:49 AM
    Wednesday, September 20, 2017 1:01 PM

All replies

  • Hi RobbPat,

    Welcome to MSDN forum.

    This forum is to talk about visual studio IDE, I recommend you open a new thread in Microsoft asp.net Configuration and Deployment forum to get professional support. Thank you for understanding.

    Best regards,

    Joyce


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, September 21, 2017 7:54 AM