Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Professionals
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 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 .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 6th, 2009, 10: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, 11: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, 11: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, 01: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, 08: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, 10: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, 12:16 PM
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, 07: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, 10: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, 10: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(); 
}
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 8th, 2009 12:00 AM
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 29th, 2009 12:55 AM
Code not going as planned: "icicle" vs "savedinstancestate" joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 May 3rd, 2009 04: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 12:55 PM
How to download Code in "Professional Active Server Page 3.0 " book. renjith0 All Other Wrox Books 2 April 2nd, 2009 06:06 AM



All times are GMT -4. The time now is 03:43 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.