开发者

Startup Error when trying to create a new Visual Studio 2010 add in

I'm using Visual Studio 2010 to create an add-in. Using the wizard, I went through the dialog and selected fairly standard options (target 4.0, load in startup). The project was then generated, but when I try to debug the add-in, a new instance of VS starts up, and then an exception is thrown:

"ArgumentException crossed a native/managed boundary"
"Cannot find the requested resource"

The StackTrace is sparse:

   at Microsoft.VisualStudio.CommonIDE.ResourceLoader.FindResource[T](String resourceName, Int32 lcid, Func`2 fnConvert)
   at Microsoft.VisualStudio.CommonIDE.ResourceLoader.GetBlob(String resourceName, Int32 lcid, Byte[]& bytes, Int32& count)

Even though I'm attached, this doesn't seem to occur in any of the cs code that exists in the new project.

An开发者_StackOverflow社区y ideas?


I had the same problem, I found the answer here:
Microsoft forum post http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/277f3b9f-f66c-4616-a4d3-62ab14f557ef/

My Visual Studio options had a the following option turned on when it is off by default.

Options --> Debugging --> General --> "Break when exceptions cross AppDomain or managed/ native boundries (managed only).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜