Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
 
Old August 1st, 2009, 03:58 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default FTP problem

Hi all
I have one website which is developed in .net 2005.
when i upload this site on ftp,there is one folder wwwroot.But I have created one folder as demo in wwroot.
I upload all site in this demo folder.
when i run this site i got an error:

"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 39: ASP.NET to identify an incoming user.
Line 40: -->
Line 41: <authentication mode="Windows" />
Line 42: <!--
Line 43: The <customErrors> section enables configuration

my question is how to access subfolder of wwroot from ftp? is there any changes in web.config.
pls give me solution.It's urgent.
Thanks
 
Old August 1st, 2009, 04:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Your web.config in the sub folder contains settings that apply to an IIS application. There are two main ways to fix this issue:

1. In IIS, mark the sub folder as an Application

2. Remove the offending settings (like authentication) and let your sub folder inherit its settings from the main web.config file in its parent folder.

Google or Bing for "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level" and you'll find a lot more background information on this problem.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Download Problem JohnEw Pro VB 6 0 September 4th, 2006 09:57 AM
Dreamweaver MX 6.1 FTP Problem fbecker Dreamweaver (all versions) 5 June 8th, 2005 12:32 PM
Problem with FTP connection behind a proxy ammxxx .NET Framework 2.0 0 November 23rd, 2004 06:32 AM
FTP Problem Ben Horne Dreamweaver (all versions) 2 September 21st, 2004 07:56 PM
problem using ftp in php phpcoder PHP Databases 1 February 19th, 2004 07:46 PM





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