asp.net - How to solve Server Error in '/' Application.? -
i have been trying access partner's web application computer problem keeps showing up.i have tried convert web application application in iis,but problem still persists.
configuration error description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.
parser error message: error use section registered allowdefinition='machinetoapplication' beyond application level. error can caused virtual directory not being configured application in iis.
source error:
line 17: <add assembly="system.web.extensions.design, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/> line 18: <add assembly="system.windows.forms, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/></assemblies></compilation> line 19: <authentication mode="forms"> line 20: <forms loginurl="~/account/login.aspx" timeout="2880"/> line 21: </authentication> source file: c:\inetpub\wwwroot\fas\fas\web.config line: 19
show additional configuration errors:
it error use section registered allowdefinition='machinetoapplication' beyond application level. error can caused virtual directory not being configured application in iis. (c:\inetpub\wwwroot\fas\fas\web.config line 22) error use section registered allowdefinition='machinetoapplication' beyond application level. error can caused virtual directory not being configured application in iis. (c:\inetpub\wwwroot\fas\fas\web.config line 28) error use section registered allowdefinition='machinetoapplication' beyond application level. error can caused virtual directory not being configured application in iis. (c:\inetpub\wwwroot\fas\fas\web.config line 34)
the problem happens because have web.config file in sub directory of application, , has authentication element. authentication element can appear in root web.config. please refer element documentation here. under element information section it's stated configurable locations machine.config, root-level web.config, application-level web.config
to solve problem, have either:
- remover child web.config, , leave 1 on root.
- or, if child web.config essential application, remove whole
authenticationelement it. may configureauthenticationonce in root level web.config.
Comments
Post a Comment