Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
Hi all,

This issue of mine scratched my head and I am bald already..!!

OK coming to the point,

1. One web application (.Net/C#) hosted on IIS 7 on Windows 2008 Server - running on port A - Application pool: Classic .NET pool, windows authentication ONLY

2. Another web application (Classic ASP) hosted on the same IIS 7 - same server windows 2008 server on port B - application pool: Default application pool, anonymous authentication

The user logs on to PORT A web application, the application identifies the user (windows login) and establishes session variables (.NET sessions) for the user.
There is a link on this (port A) web application which redirects the user to port B web application

When the user clicks that link, the request lands on an authentication page (ASP) which validates the user against an SQL server database and the establishes the session variables (this time it will be ASP sessions) and displays the page.

There will be a link on this ASP page to take the user to .NET application (where the sessions are already established). When the user clicks on that link, I get an object reference not set error (for session value extraction)

This happens on the production server but not on the test server (assumably they are the same atleast from the code perspective)

Please shed some light on this...

Thanks.

Regards,
Posted
Comments
Jobless Creature 16-Dec-13 5:17am    
Have you ensured that the settings are there to share the session between ASP and ASP.Net pages?
bluesathish 19-Dec-13 8:46am    
Have you tried to use different application pools for those two applications in IIS?

1 solution

Check this Code Project article details on Single Sign on to multiple applications:

Single sign-on across multiple applications in ASP.NET[^]

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900