I have two projects that is on iis like this:
inetpub/wwwroot/mysites/secure/web_application_1 --> has its own web.config
inetpub/wwwroot/mysites/secure/web_application_2 --> has its own web.config
The two applications are totally different applications, however, they both have their own client authentications & custom role & custom membership.
web_application_1
works fine as its the old application.
web_application_2
is the new application, when I ran it on the web, I got errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
I am not sure what is wrong in the web.config
?
The web.config
is same with the exception that:
The whole IIS & URL was set up for web_application_1; and since it takes like forever to request new setup from my sysadmin, we both suggested i could just do this:
https://www.mywebsite.com/secure/web_application_1
inetpub/wwwroot/mysites/secure/web_application_1 --> has its own web.config
https://www.mywebsite.com/secure/web_application_2
inetpub/wwwroot/mysites/secure/web_application_2 --> has its own web.config
ok found my own solution:
Add the folder “web_application_2” as an application in IIS manager: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b5488995-fa99-460f-96d7-29d1ddcf3fac.mspx?mfr=true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.