将项目构建配置更改为调试模式
我正在使用 VS 2008。每次运行应用程序时都会弹出一个弹出窗口。
以下是弹出窗口:
以下模块是用 启用优化或不调试 信息:
C:\Windows\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files\root\7c06d97f\c871fca3\ assembly\dl3\1ed1f335\00d7b454_9450ca01\BArcodingImaging.DLL
要调试此模块,请更改其 用于调试的项目构建配置 模式。为了抑制此消息, 禁用“警告 inf 没有用户代码 启动”调试器选项。
我已经尝试了 Google 上所有可用的链接来消除此错误,但没有任何效果。实际上大多数链接都是针对 VS 2005 的。但我使用的是 VS 2008。
使用了以下参考: http://social. msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1946cf16-ae70-4394-9cd9-9d35f3f012ed/ 还有《Code Guru》上的一篇。
I am using VS 2008. I am getting a PopUp everytime i run my application.
Following is the PopUp:
The following module was built with
optimizations enabled or without debug
information :C:\Windows\Microsoft.Net\Framework\v2.0.50727\Temporary ASP.NET Files\root\7c06d97f\c871fca3\assembly\dl3\1ed1f335\00d7b454_9450ca01\BArcodingImaging.DLL
To debug this module, change its
project build configuration to debug
mode. To suppress this message,
disable the "Warn inf no user code on
launch" debugger option.
I have tried all the links available on the Google to get rid of this error but nothing works. Actually most of the links are for VS 2005. But i am using VS 2008.
I used following reference:
http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/1946cf16-ae70-4394-9cd9-9d35f3f012ed/
And one on Code Guru.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
1)点击菜单
Tools>;设置
并选择专家设置
2)出现了一个名为
Build
的新菜单。在其中选择配置管理器
3) 在
活动解决方案配置
中,点击新建...
,如下所示:4) 输入
Debug
作为名称,并选择从Release
复制,如下所示:5) 在项目属性中的
Build
选项卡顶部,现在出现了一个配置选择器。将定义 DEBUG 常量
和定义 TRACE 常量
标记为选中。在高级
中,将调试信息
从none
更改为full
。如您所见,这确实很痛苦...我发现 Monodevelop 使用起来要容易得多。
1) Click on the menu
Tools > Settings
and selectExpert Settings
2) A new menu called
Build
has appeared. In it, selectConfiguration manager
3) In
Active solution configuration
, clickNew...
as shown below:4) Type
Debug
as a name and select to copy fromRelease
, as shown below:5) In your project's properties, at the top of the
Build
tab, a configuration selector has now appeared. Mark theDefine DEBUG constant
andDefine TRACE constant
as checked. InAdvanced
, changeDebug Info
fromnone
tofull
.As you see, it is a real pain... I find Monodevelop much easier to use.
看来在我的配置中,所有设置都已在调试打开时正确设置,但我也遇到了这个问题。它可以通过以下步骤修复:
这条路是:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\eventsservice\5d285bc1
完毕!
问题可能是因为您的解决方案中的项目具有不同的框架版本。
也检查一下并正确设置。所有相互引用的项目必须使用相同的框架版本。
It seem that in my configuration all have been set correct with debug ON, but I have too this problem. It is fix with this steps:
For was this path:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\eventsservice\5d285bc1
Done!
The problem may be because in your solution have project with the different framework version.
Check this too and set it correctly. All project that are reference between must use the same framework version.
这让我很困惑,在艰难地学习了 Visual Studio(即:只是深入学习)后,我不清楚如何将“活动”构建配置更改为“调试”。这可以通过从
构建
菜单中选择配置管理器
,然后从活动解决方案配置下拉菜单中选择“调试”来完成。This one caught me out, and having learnt Visual Studio the hard way (ie: just diving in) it wasn't clear how to change the 'Active' build configuration to 'Debug'. This can be done by selecting
Configuration Manager
from theBuild
Menu and then selecting 'Debug' from the Active solution configuration pulldown menu.忽略该消息。
解决方案(对我有用)很简单:
转到“工具”-->“选项 -->调试-->常规
此时,取消选择“仅启用我的代码(仅限托管)”。
再附上流程,开心就好。
Ignore the message.
The solution (that works for me) was simple:
Go to Tools --> Options --> Debugging --> General
At this point, unselect 'Enable Just My Code (Managed Only)'.
Attach the process again, and be happy.
仅供参考,当在本地系统帐户下安装该服务时,我可以进行调试,而无需更改任何内容。我需要将帐户更改为网络服务,现在我看到了上述对话框。上面试过了,没有一个成功...
FYI, when having the service being installed under account Local System I could debug without ever needing to change anything. I needed to change the account to Network Service and now I have the mentioned dialog. Tried above, none worked...
我已经解决了在 Visual Studio 2019 调试选项中禁用启用仅我的代码选项的问题

I've resolve with disable Enable Just my code options in visual studio 2019 debugging options

简短回答:我没有使用 vs 2008 ,但是使用 vs 2010 sp1 ,我重新打开并且它起作用了(我觉得我很幸运)。
长答案:
我正在使用 vs 2010 sp1 ,并尝试了几件事,我打算从路径错误 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\2c0d3658\caacfa0a 中删除 dll \ assembly \ dl3 \ 53e39126 \ e888ca9f_7252cc01 相反,我关闭了 Visual Studio 和 IIS EXPRESS 我停止了......然后我重新打开了项目,一切都很好。我以为它有 10-25% 的机会自行修复……但它自己修复得很好。
Short answer: I am not using vs 2008 , but with vs 2010 sp1 , I re-opened and it worked (I feel I got lucky).
Long Answer:
I'm using vs 2010 sp1 , and tried several things, I was going to delete the dll from my path error C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\2c0d3658\caacfa0a\assembly\dl3\53e39126\e888ca9f_7252cc01 INSTEAD I SHUTDOWN visual studio and IIS EXPRESS I stopped .... Then I re-opened the project and things were fine. I thought I have a 10-25% chance of it fixing itself... but it fixed itself just fine.
就我而言,这个问题是由于VS2012中调试设置不正确引起的。我曾经不小心取消选中“始终加载位于模块旁边的符号”复选框,然后我得到了与您的图片相同的弹出消息框。
复选框位置:工具->选项->调试->符号->指定模块。
一张图片来展示如何解决它,希望它会有所帮助。
我在下面给出了 在这里>>
In my case, this problem was caused by the incorrect setting about debugging in VS2012. I ever carelessly unchecked the checkbox "Always load symbols located next to modules, then I got the same Popup message box like your picture.
the checkbox location: TOOLS->Options->Debugging->Symbols->Specify modules.
I give a picture below to show how to resolve it, hope it will be helpful.
从 GAC 中清除 dll。重建并重试。
我收到了确切的消息(除了实际的 dll 名称),因此我检查了 dll 的构建位置,并将此路径与“驱动程序”或调用者应用程序中的路径进行比较。然后我从 GAC 中删除了 dll,进行了重建并设置了适当的断点。 VS 不会自动更新 dll 上的版本号,因此它正在寻找与我正在调试的版本不同的版本。
Clear the dll from the GAC. Do a rebuild and try again.
I was getting the exact message (except for the actual dll name ) so I checked where the dll was built to and compared this path to the path in the 'Driver' or Caller app. Then I removed the dll from the GAC did a rebuild and set appropriate breakpoints. VS doesn't automatically update the version number on the dll so it was looking for a different version to the one I was debugging.