Win2003 server asp.net permission setting problem and its solution _win server

Source: Internet
Author: User
Tags stack trace
I server use environment: WIN 2003
Asp. NET relative to ASP, set permissions is a bit different, there is a little set wrong to run. Search on the Internet are very rubbish answers, no one to use, the following is my own settings and from the problems encountered after the experience to share.
Asp. NET needs to use the Users group's permissions, because I have also encountered many times when I set the right to find that the site can not run, very depressed. Below according to the problem that appears, a little solution, let your asp.net run up.

Question one:
A part of the path "C:\" was not found.
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: System.IO.DirectoryNotFoundException: Part of the path "C:\" was not found.
Solve:
In the C disk plus the Users group Read access
I have tried: in the C disk plus users read access, but for the server security issues, I have to remove the Users group (think of a C disk below also want some folders to join the users permission). After removing the users group, successive problems are displayed in different ways, as discussed below, and then resolved one by one.

Question two:
Page Pop-up login window appears after cancellation: HTTP error 401.3-Unauthorized: Access due to the ACL on the requested resource settings were denied.
or an HTTP 401.1 error occurred
Solve:
First, check your "identity check and access control" in the "anonymous use of the following Windows user account" in the user password is correct, and check your site right-click-permission has not been included in this.
The first way to try it or this, you will see the folder permissions set
Add Users right to Windows

Question three:
If you browse to your entire site there are garbled
Solve:
That should be in C disk Windows plus Read permissions for the Users group

Question four:
Compile error
Description: An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately.
Compiler error Message: CS0016: Failed to write output file ' c:\windows\Microsoft.NET\work\v1.1.4322\Temporary asp.net files\root\345513e7\86f1794a\ Fvmzvzp7.dll "--" Deny access. ”
Solve:
The temp plus the read, write, and modify permissions of the Users group should be in the C-disk windows.

Question five:
Compile error
Description: An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately.
Compiler error message: Compiler failed with error code 128.
Solve:
You should add the Read permission for the Users group to System32 under Windows C.

Question six:
Run-time error
Description: An application error occurred on the server. The current custom error setting for this application prevents remote viewing of application error details for security reasons. However, you can view it by using a browser that is running on the local server computer.
More information: To enable others to view the details of this particular error message on a remote computer, create a <customErrors> tag in the "Web.config" profile located in the root of the current WEB application. You should then set the "mode" property of this <customErrors> tag to "off."
Copy Code code as follows:

<!--web.config configuration file-->
<configuration>
<system.web>
<customerrors mode= "Off"/>
</system.web>
</configuration>

Note: You can replace the current error page you see with a custom error page by modifying the "defaultredirect" property of the application's <customErrors> configuration tag to point to the URL of the custom error page.
Copy Code code as follows:

<!--web.config configuration file-->
<configuration>
<system.web>
<customerrors mode= "RemoteOnly" defaultredirect= "mycustompage.htm"/>
</system.web>
</configuration>

Solve:
Right-click on the site-permissions plus the Read permission of the IIS_WPG group
Summary
Windows Temp System32 requires users ' privileges
Windows Read Temp read, write System32 read
Station permission to add IIS_WPG Read permission
So the security of the server will also be a lot lower, hehe,

Question 7
An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately
"An error occurred while compiling the resources required to provide services to the request" when VS2005 compiled the Web site's built-in environment. Please check the following specific error details and modify the source code appropriately "This error, the online Baidu a bit, there are the following solutions:
Modify the permissions for the directory, plus the "network SERVICE", so that it has control over the directory.
Modify the default account for the network/iis/iis service. htm "The default account for the >iis service is" Local System "
It is proved that the method is feasible and the method is a failure. But method two can cause IIS to run unsafe, so this method is not appropriate.
I tried to follow the plan, did not succeed, suddenly thought of yesterday because of anti-virus, installed McAfee, check McAfee's log, sure enough, there are a few:
C:\Program files\internet Explorer\iexplore.exe \registry\machine\software\classes\.torrent\@ Antivirus maximum protection: Prevent changes to registration of all file extensions
C:\windows\system32\inetsrv\w3wp.exe C:\WINDOWS\TEMP\wda3zurp.dll Universal Maximum protection: prevent the creation of new executables in Windows folders
This should be the problem here, the two rule delete, compile success:)
Question 8
Error 1 "asp.login_aspx." GetTypeHashCode () ": no suitable method was found to rewrite c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary asp.net files\clim\ 22c580cf\181f2416\app_web_iiv2pnyq.8.cs
Error 2 "asp.login_aspx." ProcessRequest (System.Web.HttpContext) ": no suitable method was found to rewrite C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP . NET Files\clim\22c580cf\181f2416\app_web_iiv2pnyq.8.cs
Error 3 "asp.login_aspx" does not implement interface member "System.Web.IHttpHandler.IsReusable" c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ Temporary asp.net files\clim\22c580cf\181f2416\app_web_iiv2pnyq.8.cs

Workaround: Check that the method name, class name, and namespace are consistent.
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.