开发者

Upgrade C# windows form project from VS2005 to VS2008, can't debug anymore

开发者 https://www.devze.com 2022-12-09 18:14 出处:网络
I have a C# windows form application (Actually it is a IE toolbar application), I have been working with it in VS2005 for years and everything is fine. Recently, I upgrade my IDE to VS2008, and also i

I have a C# windows form application (Actually it is a IE toolbar application), I have been working with it in VS2005 for years and everything is fine. Recently, I upgrade my IDE to VS2008, and also import that project to VS2008, but after import, in VS2008 I can't start debugging any more, it always show: "Error while trying to r开发者_如何学运维un project: Unable to start debugging"

While import, I kept the same .net framework as in VS2005, double checked the debug setting is same as vs2005. I can compile the project without any issue.

Thanks.


Two things:

  1. Verify that .NET 3.0+ is installed on your machine. (not likely to be your problem but just a simple 'sanity check')

  2. Here's a thread describing the same problem that you're experiencing on an IE addin project. The solution that worked was to add "about:blank" (or any URL) to the debugging command line arguments.

    Maybe the problem isn't due so much to the upgrade to VS2008, but to differences to how VS2005 and VS2008 debug IE addins, or perhaps this is a setting you haven't migrated to VS2008. It's worth a look though.


If you aren't starting with a new code directory ad you haven't already, try Build - > Clean, Build -> Rebuild. That sometimes cleans the gunk out. I always feel likes that's the visual studio equivalent of "reboot your computer" advice, but it's cliche because it often works.

I know Rebuild was at least originally supposed to be the same as Clean + Build, but sometimes need to do it anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消