Win2008 Server reload system, run ASP site (use Access database) reported n many errors, after an hour finally resolved, summed up as follows:
On the win2008 server
1. The site application pool is enabled for 32-bit instead.
2. This site enables the parent path.
3. Error page for global site-edit feature settings-error response: Select verbose error.
4. To the C:\Window\Temp directory, set IUSR read and Write permissions to troubleshoot (Microsoft JET Database Engine error ' 80004005 ') error.
1. Let IIS7 support ASP
Win7 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: Start Control Panel program turn on or off Windows features Internet Information Services. IIS7 installation needs to be aware of, if you need ASP, ASP. NET, and so on, is required to install the function module, the default is not installed.
Method One:
Solution steps:
1, double-click ASP, Debug Properties, "Send error to Browser" to True
2, double-click ASP, Behavior, "Enable Parent path", set to True
3, double-click the default document, add default home index.asp
4, click Application Pool, select DefaultAppPool, select Set application pool default settings, 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 User (machine name)
Method Two:
1. When installing IIS under Win7, ASP is typically unselected by default, so you need to open the IIS Check feature view bar for ASP options, and if not, turn Windows features on or off from the Control Panel-> programs and features->-> Internet Information Services-> World Wide Web Services-> application development features check ASP.
2. Restart IIS.
3. When you open IIS, you can see the ASP chart from the functional view of the corresponding site, click on the icon to make several changes and apply:
A. Debug properties-> sends an error to the browser->true.
B. Behavior-> enable parent path->true.
C. If you want to modify the upload file size, you can adjust the value of the maximum request entity principal limit in the constraint properties.
2. Troubleshoot Access database problems in IIS7.
After IIS7 is installed by default, the ASP program discovers that the prompt database connection failed, and looked for it on the Internet because the MS Jet engine changed the location of the temp directory, but did not have temporary access rights, resulting in database usage failure.
Add a user for "Authenticated users" to the "system disk: \windows\serviceprofiles\networkservice\appdata\local\temp" directory where the AppData directory is hidden , you can enter the path directly in the address bar when entering, or display hidden files in Folder options.
To set permissions step: Right-click the Temp folder and choose Properties Select the Security tab Click Edit to come out the Temp Permissions dialog box, click Add, and then enter authenticated Users in the Enter object name to select, OK returns to Temp's Permissions ", will be authenticated users of the full control on the hook, ok" OK.
Link way:
Copy Code code 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 the Access database problem in IIS7.
If you use a 64-bit system, it may not work as well because the 64-bit system does not provide a 64-bit access connection driver, and the "Enable 32-bit application" for projects in the corresponding application pool of the Web site is "ture". That's it.
Other tips in IIS7:
A. Enable the parent path.
Commonly used in ... /parent path used in IIS7 is not supported by default.
On the home page of IIS-->asp-> double hit Open-> enable parent path: True
B. Return an error message to the browser.
Default page code error browser will appear "An error occurred on the" processing the URL. Please contact the system administrator.
On the homepage of IIS-->asp-> double hit open-> debug error-> send error to browser: True