S
Steve Taylor
I am having trouble understanding the ASP.NET application boundaries. Here's my setup:
1. Win2003 Server with IIS 6 and an application defined at the root "SalesNow" (www.salesnow.com).
2. A Default.aspx at the root which redirects the user to "Pages/Main.aspx" using javascript window.location.
3. On the Pages/Main.aspx page a HyperLink control which I add a javascript onclick event which does the
following:
- NewLeadWin = window.open("NewLeads.aspx", "NewLeadWin", "width=700, height=500, location=no, top=20, left=20, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
- NewLeadWin.window.focus();
Scenarios:
1. When the Default.aspx contains "window.location = '/Salesnow/Pages/Main.aspx'" the NewLeadWin works just fine, yet, the session state is not transferred. Trace must be run in both the root and /pages to get output.
2. When the Default.aspx contains "window.location = '/Pages/Main.aspx'" the NewLeadWin fails giving the familiar error regarding WEB.CONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Note: getting to Main.aspx is no problem, but the opening of the NewLeads.aspx is.
Question: I thought everything defined within and below the application folder (wwwroot in this case) was
considered part of the app. Why is this behavior so?
1. Win2003 Server with IIS 6 and an application defined at the root "SalesNow" (www.salesnow.com).
2. A Default.aspx at the root which redirects the user to "Pages/Main.aspx" using javascript window.location.
3. On the Pages/Main.aspx page a HyperLink control which I add a javascript onclick event which does the
following:
- NewLeadWin = window.open("NewLeads.aspx", "NewLeadWin", "width=700, height=500, location=no, top=20, left=20, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
- NewLeadWin.window.focus();
Scenarios:
1. When the Default.aspx contains "window.location = '/Salesnow/Pages/Main.aspx'" the NewLeadWin works just fine, yet, the session state is not transferred. Trace must be run in both the root and /pages to get output.
2. When the Default.aspx contains "window.location = '/Pages/Main.aspx'" the NewLeadWin fails giving the familiar error regarding WEB.CONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.
Note: getting to Main.aspx is no problem, but the opening of the NewLeads.aspx is.
Question: I thought everything defined within and below the application folder (wwwroot in this case) was
considered part of the app. Why is this behavior so?