
Disable Signing Verification
If re-signing fails—for example if the correct key file is not available—you can choose to disable signing verification, for this assembly, for the duration of your test run. To do this, use the Strong Name Tool (Sn.exe) with the –Vr option, as shown here:
SN -Vr <assembly name>
This disables strong-name verification, for the specified assembly only, on the computer on which you run the command.
Note: |
|---|
If you are running tests remotely and you need to disable signing verification, you must include the SN.exe command in the setup and cleanup scripts that will be run on the remote computer.
|
You can do this only if you have sufficient permissions.
After the test run has completed, re-enable signing verification. To do this, use the SN.exe command with the –Vu option, as shown here:
SN -Vu <assembly name>
A recommended way to disable and re-enable signing verification is to use the SN.exe commands in scripts. You can disable verification in a setup script and re-enable verification in a cleanup script.
Note: |
|---|
It is important that you re-enable signing verification. If signing verification remains disabled, it can cause security problems.
|
After you have placed the SN commands in separate script files, specify the script files on the Setup and Cleanup Scripts page of the test run configuration editor. For more information, see How to: Specify a Test Run Configuration. For information about the order in which these and other steps occur in a test run, see Test Deployment Overview.