Solution to the failure to create an ASPnet WEB Project

Source: Internet
Author: User
Tags tmp file visual studio installer

1. When no application is created in the site home directoryProgram:

Follow these steps to create a webapp through FP extension + virtual directory:

(1) Right-click the site-all tasks-configure Server Extension

(2) create a virtual directory *** and configure the application

(3) create a web project in VS with the name ***

(4) Establish Web through FP Extension

 

2. When the site home directory creates an application:

Method 1-FP extension:

(1) Right-click the site-all tasks-configure Server Extension

(2) create a web project in Vs and set the name as needed.

(3) Establish Web through FP Extension

Method 2-Web Sharing:

(1) Change the IP address in IIS to all unallocated

(2) Change the address to 127.0.0.1 or localhost.

 

3. Try the following methods when you cannot create one:

(1) "Site" --- Right-click --- "properties" --- "all tasks" --- "re-calculate the hyperlink on the Web"

Then, use the FrontPage Server Extension in vs.net to create

(2) indicates that you want to directly access project files on the web server through file sharing; you do not need to install FrontPage Server Extensions on this server.

When Visual Studio. NET is installed, a "vs developers" (vs developers) User Group is created, and the user group is granted read/write permissions on the Inetpub \ wwwroot folder. Anyone who wants to create a web project using file sharing on a computer must add it to the vs developers user group. The newly created vs developers group does not have any members. Therefore, even users who install Visual Studio must manually add themselves to the group.

If you do not want to install Visual Studio on the server, you can install only the server components through the Visual Studio installer to create a "vs developers" (vs developers) group.

(3) win2003:

In vs. net, to test the URL and Unc, vs. Net generates a. tmp file under the Directory and sends a request to the file through HTTP. However, in IIS 6, for security reasons, the tmp file is not registered. By default, it is blocked and an HTTP 404 error is generated.

To solve this problem, see the following method:

1. Open the IIS manager.

2. Right-click "Default web site" and select Properties.

3. Click "HTTP header ".

4. Click "MIME types ".

5. Click "new ".

6. In extension, enter ". tmp". (No quotation marks are required)

7. In MIME type, enter "Temp". (No quotation marks are required)

Another solution is to use the following command line:

% Systemdrive % \ Inetpub \ adminscripts \ adsutil. vbs set w3svc/1/root/mimemap. tmp, temp

When creating a web application, vs. Net needs to create a temporary file named. tmp under the Creation Path.
After vs. Net creates a project, it will seek the project file from the Web Folder through HTTP and temporary files. Because IIS does not set the. tmp file to the MIME type in some installation steps of Windows2003, IIS returns an unknown file type error to vs. net, that is, the file cannot be found. So vs. Net thinks that your IIS path settings are incorrect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.