![]() |
<authentication mode="Forms"/>
i created a simple website without database or login part, and then uploaded it to the server , but gives the following error:
Server Error in '/' 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 79: ASP.NET to identify an incoming user. Line 80: -->Line 81: <authentication mode="Forms"/>Line 82: <!--Line 83: The <customErrors> section enables configuration Source File: D:\hshome\c259998\alwsal.net\new_directory\web.con fig Line: 81 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 Source http://alwsal.net/New_directory/ |
This is because the new_directory directory is not configured as an application. Therefore, you cannot specify the authentication section there.
If it was your intention to make a new sub-application, then configure new_directory as it's own virtual directory application. If not, then only specify the authentication section under the web.config for alwsal.net. |
Quote:
|
I understand that, but that doesn't matter.
Let me put it another way: You have a site called alwsal.net. Under that site, you have a directory called New_directory. You appear have a web.config under both locations: alwsal.net/web.config and alwsal.net/New_directory/web.config If you have no reason to have a second web.config under New_directoty, you should just get rid of it. If you need a web.config there for some reason (to secure the folder for authorization purposes, for example) then you cannot have a section in it for <authentication>. |
Quote:
I removed the Web.config that's : alwsal.net/New_directory/web.config, But Still problem .. |
what's the new problem?
|
Quote:
<authentication mode="Forms"/> http://p2p.wrox.com/images/misc/navb...allink_ltr.gif Reply to Thread <authentication mode="Forms"/> http://p2p.wrox.com/images/misc/navb...allink_ltr.gif Reply to Thread <authentication mode="Forms"/> http://p2p.wrox.com/images/misc/navb...allink_ltr.gif Reply to Thread <authentication mode="Forms"/> http://p2p.wrox.com/images/misc/navb...allink_ltr.gif Reply to Thread <authentication mode="Forms"/> |
Quote:
<authenfication mode="Fprms"/> Sorry for inconvenience ... |
Quote:
|
You're welcome! (please remember to click the Thanks button for me...)
|
All times are GMT -4. The time now is 02:53 PM. |
Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.