How to deploy VS2010. NET projects to Iis7.5__.net

Source: Internet
Author: User
Tags file permissions
A few days ago the entire virtual cloud host, installed Windows Server, is going to be a sophomore in C # time to write a small web site deployed to IIS, before the VS inside the direct debugging look at the site effect, did not expect to deploy to IIS on a lot of trouble, a bunch of errors, in the query a variety of information has been consulted after the teacher, The detailed process is hereby sorted out.
First, the VS project folder is the solution, with the. sln file, which needs to be published as a Web file (now think it's ridiculous I don't know, it was just a tool)


Install IIS7.5, programs, and features on Windows7-turn Windows features on or off.



Attention. In the application development function must choose ASP.net, other default can be.



Add a Web site and select a good folder.


Stop the default Web site directly.


To edit the application pool, depending on the. NET version you use on VS, the vs2010 I use is. net4.0, select. Note that there is a managed piping mode selected as a classic, otherwise it will be a mistake (here does not understand why ...) )。


OK, let's get started on the website.


HTTP Error 500.19-internal Server error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Configuration error Unable to read configuration file due to insufficient permissions

This time found that this error, insufficient file permissions, that our website folder can not be called by the IIS does not have permissions, then need to add permissions to the folder, if you do not know who to add this is the easiest way to see the default Web site folder has the user rights, then found that need to add iis_ Iusrs this permission

Refresh.


HTTP Error 401.3-unauthorized
You do not have permission to view this directory or page because of Access control List (ACL) configuration or encryption settings for this resource on the WEB server.


Added permissions or this problem, asked the teacher after know the need to add IUSR this permission

and then refresh.



HTTP Error 404.17-not Found
The content of the request appears to be a script and will not be processed by a static file handler.

When. NET cannot be executed, click on the server to open the ISAPI and CGI restrictions.

If you need to show that the. NET version is not allowed to become allowed, if the required version is not in the inside, you need to register, in the operation of the input C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet_ Regiis.exe–i
Now you see that. NET 4.0 is already available and changed to allow




and then refresh.


Success.

In addition, some situations also need to be noted:

HTTP Error 403.14-forbidden
The WEB server is configured to not list the contents of this directory.

This is caused by not adding a default document and directory browsing disabling, adding a default document or enabling directory browsing is OK




The "microsoft.jet.oledb.4.0" provider is not registered on the local computer
Exception Details: System.InvalidOperationException: The "microsoft.jet.oledb.4.0" provider is not registered on the local computer.

If you have a 64-bit system with this error you need to check the application pool settings, click on the application pool you selected, point Advanced Settings-enable the 32-bit application, change false to True, and try to see if the problem is resolved.


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.