|
| Debugging fails in VS.NET - Error binding to target method |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.aspnet.
| Chris Lewis |
| GOOD ANSWER |
I have a problem with my VS.NET debugging in ASP.NET. A collegue can debug the exact same project on his machine, so it must be down to my VS.NET environment!?
The error I get is:
"A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll Additional information: Error binding to target method."
The error always happens on the same line of code, which is within the 'OnInit()' method of a User Control.
This is driving me insane, as I cannot debug anything on my machine. I have tried doing a repair on VS.NET from the original disk. The process took 2 hours, and did not fix the problem.
Any help would be greatly appreciated.
Regards,
Chris Lewis
|
|
|
| |
|
|
| |
| |
| Chris Lewis |
| GOOD ANSWER |
I have now fixed this by creating a new solution, and adding in the existing projects.
This is strange, as my colleague has no problems with the original solution!!??
"Chris Lewis" <Click here to reveal e-mail address> wrote in message news:3e3e681d$0$235$Click here to reveal e-mail address... [Original message clipped]
|
|
|
| |
|
|
| |
| |
| Nuno Viana |
| GOOD ANSWER |
(Type your message here)
-------------------------------- From: Nuno Viana
Hi there, I have been able to produce the same error in ASP.NET....
It can easily be solved by setting the correct Debug->Exception options (by default they are globally set to "Continue when Exception is thrown" and "Break if the exception is not handled")!
Your solution (creating a new solution has of course solved the problem) since when you create a new solution you get the above Debugging settings!
If you change the first option ("Continue when exception is thrown") to "Break" it breaks and gives you that message!
Hope it helped!!!
Cheers!
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|