Ask a Question related to ASP.NET General, Design and Development.
-
Lars Pedersen #1
Usercontrol in webforms subfolder
Hi.
I had a similar question here some days ago.....anyway..
When in VS.Net adding a webform in a subfolder of the project, and adding a
UserControl to this webform.
Then after setting this webform as new startpage and debugging it, I get the
Error:
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 36: "Passport" and "None"
Line 37: -->
Line 38: <authentication mode="Windows" />
Line 39:
Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING
If I set the new subfolder as a Virtual Directory in IIS, there's another
error:
"Could not loade type 'Namespace.folder.class'"
Does anyone know what is wrong here, because the webforms in the root of the
project folder seems to run perfectly??
-Lars
Lars Pedersen Guest
-
Event not firing in usercontrol inside usercontrol
I'm stumped on this problem. I've created a user control that dynamically creates 5 linkbuttons in the CreateChildControls method. Each of these... -
CDONTS - WebForms - Pls Help
I am hoping that someone can help me Here is what I want to do; I need to have a htm page that has text boxes that website visitors fill out... -
Use LoadControl to load a usercontrol but the webcontrol in the usercontrol can not AutoPostBack
a uscontrol test.ascx have a dropdownlist web control the dropdownlist's AutoPostBack property is set "true" but when i use... -
HELP - WebForms as HttpResponseHandlers
Hello All, I'm using the <httpHandlers> section of the web.config file to specify a webform class (WebForm1) that is the base class for... -
WebForms as HttpResponseHandlers?
Hello All, I'm using the <httpHandlers> section of the web.config file to specify a webform class (WebForm1) that is the base class for... -
Axel Dahmen #2
Re: Usercontrol in webforms subfolder
Does your web.config perhaps contain one or more <location> tags? There are some tags which may only be declared on the root level of your application.
This is a flaw in the documentation. The <authentication> tag, for example, may not be used within a <location> branch of the web.config file.
HTH,
Axel Dahmen
-------------------------------
"Lars Pedersen" <lsp@wanadoo.dk> schrieb im Newsbeitrag news:OfERqg7QDHA.1988@TK2MSFTNGP12.phx.gbl...> Hi.
>
> I had a similar question here some days ago.....anyway..
> When in VS.Net adding a webform in a subfolder of the project, and adding a
> UserControl to this webform.
> Then after setting this webform as new startpage and debugging it, I get the
> Error:
>
> 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 36: "Passport" and "None"
> Line 37: -->
> Line 38: <authentication mode="Windows" />
> Line 39:
> Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING
>
>
>
> If I set the new subfolder as a Virtual Directory in IIS, there's another
> error:
> "Could not loade type 'Namespace.folder.class'"
>
> Does anyone know what is wrong here, because the webforms in the root of the
> project folder seems to run perfectly??
>
> -Lars
>
>Axel Dahmen Guest
-
Lars Pedersen #3
Re: Usercontrol in webforms subfolder
I left the web.config untouched, and there are no location tags.
-Lars
"Axel Dahmen" <NoSpam@NoOneKnows.de> skrev i en meddelelse
news:eD73ju7QDHA.2276@TK2MSFTNGP12.phx.gbl...
Does your web.config perhaps contain one or more <location> tags? There are
some tags which may only be declared on the root level of your application.
This is a flaw in the documentation. The <authentication> tag, for example,
may not be used within a <location> branch of the web.config file.
HTH,
Axel Dahmen
-------------------------------
"Lars Pedersen" <lsp@wanadoo.dk> schrieb im Newsbeitrag
news:OfERqg7QDHA.1988@TK2MSFTNGP12.phx.gbl...a> Hi.
>
> I had a similar question here some days ago.....anyway..
> When in VS.Net adding a webform in a subfolder of the project, and addingthe> UserControl to this webform.
> Then after setting this webform as new startpage and debugging it, I geterror> Error:
>
> Parser Error Message: It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level. Thisapplication> can be caused by a virtual directory not being configured as anthe> in IIS.
>
> Source Error:
>
> Line 36: "Passport" and "None"
> Line 37: -->
> Line 38: <authentication mode="Windows" />
> Line 39:
> Line 40: <!-- APPLICATION-LEVEL TRACE LOGGING
>
>
>
> If I set the new subfolder as a Virtual Directory in IIS, there's another
> error:
> "Could not loade type 'Namespace.folder.class'"
>
> Does anyone know what is wrong here, because the webforms in the root of> project folder seems to run perfectly??
>
> -Lars
>
>
Lars Pedersen Guest



Reply With Quote

