Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc Visual Studio 2012 err“;无法写入输出文件';。。。。一些.dll';_Asp.net Mvc_Visual Studio_Iis Express - Fatal编程技术网

Asp.net mvc Visual Studio 2012 err“;无法写入输出文件';。。。。一些.dll';

Asp.net mvc Visual Studio 2012 err“;无法写入输出文件';。。。。一些.dll';,asp.net-mvc,visual-studio,iis-express,Asp.net Mvc,Visual Studio,Iis Express,在调试我的MVC4应用程序时,在Visual Studio 2012中使用本地IIS Express,每次 Description: Could not write to output file '...\obj\Debug\some...dll' The process cannot access the file because it is being used by another process File: CSC 我总是必须从系统托盘关闭/杀死IIS-然后它会生成并运行 这是soo

在调试我的MVC4应用程序时,在Visual Studio 2012中使用本地IIS Express,每次

Description:
Could not write to output file '...\obj\Debug\some...dll'
The process cannot access the file because it is being used by another process

File: CSC
我总是必须从系统托盘关闭/杀死IIS-然后它会生成并运行

这是soo anoying-这个问题有好的解决方案吗

我查看了哪些引用了IIS和inetmgr.exe-我在IIS Express中找不到它们


谢谢大家!

在Windows上,您无法打开已打开供其他地方读取的文件进行写入(除非之前打开该文件的程序特别允许-内核不会对正在运行的文件执行此操作)。但是,您可以重命名正在使用的文件,以便在MSVC中添加以下内容作为预生成事件:

ren ...\obj\Debug\some...dll ...\obj\Debug\some...dll.bak

根据需要替换路径。不确定您的IIS是否会接收到该问题。

不确定是否是同一问题,但可能与此问题有关:

没有其他人有这个问题???