June 2008 Archives

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.