Hi - (using asp.net/vb) - is it possible to have a sub folder from your
root site - and have it's own config file sitting within that? Or do you
need to ask your host to set up the sub folder as a virtual directory
(application) before this can happen?

eg. I have a web application (asp.net/vb) - which for each customer I
want to have a different install of it - however, if I am limited to
just one web.config file, then I don't think I can achieve this, without
purchasing a new hosting account for every customer!

I'd really appreciate any thoughts on this, particularly about the
virtual directory as I keep getting errors such as:

Security Exception

Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the required
permission please contact your system administrator or change the
application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

..and...

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.

Thanks a lot,

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: Errors with setting up an asp.net site on host (IIS) by Ken

Ken
Wed Feb 11 06:46:16 CST 2004

Whereever you place each web.config file, you need to create an application
root. Your hosting company shouldn't charge you much for this. It takes
about 10 seconds to do via the IIS MMC Snapin.

A virtual directory is not the same as an application root. When you create
a virtual directory, it is set as an application root by default, but that
can be removed. Likewise, you can configure a non-virtual directory folder
as an application root as well.

Cheers
Ken


"Mark" <anonymous@devdex.com> wrote in message
news:%23GllcIH8DHA.1052@TK2MSFTNGP12.phx.gbl...
: Hi - (using asp.net/vb) - is it possible to have a sub folder from your
: root site - and have it's own config file sitting within that? Or do you
: need to ask your host to set up the sub folder as a virtual directory
: (application) before this can happen?
:
: eg. I have a web application (asp.net/vb) - which for each customer I
: want to have a different install of it - however, if I am limited to
: just one web.config file, then I don't think I can achieve this, without
: purchasing a new hosting account for every customer!
:
: I'd really appreciate any thoughts on this, particularly about the
: virtual directory as I keep getting errors such as:
:
: Security Exception
:
: Description: The application attempted to perform an operation not
: allowed by the security policy. To grant this application the required
: permission please contact your system administrator or change the
: application's trust level in the configuration file.
:
: Exception Details: System.Security.SecurityException: Request failed.
:
: ..and...
:
: 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.
:
: Thanks a lot,
:
: *** Sent via Developersdex http://www.developersdex.com ***
: Don't just participate in USENET...get rewarded for it!



Re: Errors with setting up an asp.net site on host (IIS) by jcochran

jcochran
Wed Feb 11 08:01:31 CST 2004

On Tue, 10 Feb 2004 23:38:57 -0800, Mark <anonymous@devdex.com> wrote:

>Hi - (using asp.net/vb) - is it possible to have a sub folder from your
>root site - and have it's own config file sitting within that? Or do you
>need to ask your host to set up the sub folder as a virtual directory
>(application) before this can happen?

It needs to be an application root. Check with your hosting company
on whether they set it up or allow you to.

Jeff