« Xobni, a good Outlook plugin | Main

Startup error in Visual Studio Debug session

Today when I hit F5 in my Visual Studio project (a sample Win32 console application), I got this weird error "msdia80.dll cannot be loaded". I did a quick search in the Internet and found a few solutions:

  • Reinstall Visual Studio SP1: Unfortunately, this is not a viable option because we know how much time it takes to install SP1
  • Register the msdia80.dll: This is a very easy fix. But where do we find this DLL? Here is the answer: C:\Program Files\Common Files\Microsoft Shared\VC

I tried the second solution and it worked fine. So this is what we need to do:

  1. Open command prompt.
  2. Navigate to the folder C:\Program Files\Common Files\Microsoft Shared\VC
  3. Run this command "regsvr32 msdia80.dll"

That's it. Enjoy debugging your application.


Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Archives

Creative Commons License
This weblog is licensed under a Creative Commons License.