17 August 2007
A common question I’m asked is “Why can I debug fine in Visual Studio 2008, but not once I’ve copied my assembly and debug symbol to my web server?” The answer is most likely that your web server isn’t serving debug symbol files (*.pdb).
If you’re using a Linux web host, you shouldn’t need to make any changes—Apache typically comes preconfigured to serve pdb’s without issue. So this is a post for Windows web server users.
I’ve covered some of this before, but hey here’s the “with pictures” version for adding the MIME entry on an IIS 7.0 machine (either running Vista or Windows Server 2008).
On the local web server, request the debug symbol file (pdb) for your assembly and see if you’re offered to download it, or provided with an error message. An HTTP 404.3 message indicates that the MIME type is restricted and cannot be deleted.
Note: You will only see this error when you're requesting localhost I believe... otherwise its a truncated message.
If you can’t get debugging going, but PDBs are being served fine, unfortunately this post won’t help you—but do leave a message and I’ll look into your problem.
Hope this helps![/RAW]
Jeff Wilcox is a Principal Software Engineer at Microsoft in the Open Source Programs Office, helping Microsoft scale to 15,000+ engineers using, contributing to and releasing open source.