OK, I just started getting this error yesterday and have not, for the life of
me, been able to open a single solution with a web project. I am running VS
2008 on Windows Vista Enterprise and am getting this error:
"Unable to open Web site 'http://localhost/CustomerService'. To access local
IIS Web sites, you must run Visual Studio in the context of an administrator
account. By default, Windows runs applications in a limited-privilege user
account even when you are logged on to the computer as an administrator. To
run Visual Studio with administrative privileges, right-click the Visual
Studio icon and then click 'Run as administrator'.
I've read the simple yet obvious and elementary knowledge base article on
running under elevated privileges, and have not only used the "Run as
Administrator..." option on the shortcut, directly on devenv.exe, and even
set the "Compatiblity mode", Run as Administrator option on devenv.exe and
the shortcut to it in the start menu, I went as far as to add myself to the
local administrators group on the machine and even tried turning off UAC
through the local policy console. Everything was working fine until yesterday
and I did not download or install any updates yesterday. The only new thing I
installed all week was Adobe Acrobat Pro 7.
Does anyone know why this is occurring? I know Visual Studio is running
under Administrator because it even says so in the title-bar ([Project Name]
- Microsoft Visual Studio (Administrator). This is so frustrating!
Thanks,
Chad
Chad Scharf - 12 Jan 2008 06:12 GMT
The issue was with DCOM security settings. I had changed them and did not
remember doing it, 3 weeks later after finally rebooting my computer I
figured out the problem, reset the DCOM security settings that I had changed,
rebooted and everything was fine.
Here is the full cause and solution:
<a
href="http://chadscharf.com/post/2008/01/You-cane28099t-always-blame-Bill-when-Vista-b
reaks.aspx">http://chadscharf.com/post/2008/01/You-cane28099t-always-blame-Bill-
when-Vista-breaks.aspx</a>
> OK, I just started getting this error yesterday and have not, for the life of
> me, been able to open a single solution with a web project. I am running VS
[quoted text clipped - 23 lines]
> Thanks,
> Chad