On my own computer:
I have created my website on C:\Inetpub\wwwroot\12.I have created another website on C:\Inetpub\wwwroot\16. I made 12 as an application from IIS .therefore I can use http://localhost/12 to browse my website.
I copy folder 16 to 12 To be sub web of 12 so that I can access to 16 from http://localhost/12/16.when I enter http://localhost/12/16 in my address bar I see the following error
When I normally Server Error in '/12' Application. Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 14: <pages>Line 15: </pages>Line 16: <anonymousIdentification enabled="true" />Line 17: <!-- Line 18: Set compilation debug="true" to insert debugging symbols into the compiled page.
Source File: c:\inetpub\wwwroot\12\16\web.config Line: 16
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\12\16\web.config line 26)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\12\16\web.config line 43)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\12\16\web.config line 53)
I solve the problem by go to IIS in administrative tools and make 16 as an application .but I do not know how to solve it while uploading to host. In my web host I do not have any control over IIS to make it as an application.
|