473,395 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Multiple applications/multiple web.configs: how to structure a big collection of (seemingly) nested web applications?

I'm seeking (probably basic) guidance on the right way to split a large site
that's supposed to represent one domain(mydomain.org) into many small VS.NET
projects, and how to avoid issues with multiple web.config files leading to
the error: "It is an error to use a section registered as allowDefinition =
'MachineToApplication'"...

I'm fairly new to VS.NET and my sloppy first solution was to make one huge
solution/project with just one web.config. My development got very slow due
to long compile times. It has become clear to me that this is not the right
way to work with VS.NET and compiled web applications. I need guidance for
how other professionals structure a large collection of related web
applications and deploy that properly on IIS.

One thing that led me to make the
huge-single-project-and-solution-with-just-one-web.config was issues I had
had in the past when I nested a web.config file past a root directory. It
led to errors such as ""It is an error to use a section registered as
allowDefinition = 'MachineToApplication'"..."

What I need is
a) To be able to develop and deploy many web applications that are nested
from the user's/URLs point of view, e.g.:
http://mydomain.org/FirstPublication
http://mydomain.org/FirstPublication...WebApplication
http://mydomain.org/FirstPublication...ageApplication

b) To be able to develop those web applications as small projects so that
they compile very quickly.

c) To be able to have them reference my common ORM class framework. At the
just-concluded Tech Ed 2007 a very smart guy from Singapore named Boon
taught me how to compile my ORM as a seperate class library and reference it
from other projects. I think that's the solution right there, and I write it
here for the benefit of other folks using EntitySpaces and other ORMs and
who are wondering how to address slow compile times.

d) To avoid the dreaded error: ""It is an error to use a section registered
as allowDefinition = 'MachineToApplication'"..."

As I was drinking my morning coffee it occured to me that maybe the way out
of this problem was through IIS and IIS's use of virtual paths when I
deploy: a "flat" directory structure might be translatable into a directory
structure that apper as nested to the user (e.g.
http://mydomain.org/FirstPublication...ageApplication
) . I am not altogether too familiar with IIS virtual paths, which may have
invited these problems in the first place.

I work in an development shop of one, and I maintain a MSFT server
infrastructure all by my onesome, so it is difficult to draw on peer
expertise. Be my peers. :)

Many thanks for any help you can offer.

-KF
Jun 12 '07 #1
3 3901
Hello ke*****@nospam.nospam,

Why not to provide the web.config for the each project folder and put all
common stuff to the global web.config which is locates next to the machine.config?

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
I'm seeking (probably basic) guidance on the right way to split a
large site that's supposed to represent one domain(mydomain.org) into
many small VS.NET projects, and how to avoid issues with multiple
web.config files leading to the error: "It is an error to use a
section registered as allowDefinition = 'MachineToApplication'"...

Jun 13 '07 #2
Thank you Michael. My stupid response: I didn't realize this was possible.
It sounds like an excellent solution.

But what defines the "globalness" of the global web.config? In other words,
what contents in that global web.config file raise the "It is an error to
use a
section registered as allowDefinition = 'MachineToApplication'" error? What
declarative markup should I +not+ put in subordinate, non-global,
per-project web.config files?

If there is good documentation on the right way to structure multi-project
solutions, it would be great if someone could point me to them, many
thanks. I've been working in various ways with ASP.NET for more than two
years, and the "right" arrangement of projects in a solution has only
recently become clearer to me. For people who did not come into VS.NET
through a traditional developer background, the metaphors aren't intuitive.
Some folks are apt to analogize to the file management typical of a tool
like Dreamweaver. As they try to organize bigger sites and collections of
applications in the context of common code (e.g. my ORM classes) they will
unwittingly make some suboptimum choices, as I have.

-KF
"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
Hello ke*****@nospam.nospam,

Why not to provide the web.config for the each project folder and put all
common stuff to the global web.config which is locates next to the
machine.config?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
>I'm seeking (probably basic) guidance on the right way to split a
large site that's supposed to represent one domain(mydomain.org) into
many small VS.NET projects, and how to avoid issues with multiple
web.config files leading to the error: "It is an error to use a
section registered as allowDefinition = 'MachineToApplication'"...


Jun 13 '07 #3
Hello ke*****@nospam.nospam,
But what defines the "globalness" of the global web.config? In other
words, what contents in that global web.config file raise the "It is an
error
to use a section registered as allowDefinition = 'MachineToApplication'"
error? What declarative markup should I +not+ put in subordinate, non-global,
per-project web.config files?
have u tried to search this error ?
see ther http://search.live.com/results.aspx?...llowDefinition
If there is good documentation on the right way to structure
multi-project solutions, it would be great if someone could point me
to them, many thanks.
See there http://msdn2.microsoft.com/en-us/library/aa302436.aspx
and there http://support.microsoft.com/kb/815174

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
>Hello ke*****@nospam.nospam,

Why not to provide the web.config for the each project folder and put
all common stuff to the global web.config which is locates next to
the machine.config?

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo
>>I'm seeking (probably basic) guidance on the right way to split a
large site that's supposed to represent one domain(mydomain.org)
into many small VS.NET projects, and how to avoid issues with
multiple web.config files leading to the error: "It is an error to
use a section registered as allowDefinition =
'MachineToApplication'"...

Jun 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Alban Hertroys | last post by:
Oh no! It's me and transactions again :) I'm not really sure whether this is a limitation of psycopg or postgresql. When I use multiple cursors in a transaction, the records inserted at the...
4
by: serge calderara | last post by:
Dear all I have an Object that I will call for instance VEHICULE. This object contains some other type of objects like CAR and BICYCLE VEHICULE has necessary at least one object of type CAR or...
1
by: JC | last post by:
I have several applications that use forms authentication and they are currently setup to use a single login page. Everything works fine under v1.0 of the framework and everything works fine if I...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
2
by: Sean | last post by:
I have an ASP.NET web application that needs to be rolled out to a number of clients. The functionality is the same in all applications, but each client has its own database. At the moment, I...
6
by: Ludvig | last post by:
I have various domains using the same application/assembly They differ in contents and design, based on a "site id", and get its information from an SQL server. Now I have to deploy the...
5
by: Shane Thomas | last post by:
Hello, I'm having difficulty handling cookies with paths other than "/". An HttpWebRequest object returns these headers: Date: Tue, 26 Apr 2005 21:29:39 GMT Server: Apache/1.3.33 (Unix)...
3
by: Carl Johansen | last post by:
I have a big ASP website (used by several thousand car dealers) that is a collection of lots of small and medium-sized applications. Now I want to start adding ASP.NET applications to it. I have...
3
by: Brian F | last post by:
Ok here goes: WEBSITE main directory allows anonymous users fine. SITEA, SITEB, and SITEC are all subdirectories under WEBSITE that refer to graphics and javascript in the main virtual...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.