asp.Net   发布时间:2022-04-07  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了清除ASP.NET临时文件缓存的麻烦大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我现在在我的智慧之中奋斗了两个多小时.

ASP.NET临时文件缓存仍然有我的程序集的旧副本,结果我无法运行我的应用程序.

我实际上将我的一个类的名称从HomePage更改为HomePageViewModel.所以,当我现在运行我的应用程序,它仍然从缓存中拾取旧的程序集,无论我做什么,它报告:

2014-06-25 21:17:30,840 [13] ERROR ExceptionLogger 
Error: System.Web.httpCompileException (0x80004005): 
c:\Users\computer\ApPDAta\Local\Temp\Temporary ASP.NET 
Files\root\0ee70bca\3973e798\App_Web_index.cshtml.a8d08dba.na12ukjv.0.cs(30): 
error Cs0234: The type or namespace name 'HomePage' does 
not exist in the namespace 'MyProduct.Web.Presentation.
ViewModels' (are you missing an assembly reference?)

现在我已经做了很多次:

a) Closed Visual studio

b) Stopped IIS using thE internet services 
Manager (inetmgr.exE) tool.

C) Stopped the World Wide Publishing service from 
the services applet in the Control Panel

d) deleted all files from the %tmp%\Temporary 
ASP.NET Files folder

E) deleted all files from the %windir%\temp folder

f) deleted all files from the %windir%\Microsoft.NET\
Framework\v4.0.30319\Temporary ASP.NET Files folder

g) deleted all files from the %windir%\Microsoft.NET\
Framework64\v4.0.30319\Temporary ASP.NET Files folder

h) Started the WWW service (the one stopped in step C) 
and IIS from inetmgr.exe.

i) Opened and started debugging my ASP.NET MVC Web 
application project

在项目属性中,我已将项目配置为在IISExpress而不是本地IIS中运行.

我正在运行64位Windows 7家庭高级版.

还有什么我需要做的吗?

解决方法

有类似的问题,调整项目命名空间后,将WebApplication3全局重命名为另一个名称,执行整个解决方案搜索并没有帮助,因为.config扩展名未指定通配符.无论如何,任何人遇到类似的问题,检查web.config文件项目根和视图文件夹
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory,System.Web.Mvc,Version=5.2.0.0,Culture=neutral,PublicKeyToken=31BF3856AD364E35" />
<pages pageBaseType="System.Web.Mvc.WebViewPage">
  <namespaces>
    <add namespace="System.Web.Mvc" />
    <add namespace="System.Web.Mvc.Ajax" />
    <add namespace="System.Web.Mvc.Html" />
    <add namespace="System.Web.RoutIng" />
    **<add namespace="WebApplication3" />**
  </namespaces>
</pages>

大佬总结

以上是大佬教程为你收集整理的清除ASP.NET临时文件缓存的麻烦全部内容,希望文章能够帮你解决清除ASP.NET临时文件缓存的麻烦所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。