加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc – Visual Studio 2013持有的App_global.asax.PDB文

发布时间:2020-12-15 18:53:52 所属栏目:asp.Net 来源:网络整理
导读:自从升级到Visual Studio 2013(从2012年),我注意到,在调试我的ASP.NET MVC 5应用程序,我偶尔会通过IIS Express的一个编译器错误转储: Description: An error occurred during the compilation of a resource required to service this request. Please r
自从升级到Visual Studio 2013(从2012年),我注意到,在调试我的ASP.NET MVC 5应用程序,我偶尔会通过IIS Express的一个编译器错误转储:

Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS0042: Unexpected error creating debug
information file ‘c:UsersJeffAppDataLocalTempTemporary ASP.NET
Filesroot368a904083fb9039App_global.asax.PDB’ —
‘c:UsersJeffAppDataLocalTempTemporary ASP.NET
Filesroot368a904083fb9039App_global.asax.pdb: The process cannot
access the file because it is being used by another process.

Source Error:

[No relevant source lines]

Source File: Line: 0

如果我打开Process Explorer,然后搜索App_global.asax.pdb(DevEnv.exe有)的句柄,并强制关闭它,然后刷新页面,这个错误消失。然而,这是不方便,我从来没有这样做,在2013年之前。

任何人都有一个想法,为什么这是发生间歇性在2013年,但以前,?

我可以想到的唯一可能的事情是一个晦涩的问题,Razor Generator的MSBuild步骤,我使用,但我不知道为什么它会在App_Global.asax而不是一个视图(甚至那么,它不应该编译未修改的视图)

解决方法

升级到VS2013后,我们在我们开发的大型Webforms应用程序上遇到了这个问题。我们解决了它是从我们的Web.Config文件中的编译元素中删除optimizeCompilations =“true”属性。

我也试过VS2013更新1和VS2013更新2 RC,他们都没有解决这个问题。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读