win2003 server asp.net permission setting problem and solution

  • 2020-05-06 12:01:20
  • OfStack

My server environment :WIN 2003
Es2en.NET is a little different from ASP in terms of setting permissions, with a few Settings that are wrong and won't work. All the answers found on the Internet are very rubbish, none of which can be used. The following is the experience I got after exploring and exploring the problems I encountered by myself. I would like to share with you.
ASP.NET requires the permissions of the USERS group, because I have been frustrated many times when I set the permissions myself and found that the website didn't work. Here's how to get your ASP.NET up and running, little by little, depending on the problem.

Problem 1:
Part of the path "C:\" was not found.
Note: during the execution of the current Web request, an unhandled exception occurred. Check the stack trace 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 C disk with the Users group read permission to
I've tried: C disk with Users read access, but for server security reasons, I removed the UserS group (think C disk should have some more folders to add UserS permissions). With the USERS group removed, successive problems are shown in different wrong ways, such as the following, and then solved.

Question 2:
Error 401.3 - unauthorized: access denied due to ACL's Settings on the requested resource.
Or HTTP 401.1 error
Solution:
First, you should check whether the password in your "identity verification and access control" is correct and whether you can use the following windows user account anonymously in your "identity verification and access control".
If the first method still works, just look at the folder's permissions and set
Add Users weight to windows to

Question 3:
If browsing your entire site appears to be garbled
Solution:
That should be c disk windows plus users group access to

Question 4:
Compilation error
Note: an error occurred while compiling the resources needed to service the request. Check the following specific error details and modify the source code as appropriate.
Compiler error message: CS0016: could not write to the output file "c:\windows\ Microsoft.NET \ NET\work\ v1.1.4322 \Temporary \ ASP.NET \Temporary \345513e7\ 86f1794dll" -- "access denied. "
Solution:

should be temp on c disk windows plus the read, write, and modify permissions of Users group
Question 5:
Compilation error
Note: an error occurred while compiling the resources needed to service the request. Check the following specific error details and modify the source code as appropriate.
Compiler error message: compiler failed, error code 128.
Solution:

should be System32 on c disk windows plus the read permission of Users group
Question 6:
Runtime error
Note: an application error occurred on the server. The current custom error Settings for this application prohibit remote viewing of the details of application errors (for security reasons). But you can see it through a browser running on your local server computer.
Details: to enable others to view the details of this particular error message on a remote computer, create an < in the NET.config configuration file located in the current Web application root customErrors > The tag. This < should then be placed customErrors > The "mode" property of the tag is set to "Off".
 
<!-- Web.Config  The configuration file  --> 
<configuration> 
<system.web> 
<customErrors mode="Off"/> 
</system.web> 
</configuration> 

Comment: by modifying the < of the application customErrors > Configure the "defaultRedirect" attribute of the tag to point to URL of the custom error page, and you can replace the current error page you see with the custom error page.
 
<!-- Web.Config  The configuration file  --> 
<configuration> 
<system.web> 
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> 
</system.web> 
</configuration> 

Solution:
Right click on the site and add the read permission of IIS_WPG group to
Total:
Both windows temp System32 require
with users permissions windows reads temp, System32 reads
The station permission is added with IIS_WPG read permission
So the security of the server is much lower, hehe,

Question 7
An error occurred while compiling the resources needed to service the request. Check the following specific error details and modify the source code
as appropriate An error occurred while compiling the web site "while compiling the resources needed to service the request. Please check the following specific error details and modify the source code appropriately "for this error, go to baidu once, there is the following solution:
Modify the permissions for the directory to add "NETWORK SERVICE" to give it control over the directory.
Change the default account for network /IIS/IIS service.htm"> The default account for the IIS service is "local system"
Method 2 works, method 1 fails. However, method 2 causes IIS to run unsafely, so this method is not appropriate.
I tried following the plan, but all failed. I suddenly thought that yesterday I installed mcafee because of anti-virus, and checked the log of mcafee. As expected, there were several:
C:\Program :\ Files\Internet \iexplore c:\windows\system32\inetsrv\ w3wp.exe :\WINDOWS\TEMP\ wda3zurp.dll universal maximum protection: it is forbidden to create a new executable file
in the Windows folder Should be the problem here, delete the last two rules, compiled successfully :)
Question 8
Error 1 "ASP. login_aspx. GetTypeHashCode ()" : Did not find the right way to rewrite c: \ WINDOWS \ Microsoft NET \ Framework \ v2 0.50727 \ Temporary ASP. NET Files 22 c580cf \ clim \ \ 181 f2416 \ App_Web_iiv2pnyq 8. cs
Error 2 "ASP. login_aspx. ProcessRequest (System. Web. HttpContext)" : Did not find the right way to rewrite c: \ WINDOWS \ Microsoft NET \ Framework \ v2 0.50727 \ Temporary ASP. NET Files 22 c580cf \ clim \ \ 181 f2416 \ App_Web_iiv2pnyq 8. cs
Error 3 "ASP. login_aspx" will not implement the interface members "System. Web. IHttpHandler. IsReusable" c: \ WINDOWS \ Microsoft NET \ Framework \ v2 0.50727 \ Temporary ASP. NET 22 c580cf Files \ clim \ \ 181 f2416 \ App_Web_iiv2pnyq 8. cs

Solution: check that method names, class names, and namespaces are consistent.

Related articles: