When I tried to debug an ASP.NET web application assembly (with almost no content, thus running fine) on the new beta 2 using the ISS web server, I got the following error message (independent of the assembly being strongly or weakly named):
"Unable to start debugging on the web server. Strong name validation failed"
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.
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.
vS2008 Orcas Vista "Strong Naming Error"
Marked as answer by Shinigami on Aug 01, 2007 03:43 PM
Shinigami
Member
1 Points
2 Posts
Orcas Beta 2: Web server debugging error
Jul 29, 2007 07:22 PM|LINK
Hi,
When I tried to debug an ASP.NET web application assembly (with almost no content, thus running fine) on the new beta 2 using the ISS web server, I got the following error message (independent of the assembly being strongly or weakly named):
"Unable to start debugging on the web server. Strong name validation failed"
Is anyone aware of a workaround for this one?
-Thanks
Orcas .NET 3.5 ASP.NET VS2008
fbaldoni
Member
19 Points
21 Posts
Re: Orcas Beta 2: Web server debugging error
Aug 01, 2007 01:07 PM|LINK
This fixed the problem for me. The complete article can be found at
http://download.microsoft.com/download/d/d/1/dd18043a-fe86-4f57-ac22-791b30e6f04b/ExpressReadme.htm
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.
vS2008 Orcas Vista "Strong Naming Error"
Shinigami
Member
1 Points
2 Posts
Re: Orcas Beta 2: Web server debugging error
Aug 01, 2007 03:44 PM|LINK
That solved it, thanks!
JasonBSteele
Member
52 Points
11 Posts
Re: Orcas Beta 2: Web server debugging error
Aug 01, 2007 06:33 PM|LINK
Shinigami,
I got this as well - it seems to affect Vista. I found this http://download.microsoft.com/download/d/d/1/dd18043a-fe86-4f57-ac22-791b30e6f04b/ExpressReadme.htm which solved it. Search for "Strong Name" in the doc and read the section. Basically you need to Run as Admistrator the "Visual Studio 2008 Beta 2 Command Prompt" from yiour Start Menu. then paste this in:
sn -Vr "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\iisresolver.dll"
It marks the IIS Resolver application as not requiring string name verification.
Jason