Win7, win2008 the method of letting IIS7 support ASP

Source: Internet
Author: User
Tags database issues

1. Let IIS7 support ASPWin7 or Windows Server 2008 IIS7 is not installed by default, so if you need to install IIS7 after installing Win7 or Windows Server 2008, you'll have to do it yourself. The steps to install are:StartControl Panelprogramturn Windows features on or off"Internet Information Service. IIS7 installation should be noted, if you need ASP, ASP. NET and so on, it is necessary to install the function module, the default is not installed.
Method One:
Steps to resolve:
1. Double-click ASP, Debug Properties, change "Send error to Browser" to True 2, double-click ASP, Behavior, "Enable Parent path", set to True
3. Double-click the default document to add the default home page index.asp
4, click Application Pool, select DefaultAppPool, choose Set Application Pool default, "Enable 32-bit application" set to True
Tip: If there is a problem with write permissions, you can select the newly added Web site, then on the right, select Edit permissions, and then add write permissions to the user (machine name)
Method Two:1. asp is typically unchecked by default when IIS is installed under Win7, so you need to open the IIS check feature in the View Bar for ASP options, and if not, you need to turn Windows features on or off from Control Panel, programs and features, Internet Information Services, World Wide Web services, application Development feature, select ASP.
2. Restart IIS.
3. Open IIS, you can see the ASP chart from the function view of the corresponding site, click the Enter icon to make several changes and apply:
A. Debug properties, send errors to browser->true.
B. Behavior, enable parent path->true.
C. If you want to modify the upload file size, you can adjust the value of Maximum request entity principal limit in limit properties.
2. Troubleshoot Access database issues in IIS7.
By default, after IIS7 is installed, the ASP program will find that the connection to the database failed and was found on the Internet because the MS Jet engine changed the location of the temp directory, but did not have temporary access to it, which caused the database to fail.
Add a "Authenticated users" user to the "system disk: \windows\serviceprofiles\networkservice\appdata\local\temp" directory, where the AppData directory is hidden , you can enter the path directly into the address bar, or display hidden files in the folder options.
To set permissions steps: Right-click the Temp folder, select Properties, select the Security tab, click Edit to come out to the Permissions for Temp dialog box, click Add, enter authenticated Users in the following input object name to select, OK to return to the The permissions for Temp "will be authenticated to the full control in the users ' permissions on the tick, OK."
How to link:

. The code is as follows:Serverpath=server.mappath ("/xxx.mdb")
Connstr= "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & Serverpath
Set schooldb=server.createobject ("Adodb.connection") schooldb. Open ConnStr

3. Win7 or Windows 2008 64-bit system resolves an Access database issue in IIS7.
If you use a 64-bit system, that may not be possible as a workaround, because 64-bit systems do not provide drivers for 64-bit access connections, and the "Enable 32-bit application" of the project in the application pool corresponding to the site is set to "Ture". That's all you can do.
Other tips in IIS7:
A. Enable the parent path. Commonly used for: /parent path used in IIS7 is not supported by default. On the home page of IIS-->asp, double-click Enable parent path: True
B. Return the error message to the browser. Default page code error The browser will appear "An error occurred on the server when processing the URL. Please contact the system administrator ". The error is sent to the browser on the home page of IIS-->asp, double-click on Debug Error: True

Win7, win2008 the method of letting IIS7 support ASP

Related Article

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.