Six questions about permission settings for running asp.net Server

Source: Internet
Author: User

In this article, the server environment is WIN 2003.
We all know that ASP. NET is different from ASP in setting permissions, and it cannot run even if it is set incorrectly. I will share with you the experience I have gained after solving this problem.
ASP. NET requires the USERS Group permission, because it is depressing to find that the website cannot run after many permissions are set. The following is a little solution based on the problems that have occurred, so that your ASP. NET can run.
Question 1:
Part of path "C:" is not found.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception details: System. IO. DirectoryNotFoundException: Part of the path "C:" is not found.
Solution:
Add the Users Group read permission to drive C.
I have tried it: I can access it after adding the Users read permission to drive C, but due to server security issues, I removed the UserS Group again (think that some folders under drive C should be added to the UserS permission ). After removing the USERS group, the successive problems are displayed in different ways, as described in the following section, and then solved one by one.
Question 2:
After the logon window is displayed, the following error occurs: HTTP Error 401.3-unauthorized: access to requested resources is denied due to ACL settings.
Or an HTTP 401.1 error occurs.
Solution:
1. First, check whether the password in your "Identity Authentication and Access Control" for anonymous use of the following windows User Accounts "is correct, you can also right-click your website and choose "permission" to check if it has been added to this page.
If this is the case in the first method, the folder permission is set.
Add the Users permission on windows.
Question 3:
If garbled characters appear on your entire website
Solution:
Add the users Group read permission to drive C windows.
Question 4:
Compilation Error
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.
Compiler error message: CS0016: failed to write the output file "c: windowsMicrosoft. NETworkv1.1.4322Temporary ASP. NET Filesoot345513e786f1794afvmzvzp7. dll" -- "Access denied. "
Solution:
Add the Users Group's read, write, and modify permissions to temp on drive C windows.
Question 5:
Compilation Error
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.
Compiler error message: the compiler fails. The error code is 128.
Solution:
Add the Users Group read permission to System32 in windows Drive C.
Question 6:
Runtime error
Note: An application error occurs on the server. The current custom error settings of this application Disable remote viewing of detailed information about application errors (for security reasons ). However, you can view it in a browser running on the local server computer.
Details: to enable others to view details of this specific error message on a remote computer, go to the "Web. create a <mermerrors> tag in the config file. Set the "mode" attribute marked by <customErrors> to "Off ".
<! -- Web. Config configuration file -->
<Configuration>
<System. web>
<CustomErrors mode = "Off"/>
</System. web>
</Configuration>
Note: Modify the defaultRedirect attribute of the <customErrors> Configuration tag of the application to point to the URL of the custom error page, you can use a custom error page to replace the current error page.
<! -- Web. Config configuration file -->
<Configuration>
<System. web>
<CustomErrors mode = "RemoteOnly" defaultRedirect = "mycustompage.htm"/>
</System. web>
</Configuration>
Solution:
Right-click the site and add the IIS_WPG Group read permission to the permission.
Summary:
Windows temp System32 requires the users permission.
Windows read temp read, write System32 read
The website permission must be added with IIS_WPG read permission, so the server security will be greatly reduced.
This article comes from the http://www.lpxx.cn of luyun school Source: html/8/552.html "> http://www.lpxx.cn/html/8/552.html

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.