|
 |
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|

August 6th, 2009, 10:30 AM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
<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/
|

August 6th, 2009, 11:11 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
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.
|
The Following User Says Thank You to Lee Dumond For This Useful Post:
|
|

August 6th, 2009, 11:59 AM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Lee Dumond
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
|

August 6th, 2009, 01:48 PM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
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>.
|
The Following User Says Thank You to Lee Dumond For This Useful Post:
|
|

August 7th, 2009, 08:11 AM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Lee Dumond
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 ..
|

August 7th, 2009, 10:12 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
what's the new problem?
|

August 7th, 2009, 12:16 PM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
|

August 8th, 2009, 07:51 AM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Lee Dumond
what's the new problem?
|
The same problem stiil
<authenfication mode="Fprms"/>
Sorry for inconvenience ...
|

August 8th, 2009, 10:18 AM
|
Authorized User
|
|
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by Lee Dumond
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 ..
|

August 8th, 2009, 10:31 AM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
You're welcome! (please remember to click the Thanks button for me...)
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |