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:
- connection strings is different as they both uses different db
- custom membership & custom role is different as they both uses the namespace of the project
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