Server asp.net permissions settings and solutions

  

Asp.net is a bit different from ASP in setting permissions. If you set it wrong, you can't run it. Searched on the Internet are very junk answers, no one to use, the following is the experience I have set up and explored the problems I encountered, to share with you.

ASP.NET needs to use the permissions of the USERS group, because I have encountered many times after setting the permissions and found that the website can not run, very depressed. The following is a little bit of solution based on the problems that arise, let your ASP.NET run. .

Question 1:

A part of the path “C:\\” was not found. Explanation: An unhandled exception occurred 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:\\” was not found.

Solution:

Add the Users group read permission on the C drive

I tried: You can access the C drive with the User read permission. But for server security issues, I removed the UserS group again (think of the need to add some User Folder permissions under the C drive). After removing the USERS group, successive problems are displayed in different error ways, such as the problems mentioned below, and then solved one by one.

Question 2:

The page pops up after the login window is canceled: HTTP Error 401.3 - Unauthorized: Access is denied due to ACL settings for the requested resource. Or there is an HTTP 401.1 error

Solution:

First, check your "identity verification and access control" in "Use the following windows user accounts anonymously" The user password is correct, and there is a right click on your website - there is no permission to join this.

If the first method tried this or not, just look at the permissions of the folder.

Add the Users right on Windows

Question 3: Br>

If you browse to your entire website, garbled

Solution:

That should be in the c drive windows plus the read permission of the users group

Four:

Compile Error Description: An error occurred during the compilation of the resources required to service the request. Please check the specific error details below and modify the source code as appropriate.

Compiler Error Message: CS0016: Failed to write to output file “c:\\windows\\Microsoft.NET\\work\\v1.1.4322\\Temporary ASP.NET Files\ oot\\345513e7\\86f1794a\\fvmzvzp7. Dll”--“ denied access. ”

Solution:

It should be in the temp of the c drive windows plus the permissions to read, write, and modify the Users group

Question 5:

Compile error Explanation: An error occurred during the compilation of the resources required to service the request. Please check the specific error details below and modify the source code as appropriate.

Compiler Error Message: The compiler failed with error code 128.

Solution:

System32 in the c drive windows plus the read permission of the Users group

Problem 6: Runtime error Description: App appears on the server The program is wrong. The current custom error setting for this application prohibits remote viewing of application error details (for security reasons). But it can be viewed by a browser 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 <;web.config” configuration file located in the root directory of the current web application ;customErrors> tag. You should then set the <customErrors> tag's “mode” attribute to “Off”.

<!-- Web.Config Configuration File-->

<configuration> <system.web> <customErrors mode="Off"/> < /system.web> </configuration>

Note: You can customize the URL by modifying the <customErrors> configuration tag of the application to point to the URL of the custom error page. The error page replaces the current error page you see.

<!-- Web.Config Configuration File-->

<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage .htm"/> </system.web> </configuration>

Solution: Right click on the site - permissions plus read access to the IIS_WPG group

Summary: Windows temp System32 requires the permissions of users. Windows read temp read, write System32 read station permissions plus IIS_WPG read permission, so the security of the server will be much lower, huh, huh,


Question 7

An error occurred during the compilation of the resources required to service the request. Please check the following specific error details and modify the source code appropriately

When compiling the website in the VS2005 build website built-in environment” An error occurred during the compilation of the resources required to service the request. Please check the following specific error details and modify the source code appropriately. This error, go to the online baidu, and have the following solution:

Modify the permissions of the directory, plus < NETWORK SERVICE”, Let it have control over the directory. Modify the default account of the network /IIS /IIS service. htm " & gt; IIS service default account is "local system" quo, verified method 2 is feasible, method one failed. However, Method 2 will cause IIS to be insecure, so this method is not suitable.

I tried it according to the plan, and I didn't succeed. I suddenly thought that yesterday because of anti-virus, I installed mcafee, and I checked the logs of mcafee. There are a few things:

C:\\PRogram Files \\Internet Explorer\\iexplore.exe \\REGISTRY\\MACHINE\\SOFTWARE\\Classes\\.torrent\\@ Maximum protection against viruses: Do not change the registration of all file extensions c:\\windows\\system32\\inetsrv\\w3wp.exe C:\\WINDOWS\\ TEMP\\wda3zurp.dll Universal Maximum Protection: prohibiting the creation of new executable files in the Windows folder

It should be the fault here, delete the last two rules, compile successfully:)

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\\18 1f2416\\App_Web_iiv2pnyq.8.cs

Error 3 "ASP.login_aspx" does not implement interface members "System.Web.IHttpHandler.IsReusable" c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727 \\Temporary ASP.NET Files\\clim\\22c580cf\\181f2416\\App_Web_iiv2pnyq.8.cs

Solution: Check whether the method name, class name, and namespace are consistent.

Copyright © Windows knowledge All Rights Reserved