Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Visual Studio 2010 - TypeLoadException During Publish

$
0
0

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 in the application, 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

      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....meaing, what it is trying to load is  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.


Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>