Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 6th, 2009, 09:30 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default <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/
  #2 (permalink)  
Old August 6th, 2009, 10:11 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

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.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
msman88 (August 8th, 2009)
  #3 (permalink)  
Old August 6th, 2009, 10:59 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
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
  #4 (permalink)  
Old August 6th, 2009, 12:48 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

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>.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
msman88 (August 8th, 2009)
  #5 (permalink)  
Old August 7th, 2009, 07:11 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
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 ..
  #6 (permalink)  
Old August 7th, 2009, 09:12 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

what's the new problem?
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
  #7 (permalink)  
Old August 7th, 2009, 11:16 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
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"/>
  #8 (permalink)  
Old August 8th, 2009, 06:51 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
what's the new problem?
The same problem stiil
<authenfication mode="Fprms"/>
Sorry for inconvenience ...
  #9 (permalink)  
Old August 8th, 2009, 09:18 AM
Authorized User
Points: 437, Level: 7
Points: 437, Level: 7 Points: 437, Level: 7 Points: 437, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2008
Location: Tareem, Hadramout, Yemen.
Posts: 89
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Lee Dumond View Post
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 ..
  #10 (permalink)  
Old August 8th, 2009, 09:31 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

You're welcome! (please remember to click the Thanks button for me...)
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to go back to last position after move mouse by mouse_event Lib "user32" Hoang Excel VBA 0 July 7th, 2009 11:00 PM
Chapter 2 "An attempt to attach an auto-named database for file.." Gredkins BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 4 May 28th, 2009 11:55 PM
Code not going as planned: "icicle" vs "savedinstancestate" joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 May 3rd, 2009 03:09 PM
Chapter-5 on Intents:ContactPickerTester does not show the button "Pick a Contact" sunilm12 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 April 15th, 2009 11:55 AM
How to download Code in "Professional Active Server Page 3.0 " book. renjith0 All Other Wrox Books 2 April 2nd, 2009 05:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.