Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 July 12th, 2004, 07:07 AM
Registered User
 
Join Date: Jun 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Webconfig in Subfolders

In order to have a common sign on, I have recently converted 45 applications all with their own IIS registrations to subfolders of one application (with one IIS registration).
I (carefully) followed the instructions at http://www.asp101.com/articles/jayra...te/default.asp
Problem is it compiles, but it doesnt run. Its to do with the webconfig files.

In the webconfig file in the subfolders I have :


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="SettingsPath" value="C:\Inetpub\wwwroot\Master2\Settings.xml" />
 </appSettings>
<system.web>
</system.web>
</configuration>

Im the first to admit I am not very clued up on webconfig files
Any thoughts?

Dougie

 
Old July 12th, 2004, 07:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Is it giving a particular error? If no error occurs, sometimes if you "Start Without Debugging", using that option to run the app will locate the error for you.

Brian
 
Old July 12th, 2004, 07:48 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

There are certain sections of the web.config that can not exist in a web.config file under a sub folder. If these sub folders are really applications, then they must exist as an application in IIS. that's the only way to do it. Well, you could transfer all the parts of your sub folder applications' web.configs into the main one, but that's probably not what you'd like to do.





Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple CCs in webconfig contact forms JezHarvey BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 20th, 2008 02:11 PM
Declare a variable attribute in WebConfig snufse ASP.NET 2.0 Basics 2 January 12th, 2008 11:10 AM
Trouble with UrlMapping in webconfig ! bananas ASP.NET 2.0 Professional 3 August 30th, 2006 12:47 AM
Validate xml files present in subfolders ShaileshShinde General .NET 0 October 21st, 2005 11:28 PM





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