编译ASPNET程序中止后产生错误的解决方法

在编译ASPNET过程中,有时个我们需要中止编译或者因为其它原因导致编译中止;此时,重新打开工程后,有时会出现以下错误:

错误消息This error could also be due to mixing a file reference with a project reference to assembly '<assemblyname>. In this case, try replacing the file reference to '<assemblyfilename>' in project '<projectname1>' with a project reference to '<projectname2>'.
 

当你在尝试删除并重新添加引用等方法之后仍然无效的情况下,可采取彻底删除Temporary ASP.NET Files 文件夹中的内容来修正此问题。

Temporary ASP.NET Files 文件夹中的位置:%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files

 

参考:了解 ASP.NET 动态编译

posted @ 2009-11-05 16:42  Rickey Hu  阅读(253)  评论(0编辑  收藏  举报