Days later, the website developed by vs2005 was sent to the local IIS website. Because the iis was not configured before, and iis was unavailable, I had to re-install iis. however, after the iis is re-installed, there is still another problem. This problem has not been encountered yet. The internal content is shown as follows:
The details are as follows:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. please review this log entry to discover what caused this error to occur.
View the application events in the Event Viewer. Two Response types are displayed, as shown in the following figure:
1.
Failed to execute request because the App-Domain cocould not be created. Error: 0x80070005 access rejected.
2.
Failed to initialize the AppDomain:/LM/W3SVC/1549957242/Root
Exception: System. IO. FileLoadException
Message: cocould not load file or assembly 'System. Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or one of its dependencies. Access is rejected.
StackTrace: at System. Reflection. Assembly. _ nLoad (AssemblyName fileName, String codeBase, evi1_assemblysecurity, Assembly locationHint, StackCrawlMark & stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
At System. Reflection. Assembly. nLoad (AssemblyName fileName, String codeBase, evi1_assemblysecurity, Assembly locationHint, StackCrawlMark & stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
At System. Reflection. Assembly. InternalLoad (AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection)
At System. Reflection. Assembly. InternalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection)
At System. activator. createInstance (String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object [] args, CultureInfo culture, Object [] objects, Evidence securityInfo, StackCrawlMark & stackMark)
At System. Activator. CreateInstance (String assemblyName, String typeName)
At System. AppDomain. CreateInstance (String assemblyName, String typeName)
At System. AppDomain. CreateInstance (String assemblyName, String typeName)
At System. Web. Hosting. ApplicationManager. CreateAppDomainWithHostingEnvironment (String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
At System. Web. Hosting. ApplicationManager. CreateAppDomainWithHostingEnvironmentAndReportErrors (String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
When I saw it, I started Baidu. As a result, many people found this kind of sentiment, so I tried to find the reason.
At the beginning, I saw a prompt asking me how to solve the problem of people like me. Here is a way to give it to everyone, the method is as follows:
1. open the "command output" window and switch the contents to % SystemRoot % \ Microsoft. net \ Framework \ (% SystemRoot % reboot depends on your Windows Security Program, generally in C: \ Windows)
2. The "net stop w3svc" Operation stops w3svc service.
3. Switch to v2.0.5.xxx
4. Remove the. Net security rule from the "aspnet_regiis.exe-ua" line.
5. re-install. Net to "aspnet_regiis.exe-I" in IIS"
6. Restart w3svc "net start w3svc ".
But I still haven't found the reason, so I can find another one. Then I will find an article with a record, saying "aspnet_regiis.exe-ua ", all versions of asp.net will be uninstalled, regardless of the version under which the command is executed (this reminds us that if you want multiple versions to exist at the same time, use them with caution ). I only need to use v.2.0 for my workshop.
After reading several articles, I still want to solve the problem first, and then find the cause in the workshop. then, follow the steps above. When I tried to refresh the plane on the timer, the result still shows a prompt for the original timer. please wait ...........................
You have to wait for the response. later, I found out that iis is not properly configured and the permission is limited. the question of permission restriction has not been clarified yet. at first, I suspected that it was a matter of privilege, set the permissions of the "ISUR _ "and "IWAM _" networks to full control, but it still does not work, I don't know where the problem is. later, the article said that the "Everyone" permission should be fully enabled. If you can ask, the permission restriction problem will be solved, I didn't fully enable the "Everyone" permission, but only confirmed and confirmed the rows by mistake. I can still ask, I'm glad, in this way, the "aspnet" and "iis_wpg" regions are also permitted, and only the reserved and reserved rows are used for the authentication, then, if you drop "Everyone", you can still ask, then, I set the "ISUR _ "and "IWAM _" permissions to "only allow" and "allow, you can also ask. I reversed the email several times and kept the "ISUR _ 名" (I used this website to log on to the website when I was anonymous ), "aspnet" and "iis_wpg" are only allowed and permitted. haha, problem solving