p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   ASP.NET 3.5 Professionals (http://p2p.wrox.com/asp-net-3-5-professionals-352/)
-   -   <authentication mode="Forms"/> (http://p2p.wrox.com/asp-net-3-5-professionals/75584-authentication-mode-forms.html)

msman88 August 6th, 2009 10:30 AM

<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/

Lee Dumond August 6th, 2009 11:11 AM

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.

msman88 August 6th, 2009 11:59 AM

Quote:

Originally Posted by Lee Dumond (Post 244856)
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.

Sorry .. The site is uploaded in the host ! so

Lee Dumond August 6th, 2009 01:48 PM

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>.

msman88 August 7th, 2009 08:11 AM

Quote:

Originally Posted by Lee Dumond (Post 244865)
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>.

thanks for help ... I appreciate you ...
I removed the Web.config that's : alwsal.net/New_directory/web.config,
But Still problem ..

Lee Dumond August 7th, 2009 10:12 AM

what's the new problem?

msman88 August 7th, 2009 12:16 PM

Quote:

Originally Posted by Lee Dumond (Post 244899)
what's the new problem?

Sorry the same problem

<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"/>

msman88 August 8th, 2009 07:51 AM

Quote:

Originally Posted by Lee Dumond (Post 244899)
what's the new problem?

The same problem stiil
<authenfication mode="Fprms"/>
Sorry for inconvenience ...

msman88 August 8th, 2009 10:18 AM

Quote:

Originally Posted by Lee Dumond (Post 244865)
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>.

Thanks this answer solved the problem ... Thanks Lee Dumend .. I appreciate your hard work with me .. Best wishes .. Best withes ..

Lee Dumond August 8th, 2009 10:31 AM

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.