0

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 30:     </httpHandlers>
Line 31:     <httpRuntime maxRequestLength="3145728" />
Line 32:     <authentication mode="Forms">
Line 33:       <forms loginUrl="~/admin"  timeout="40"/>
Line 34:     </authentication>

Am I need Add web site to IIS for authentication

4

1 に答える 1

1

The <authentication> node cannot be inherited. It needs to be defined only once at the top level web.config. Your ASP.NET MVC 3 application needs to be hosted in a virtual directory in IIS or in a separate website.

于 2013-03-17T11:55:12.190 に答える