SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SharePoint 2010 site deployed using Visual Studio 2010. An application page on the site contains an ascx control that includes a FileUpload control. When I am attached to the W3WP process and hit the FileUpload control, the button, and the OnClick event fires the debugger stops and returns me back to Visual Studio 2010. Any thoughts as to why this might be occurring?

share|improve this question
up vote 0 down vote accepted

I would check the ULS logs. Located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\logs I use this ULS viewer

Other possibility may be the latest code is not in the GAC. Redeploy

And sometimes I have had it where the attach to debugger just stops working and I have had to use F5 and wait for it to deploy

share|improve this answer
The issue seems to have resolved itself. I am still not sure why it was broke. Thanks for the tip about the ULS viewer. – JDM Apr 26 '11 at 13:56
Worth checking that the file size wasn't exceeding the farm max for upload. That might terminate the connection at IIS level if exceeded. – Wes Hackett Apr 27 '11 at 8:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.