Workaround on creating APS.WEB projects

zhaozj2021-02-16  126

1. When the site main directory does not create an application:

Establish WebApp through the FP extension virtual directory, steps below:

(1) Right click on the site - all tasks - Configure server extensions

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

(3) Create a web project in VS, name is also ***

(4) Establish web by FP expansion

2, when the site main directory creates an application:

First method - FP extension:

(1) Right click on the site - all tasks - Configure server extensions

(2) Create a web project in VS, name yourself

(3) Establish web by FP extension

Second method --Web sharing:

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

(2) Change the address to 127.0.0.1 or Localhost

3, please try the following methods when you can't build:

(1) "Site" --- Right button --- "Properties" --- "All Tasks" --- "Recalculate the Hyperlink on the Web"

Then create through the FrontPage server extension under VS.NET

(2) Indicates that the project files to access the web server directly via the file; do not need to install the FrontPage server extension on the server.

When you install Visual Studio .NET, a "VS Developers" user group will be created and the user group is granted read / write permission to the INETPUB / WWWROOT folder. Any user who wants to use file sharing to create a Web project on your computer needs to be added to the "VS Developers" user group. The new "VS Developers" group does not have any members, so even if you install Visual Studio, you must also manually add yourself to this group.

If you do not want to install Visual Studio to the server, you can install only server components through the Visual Studio installer to create a "VS Developers" group.

(3) Win2003 under:

In VS.NET, in order to test URLs and UNCs, VS.NET generates a .tmp file under the directory, then send requests to the file via HTTP. However, in IIS 6, for security reasons, the TMP file is not registered. By default, HTTP 404 errors are generated by Block.

To solve this problem, please refer to the following method:

1. Open IIS Manager.

2. Right click on "Default Web Site" and select Properties.

3. Click "HTTP Header".

4. Click "MIME TYPES".

5. Click "New".

6. In Extension, enter ".tmp". (No quotation number)

7. In MIME TYPE, enter "Temp". (No quotation number)

There is also a solution that you can use the following command line:

% SystemDrive% / INETPUB / Adminscripts / Adsutil.vbs Set W3SVC / 1 / ROOT / MIMEMAP .TMP, TEMP

When you create a web application, VS.NET needs to create a temporary file that is named .tmp under the creation path. When VS.NET creates a good project, you will seek project files in HTTP, and you also seek temporary files. Since Windows2003 is not set to the MIME type under certain installation steps, IIS returns an unknown file type of unknown file type to VS.NET, that is, the file is not found. So vs.net thinks your IIS path settings are not

转载请注明原文地址:https://www.9cbs.com/read-8373.html

New Post(0)