Summary:
This article addresses the failure of "unable to start debugging on the Web server. Strong name verification" that occurs when you debug iis7 (Vista) sites using Visual Studio 2008 beta 2 ." Problem. (English text: unable to start debugging on the Web server. Strong name validation failed .)
Environment:
Vista Ultimate/business, IIS 7.0, Visual Studio 2008 beta 2 (en ).
The debugging method is to enable Visual Studio (unless otherwise specified, it indicates Visual Studio 2008 beta 2 in this article, the same below) to monitor HTTP instead of starting any debugging page: // localhost/. configure a site in IIS to point to the web directory and set sufficient permissions for the directory.
Problem:
Press F5 in Visual Studio to start debugging. The following dialog box is displayed:
---------------------------
Microsoft Visual Studio
---------------------------
Unable to start debugging on the Web server. Strong name verification failed.
Click Help for more information.
---------------------------
Confirm help
---------------------------
(The Chinese version is displayed here because the operating system is a Chinese version .)
Cause:
This is caused by strong name verification of the Visual Studio file (iisresolver. dll. Disable it.
Solution:
1. Open the Command Prompt window as an administrator (if UAC prompts, click "continue ").
2. Locate the sn.exe directory and run the following command:
"<Path_to_sn> \ sn.exe"-VR "% ProgramFiles % \ Microsoft Visual Studio 9.0 \ common7 \ ide \ iisresolver. dll"
3. When the following text appears on the screen, restart Visual Studio.
C: \ windows \ system32> sn.exe-VR "C: \ Program Files \ Microsoft Visual Studio 9.0 \ com
Mon7 \ ide \ iisresolver. dll"
Microsoft (R). Net Framework strong name utility version 3.5.20706.1
Copyright (c) Microsoft Corporation. All rights reserved.
Verification entry added for assembly 'isresolver, b03f5f7f11d50a3a'
(The final number "b03f5f7f11d50a3a" may change with your environment .)