保存文件'web.config文件“要求您停止调试会话错误 [英] Saving the file 'web.config' requires you to stop your debug session error

查看:244
本文介绍了保存文件'web.config文件“要求您停止调试会话错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行的应用程序后更改web.config中。它提供了以下错误。

I'm trying to make changes to web.config after running the application. It gives the following error.

保存'的web.config要求您停止调试会话文件。结果
  你想现在停止调试?

Saving the file 'web.config' requires you to stop your debug session.
Would you like to stop debugging now?

我在使用Visual Studio 2012。

I'm using Visual Studio 2012.

我以为它是与的东西启用编辑并继续在Visual Studio的功能。仍然无法正常工作。

I thought it has to do something with Enable Edit and Continue feature in visual studio. Still doesn't work.

推荐答案

我只是想的东西添加到janv8000作出有关编辑并继续的评论,因为我去过有同样的问题,并设法排序。

I just want to add something to the comment that janv8000 made about Edit and Continue, because I've just been having the same problem and managed to sort it.

要给予一定的背景,我有一个现有的Web应用程序,在2012年VS创建当我调试在VS 2013这个项目,我可以高兴地编辑web.config文件,而无需重新启动调试器。然后我在VS 2013中创建一个新的Web应用程序,发现我在原来的问题的错误信息,当我试图编辑web.config文件。

To give some background, I had an existing web application, created in VS 2012. When I debug this project in VS 2013, I can edit the web.config file happily without restarting the debugger. I then created a new web application in VS 2013, and found that I got the error message in the original question when I tried to edit the web.config file.

解决这个问题的解决方案是禁用编辑并继续作为单独的项目。我想强调这样做的原因是因为有一个在工具 - >选项 - >调试器编辑并继续在全球调试器设置。这是不是导致此问题的选项。

The solution to this was to disable Edit and Continue for the individual project. The reason I highlight this is because there's a global debugger setting in Tools->Options->Debugger for Edit and Continue. This is not the option that causes this problem.

要解决这个问题:


  1. 转到项目preferences为Web应用程序(在Solution Explorer中右键点击它,进入属性)。

  2. 转至网络选项卡。

  3. 在该选项卡的底部有一个名为调试。第

  4. 取消选中启用编辑并继续。

这篇关于保存文件'web.config文件“要求您停止调试会话错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆