I have a sample which I was able to run in VS2003 but running the same sample in VS2005 giving me debugg error.
Unable to start debugging. Iam getting the error message as given below.
1. The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supposed by the debugger.
2. The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.
3. The Microsoft .NET Framework version specified by you for debugging is incorrect.
For solving this issue I did
-
In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.
-
Navigate to: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\AD7Metrics\Engine\{449EC4CC-30D2-4032-9256-EE18EB41B62B}
-
then created new string "CLRVersionForDebugging" and value "V2.0.50727" . After doing all this things still Iam getting the same debug error.
For example download this sample and try to run
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnexcl2k2/html/odc_xlrtdvbnet.asp
This application open's an Excel.In Excel formula bar paste the following formula
=RTD("Stock.Quote", , "MSFT", "Open")
=RTD("Stock.Quote", , "MSFT", "Last")
formula will return some random value in Excel.For this sample I was able to debug and run in VS2003 but in VS2005 Iam getting debugger error.
Pls anybody can give solution for this problem.

Unable to start debugging In VS2005
xRuntime
Gnanaprakash , I passed your issue to a Microsoft Support Engineer, and he needs more information from you:
I need more information about the partner’s environmental details like
1> Operating system/Service Pack
2> Microsoft .NET Framework version
3> Microsoft Office version / Service Pack
And any other information related with this case is appreciated.
Give us this information and we'll get back to you with some assistance.
Thanks
MS ISV Buddy Team
apaspula
-Windows XP Professional
-Microsoft .NET Framework version 1.1 and 2.0 (1.1. 4322and 2.0.50727)
-Microsoft Office Profession Edition 2003(11.8105.8107)SP2
-Microsoft visual studio 2003 and 2005
Thanks,
Gnanaprakash
SoulSolutions
I am having the exact same problem,
I also followed the steps to add the key in the registry, but it did not work. I am using the exact same version of microsoft products.
Please help,
Thank you,
Daniel
jean at spear
Per the engineer:
> Please also ask him to run the code in a machine which has only MS Office 2002 and VS Studio 2005.
I tried to run that code and didn’t get debugging error message.
> Do let me know whether he is able to open Excel sheet using code or not.
> When is he getting the error message
> Could he tell me the steps he is following.
-brenda (ISV Buddy Team)
theblackhat
Thanks,
John