473,386 Members | 1,721 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,386 software developers and data experts.

Problem navigating to subwebs

Hi,

I'm having a problem navigating to/from a subweb using forms authentication.

The setup in IIS is as follows:
TestSite
+----SecureDir
+----ReportsSubWeb

In VS.Net 2003 this has been set up as a single solution containing two
projects; the first project contains TestSite and SecureDir, and the second
project contains ReportsSubWeb as a subweb of TestSite. ReportsSubWeb is
referenced by TestSite.

Where 'TestSite' contains various screens (i.e. welcome/logon, etc),
'SecureDir' is a folder within website and contains 'secure' functionality,
and 'ReportsSubWeb' is a IIS subweb below the TestSite. The reason I'm
wanting to do Reports as a seperate subweb is because the .dll will contain
several entry points for new reports which are to be added in the future;
I'd like to be able to distribute the .dll alone without having to recompile
to webapp each time. Forms authentication is used throughout, and only
authenticated users must be able to access SecureDir and ReportsSubWeb.

Currently, I'm able to navigate directly to SecureDir from both TestSite and
ReportsSubWeb, however once in ReportsSubWeb navigating to SecureDir throws
me back to the signon screen, as does attempting to navigate to any page
within the ReportsSubWeb. Although session variables and the security cookie
appear to work and be passed through to the first form on the ReportsSubWeb
they have no further effect.

In a nutshell, what I really need to know is (1) is this possible?, and (2)
if so, how?

Any help appreciated!

Cheers, D.
Nov 18 '05 #1
2 1745
Hi Daveyman,

From your description, you've host two asp.net webapplications in your IIS
server and one is nested in another(in the subfolder of the upper app)
which contains some separate dlls. Also, you want the two web applications
share a common FormsAuthentication setting to secure the files/folders in
both web app and meet problem on this,yes?

Since you mentioned that
=============================================
The reason I'm
wanting to do Reports as a seperate subweb is because the .dll will contain
several entry points for new reports which are to be added in the future;
I'd like to be able to distribute the .dll alone without having to recompile
to webapp each time.
=============================================

Could the "several entry points" dll be developed as a certain class
library( a single dll) so that we can put it in the main project's bin
folder and not use two web applications.
If we do have to use two web application( parent and nest one), then we
have to do some configurations for the FormsAuthentication if we want the
two different asp.net web application to share the same formsauthentication
token at runtime, below is the related reference in msdn:

#Forms Authentication Across Applications
http://msdn.microsoft.com/library/en...sauthenticatio
nacrossapplications.asp?frame=true

Please have a look to see whether it helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #2
Thanks Steven, I'll have a look.

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:lh**************@cpmsftngxa10.phx.gbl...
Hi Daveyman,

From your description, you've host two asp.net webapplications in your IIS
server and one is nested in another(in the subfolder of the upper app)
which contains some separate dlls. Also, you want the two web applications
share a common FormsAuthentication setting to secure the files/folders in
both web app and meet problem on this,yes?

Since you mentioned that
=============================================
The reason I'm
wanting to do Reports as a seperate subweb is because the .dll will contain several entry points for new reports which are to be added in the future;
I'd like to be able to distribute the .dll alone without having to recompile to webapp each time.
=============================================

Could the "several entry points" dll be developed as a certain class
library( a single dll) so that we can put it in the main project's bin
folder and not use two web applications.
If we do have to use two web application( parent and nest one), then we
have to do some configurations for the FormsAuthentication if we want the
two different asp.net web application to share the same formsauthentication token at runtime, below is the related reference in msdn:

#Forms Authentication Across Applications
http://msdn.microsoft.com/library/en...sauthenticatio nacrossapplications.asp?frame=true

Please have a look to see whether it helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #3

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

Similar topics

3
by: Paul Neave | last post by:
Yahoo! has launched a beta of it's new mapping application: http://maps.yahoo.com/beta/ It's based in Flash, but it uses JavaScript. I'm curious about one feature, though - when you pan about...
17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
0
by: Tory Collum | last post by:
I'm interested in monitoring a little basic information on subwebs under IIS. Things like number of hits per day, and a handful of other statistics. What's the best way to go about doing this?
1
by: ABC | last post by:
Can I find out when the user is navigating to another page? or What events will be call if the page is change to another page? I want to call clear session variables when user is navigating to...
7
by: hiriumi | last post by:
Hello folks, I have a web application that has basic authentication turned on (IIS). What I would like to accomplish is detect whether user is navigating away from the site or simply going to the...
0
by: savvy | last post by:
I am developing a shopping cart in which for the top-menu navigation I'm using Javascipt.I have a small Item basket which shows up in all the pages when an Item is added to the main basket. And i'm...
0
by: tanaji | last post by:
I am writing a web application. In that application I have to need reading data from server during each refresh by using sql query. Refresh time is 10 seconds. BAckend is SQL Server 2000 and frontend...
1
by: JohnMOsborn | last post by:
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In...
4
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.