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:
- Open command prompt.
- Navigate to the folder C:\Program Files\Common Files\Microsoft Shared\VC
- Run this command "regsvr32 msdia80.dll"
That's it. Enjoy debugging your application.








