The application or control does not run when you try to run .NET Framework 1.0 HREF tags to point to a managed executable application or to a control

Article translations Article translations
Article ID: 936597 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Consider the following scenario. You try to run Microsoft .NET Framework 1.0 HREF tags to point to a managed executable application (.exe) or to a control. You try to run the HREF tags from the Internet or from Intranet zones. In this scenario, the application or control does not run.

Note If you have a later version of the .NET Framework installed on the computer, the managed executable application or the control may run. Controls always run on the latest compatible version of the .NET Framework that is installed on the computer. (For example, controls that were built on the .NET Framework 1.0 always run on the .NET Framework 1.1 and on the .NET Framework 2.0.) Managed executable applications run on a later compatible version of the .NET Framework if the .NET Framework on which they were built is not available on the computer. (For example, applications that were built on the .NET Framework 1.0 run on the .NET Framework 1.1 and on the .NET Framework 2.0.)

Note Managed executable applications are also known as no-touch deployment applications or as zero-impact deployment applications.

CAUSE

This issue occurs because the managed executable applications or the controls may contain non-trusted code. By default, the .NET Framework 1.0 does not let you run managed executable applications or controls.

WORKAROUND

Warning This workaround may make the computer or the network more vulnerable to attack by malicious users or by malicious software such as viruses. We do not recommend this workaround. We provide this information so that you can implement the workaround at your own discretion. Use this workaround at your own risk.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows


To work around this issue, use one of the following methods:

Method 1 Add the Web site that contains the managed executable application or the control to the "Trusted sites" zone.

Method 2 For managed executable applications, upgrade the application to use the ClickOnce deployment technology of the .NET Framework 2.0, and then install the .NET Framework 2.0 or a later version of the .NET Framework on the computer. For more information about ClickOnce deployment, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/t71a733d(en-us,VS.80).aspx
Method 3 For controls, install the .NET Framework 2.0 or a later version of the .NET Framework on the computer. Controls will run on the .NET Framework 2.0 and on later versions of the .NET Framework.

Method 4 Configure the computer to let Internet applications run on version 1.0 of the .NET Framework. To do this, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type EnableIEAssembliesV1.0, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. Type 1, and then click OK.
  7. Exit Registry Editor.
Note By default, the Internet zone is already disabled in Code Access Security (CAS) policy for the .NET Framework 1.0. Therefore, you may have to enable the Internet zone in CAS policy. Additionally, you may have to use one of the workaround methods that are mentioned earlier in this section for applications or controls to run successfully from the Internet zone on the computer.

Properties

Article ID: 936597 - Last Review: September 30, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
Keywords: 
kbtshoot kbexpertiseinter kbexpertisebeginner kbexpertiseadvanced kbsecurity kbbug KB936597

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com