Ask a Question related to ASP.NET Security, Design and Development.
-
Ged #1
nested virtual directories
I am using the Fiefdom techniques ( a seperation of
concerns pattern ).
I have 2 asp.nET projects, each with their own virtual dir
1. Esa.RefData.WebClient
2. Esa.Common.WebClient
Now, RefData.Webclient, needs to use sme user controsl
from Common.WebClient.
Hence, i copy thr dlls and ascx files to have a virtual
dir structure like this:
Esa.RefData.WebClient (vir dir)
bin
Esa.RefData.WebClient.dll
Esa.Common.WebClient.dll
Common.WebClient (folder, not a virdir)
CommonUserControl.ascx
TestPage.aspx
TestPage.aspx has a tag like this on the top of the page:
<%@ Register TagPrefix="uc1" TagName="TopMenu"
Src="../Esa.Common.WebClient/CommonUserControl.ascx" %>
When i try to access the page i get the error:
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 44: by Microsoft that offers a single
logon and core profile services for member sites.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
This shouldwork, and its important it does to allow
fiefdom based builds for a Web based project. The
web.cnfig files have nothing different from a deafult one,
and it work fine for everything except pages that
reference the Common.WebClient user controls.
Any idea?
regards
Gerard Webb
Ged Guest
-
Creating Virtual Directories
I'm building an application that will host many subdomains under one domain. Each subdomain will be created on the fly by a user for demo purposes.... -
virtual directories in flex
Hi. I am trying to create a virtual directory in Flex 1.5 on a Windows xp pro machine using the integrated jrun server. I found the documentatation... -
Virtual Directories?
I have seen websites that use a sort of "virtual directory" system... Lets say when you click on something it goes to... -
virtual directories and IIS
I created a new directory on my hard drive C:\test. I mapped a virtual directory called MyWeb to this directory. Now when I try to create an... -
Using virtual directories for common directories (scripts, images, styles, etc.)
Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of... -
Jim Cheshire [MSFT] #2
RE: nested virtual directories
Gerard,
This error is caused by setting the authentication mode beneath the
application root. You can have a web.config in a sub-folder, but that
web.config cannot contain any element (such as the <authentication>
element) which has an allowDefinition of MachineToApplication.
The allowDefinition is specified in the machine.config file.
Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
[email]jamesche@online.microsoft.com[/email]
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------microsoft.public.dotnet.framework.aspnet.security: 11198>Content-Class: urn:content-classes:message
>From: "Ged" <gerard.webb@bllpharma.com>
>Sender: "Ged" <gerard.webb@bllpharma.com>
>Subject: nested virtual directories
>Date: Mon, 16 Aug 2004 07:45:52 -0700
>Lines: 63
>Message-ID: <69cd01c4839f$ba47c180$a301280a@phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>thread-index: AcSDn7pHhikOncdWRw2Gf/X2yiLs5g==
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>Path: cpmsftngxa06.phx.gbl
>Xref: cpmsftngxa06.phx.gbl>NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>I am using the Fiefdom techniques ( a seperation of
>concerns pattern ).
>I have 2 asp.nET projects, each with their own virtual dir
>1. Esa.RefData.WebClient
>2. Esa.Common.WebClient
>
>Now, RefData.Webclient, needs to use sme user controsl
>from Common.WebClient.
>Hence, i copy thr dlls and ascx files to have a virtual
>dir structure like this:
>Esa.RefData.WebClient (vir dir)
> bin
> Esa.RefData.WebClient.dll
> Esa.Common.WebClient.dll
> Common.WebClient (folder, not a virdir)
> CommonUserControl.ascx
> TestPage.aspx
>
>TestPage.aspx has a tag like this on the top of the page:
><%@ Register TagPrefix="uc1" TagName="TopMenu"
>Src="../Esa.Common.WebClient/CommonUserControl.ascx" %>
>
>
>
>When i try to access the page i get the error:
>
>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 44: by Microsoft that offers a single
>logon and core profile services for member sites.
>Line 45: -->
>Line 46: <authentication mode="Windows" />
>Line 47:
>Line 48: <!-- AUTHORIZATION
>
>
>
>
>This shouldwork, and its important it does to allow
>fiefdom based builds for a Web based project. The
>web.cnfig files have nothing different from a deafult one,
>and it work fine for everything except pages that
>reference the Common.WebClient user controls.
>
>
>Any idea?
>
>regards
>
>Gerard Webb
>Jim Cheshire [MSFT] Guest
-
RE: nested virtual directories
Jim,
Thanks. i new about this, but i reasilsed it was caused by
the way i was structuring my code.
i hade the .ascxc and the .cs in the same folder.
So, when i compiled it i ended up with 2 versions of the
dll that represented the ascx.
This confused the hell out of the framework at the aspnet
level.
By simply removng the usercontrol.cs file everything
started working.
It all works now very well.
thanks for the prompt reply.
Gerardbeneath the>-----Original Message-----
>Gerard,
>
>This error is caused by setting the authentication modefolder, but that>application root. You can have a web.config in a sub-<authentication>>web.config cannot contain any element (such as theMachineToApplication.>element) which has an allowDefinition offile.>
>The allowDefinition is specified in the machine.configconfers no rights.>
>Jim Cheshire [MSFT]
>MCP+I, MCSE, MCSD, MCDBA
>Microsoft Developer Support
>jamesche@online.microsoft.com
>
>This post is provided "AS-IS" with no warranties andmicrosoft.public.dotnet.framework.aspnet.security>
>
>-------------------->>Content-Class: urn:content-classes:message
>>From: "Ged" <gerard.webb@bllpharma.com>
>>Sender: "Ged" <gerard.webb@bllpharma.com>
>>Subject: nested virtual directories
>>Date: Mon, 16 Aug 2004 07:45:52 -0700
>>Lines: 63
>>Message-ID: <69cd01c4839f$ba47c180$a301280a@phx.gbl>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>thread-index: AcSDn7pHhikOncdWRw2Gf/X2yiLs5g==
>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>>Newsgroups:microsoft.public.dotnet.framework.aspnet.security>microsoft.public.dotnet.framework.aspnet.security :11198>>Path: cpmsftngxa06.phx.gbl
>>Xref: cpmsftngxa06.phx.gbl>>NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
>>X-Tomcat-NG:dir>>
>>I am using the Fiefdom techniques ( a seperation of
>>concerns pattern ).
>>I have 2 asp.nET projects, each with their own virtuala>>1. Esa.RefData.WebClient
>>2. Esa.Common.WebClient
>>
>>Now, RefData.Webclient, needs to use sme user controsl
>>from Common.WebClient.
>>Hence, i copy thr dlls and ascx files to have a virtual
>>dir structure like this:
>>Esa.RefData.WebClient (vir dir)
>> bin
>> Esa.RefData.WebClient.dll
>> Esa.Common.WebClient.dll
>> Common.WebClient (folder, not a virdir)
>> CommonUserControl.ascx
>> TestPage.aspx
>>
>>TestPage.aspx has a tag like this on the top of the page:
>><%@ Register TagPrefix="uc1" TagName="TopMenu"
>>Src="../Esa.Common.WebClient/CommonUserControl.ascx" %>
>>
>>
>>
>>When i try to access the page i get the error:
>>
>>Configuration Error
>>Description: An error occurred during the processing ofmodify>>configuration file required to service this request.
>>Please review the specific error details below andone,>>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 44: by Microsoft that offers a single
>>logon and core profile services for member sites.
>>Line 45: -->
>>Line 46: <authentication mode="Windows" />
>>Line 47:
>>Line 48: <!-- AUTHORIZATION
>>
>>
>>
>>
>>This shouldwork, and its important it does to allow
>>fiefdom based builds for a Web based project. The
>>web.cnfig files have nothing different from a deafult>>>and it work fine for everything except pages that
>>reference the Common.WebClient user controls.
>>
>>
>>Any idea?
>>
>>regards
>>
>>Gerard Webb
>>
>.
>Guest



Reply With Quote

