Can't Create ASP.NET Applications?

Follow the instructions in the following Microsoft article and it should do the job.


HOW TO: Enable Extensions Used by Visual Studio .NET in IIS 6.0

The information in this article applies to:
Microsoft Internet Information Services version 6.0
Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
Microsoft Visual Studio .NET (2002), Professional Edition
Microsoft Visual Studio .NET (2002), Academic Edition

 

This article was previously published under Q329473

SUMMARY

If you install Microsoft Visual Studio .NET with Internet Information Services (IIS) 6.0 to host Web applications or XML Web services, you must also enable Active Server Pages (ASP) and FrontPage Server Extensions (FPSE). ASP and FPSE are installed with IIS. By default, ASP and FPSE are disabled, and you must enable them by using IIS Manager, the IIS administration tool.

If you install Visual Studio .NET 2002, you must also map an application extension for .tmp files.

Note You do not have to map an application extension for .tmp files when you install Visual Studio .NET 2003.

Enable the Correct Web Service Extensions in IIS 6.0

After you install Visual Studio .NET, follow these steps to enable the Web service extensions:

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager. IIS Manager opens.
  2. Expand the computer name, and then click Web Service Extensions. The Web Service Extensions window appears on the right side of IIS Manager.
  3. Under Tasks, click Add a new Web service extension. The New Web Service Extension dialog box appears.
  4. For Extension name, select ASP.NET v1.0.3705.
  5. Add the Aspnet_isapi.dll file to the list of required files. To do this, click Add, click Browse, click the v1.0.3705 version of Aspnet_isapi.dll (found in C:\Windows\Microsoft.NET\Framework\v1.0.3705), and then click Open. Click OK.
  6. Click to select the Set extension status to Allowed check box, and then click OK.
  7. Click OK.

Map .tmp Files

  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. Right-click your Web site, click Properties, and click HTTP Headers.
  3. Click MIME Types, and then click New.
  4. For Extension, type .tmp.
  5. For MIME type, type text/plain.

Important You must repeat these steps for any Web site where Web projects will be created with Visual Studio .NET 2002.

 

Another Cause

Another cause might be that ASP.NET mappings are not correct. If so, try this:

  • Run the Aspnet_regiis.exe utility: Click Start, and then click Run.
  • In the Open text box, type cmd, and then press ENTER.
  • At the command prompt, type the following, and then press ENTER: “%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe” -i
    In this path, version represents the version number of the .NET Framework that you installed on your server. You must replace this placeholder with the actual version number when you type the command.

If you reinstalled IIS, you must also do this:

  • Register the Aspnet_isapi.dll: Click Start, and then click Run.
  • In the Open text box, type the following, and then press ENTER: regsvr32 %windir%\Microsoft.NET\Framework\version\aspnet_isapi.dll
    Regsvr32 returns the results of the registration.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s