Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

I came across the following error while trying to debug an ASP.NET page in VS.NET 2008 tonight: "Unable to start debugging on the web server. Strong name validation failed."  I hadn't seen the error before but after spending a few seconds searching I came across the following steps that seem to have solved the problem.  I found the steps here.  Since this is documented I'm hoping it'll be resolved by the final release of VS.NET 2008. 

Having used VS.NET 2008 for a week now I have to say I'm extremely impressed with it and have found it to be very stable.....and super productive.

Update: If you're running a 64-bit installation of Vista you'll need to use the sn.exe located at C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\sn.exe.

2.3.5.2 Strong name validation failed error when launching IIS project on Windows Vista

When a Web project is run on Windows Vista, it may fail to start and the following error may be shown: "Unable to start debugging on the web server. Strong name validation failed. Click Help for more information."

To resolve this issue:

Disable strong name validation for a Visual Studio file (iisresolver.dll) by doing the following:

1. Click on Start, All Programs, Accessories, Command Prompt, and then select  Run as administrator
2. You may see the screen grey and a 'User Account Control' dialog box appear. If this happens, click Continue so that the command prompt starts.

3. Obtain a copy of sn.exe. Sn.exe installed with Visual Studio 2005, and the .NET Framework 2.0 SDK, and therefore it may already be on the computer. If it is not on the computer, then download .NET Framework 2.0 SDK to obtain it. The x86 version of the Software development kit can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC. The x64 version of the SDK can be downloaded from http://www.microsoft.com/downloads/details.aspx?FamilyId=1AEF6FCE-6E06-4B66-AFE4-9AAD3C835D3D.
4. Run one of the following commands, as appropriate:

32-bit computer:
"<path_to_sn>\sn.exe" -Vr "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\iisresolver.dll"

64-bit computer:
"<path_to_sn>\sn.exe" -Vr "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\iisresolver.dll"

This assumes that Visual Studio was installed to the default location. If Visual Studio was installed to a custom location, then '%ProgramFiles%\Microsoft Visual Studio 9.0' should be replaced with the path where Visual Studio was installed.

Published Monday, August 06, 2007 8:31 PM by dwahlin
Filed under: ,

Comments

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Wednesday, August 08, 2007 2:43 PM by Ásgeir

I have tried everything but I still get the error when I try to debug. Are there any other options that I can try to fix this ??

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Wednesday, August 08, 2007 4:26 PM by dwahlin

That's the only thing I've seen to fix it at this point.  Someone mentioned that they were getting the error when running on IIS7 (not sure if you're doing that) and they had to enable Windows Authentication (which is a separate add-on with IIS7 that has to be installed).  If I come across any other solutions I'll post them here though.

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Sunday, August 12, 2007 12:24 PM by martin wirth

on vista with iis7 even enabling windows auth. doesn't do the trick for me.

# VS.NET 2008 Beta 2 and debugging

Tuesday, August 21, 2007 4:53 AM by Wessam Zeidan

Ok, so this time it’s a debugging problem. Whenever I try to start the debugger, I was greeted with the...

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Tuesday, August 28, 2007 9:01 PM by Vikram

Hi Thanks for the information. It was really helpful to me

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Wednesday, August 29, 2007 6:35 PM by azmo

but i do this,it still don't work.

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Thursday, August 30, 2007 10:40 AM by dwahlin

Sounds like it may be another issue then so it's difficult to say.  Time to hit Google and see what other options may be available. :-)

# Working with IIS under VS 2008 Beta 2 and Vista

Thursday, August 30, 2007 2:03 PM by Arian Kulp's Blog

Working with IIS under VS 2008 Beta 2 and Vista

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Friday, August 31, 2007 12:40 PM by Rezgar

I guess I found an issue.

The thing is that you, most likely, have x64 system and use the wrong sn.exe.

Try this one instead:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64>sn -Vr e:\ides\visualstudi

o2008beta2\Common7\IDE\iisresolver.dll

Good luck!

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Tuesday, September 11, 2007 7:03 PM by David

I had to use:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\sn.exe

And that fixed the problem in my x64 system. If you could update your entry would be great!

Thanks for your help!!

David.

# re: Fixing a VS.NET 2008 Beta 2 ASP.NET Debugging Issue on Vista: "Strong name validation failed"

Saturday, September 22, 2007 8:16 PM by Nikolai

when i use sn.exe on Vista 64 i get the following error:

Failed to open registry key -- Access is denied.

Anybody else has experienced the same?

# benmcevoy.com &raquo; Blog Archive &raquo; Unable to start debugging on the web server. Strong name validation required

Pingback from  benmcevoy.com  &raquo; Blog Archive   &raquo; Unable to start debugging on the web server. Strong name validation required

# Why would you still get "Strong name validation failed"?

Thursday, September 04, 2008 7:56 PM by Word Entropy

There are not many web pages mentioning this so I would just post this so it comes up in search. Having