Solved

Session Creation problem on ASP.net website on IIS 7

Posted on 2011-03-17
7
630 Views
Last Modified: 2012-05-11
1.  We have a website running on Production Environment for sometime. OS of the server is Windows 2008 and Website is deisgned in ASP.NET.Website is hosted on IIS 7 and .Net Framework 4.0 is installed on server. For the last 2-3 months our members are unable to login on website and it seems that it is a issue of Session Creation on the Server.
2.  When we simulate the same environment on local m/c with Windows XP and ASP.net 2.0 Framework. there is no issue of session creation and login to the website works.
But the same set of files behave differently on the production environment.

We are not aware about the session parameters of the IIS 7. Please let us know the way to check the IIS / Server settings where we can find that why the session is not created. Also if there is any tracer available for IIS to debug the issue of website, Please let us know.

We are new to delopyment of website, so it will great if anyone can provide us the detailed solution of deploying the website on such type of environment.

For Reference enclosing the sample Web.config of the Production environment.


Thanks

web.config
0
Comment
Question by:TUS11
  • 6
7 Comments
 

Author Comment

by:TUS11
Comment Utility
We have also one more issue , In case the website is run on the production server locally it works fine while accessing the same website thru internet the login of the member doesn't . That means the session creation fails again when accessing thru the internet



Thanks

0
 

Author Comment

by:TUS11
Comment Utility
By Above statement i meant ,if server is in USA and  if we browse the website in IIS 7 on the production server , then it works fine.i did this by remotely logging on the production server.I am able to login in the website with the correct credentials in the website.

But if i browse the website on a browser sitting here in India then its not working fine. then its does not login with the credentials.

0
 

Author Comment

by:TUS11
Comment Utility
Morever i would like to add that website is running on .net framework 2 on the production server as i wrongly wrote .net framework 4. framework 4 is just installed on the server.

Its IIS 7, Windows 2008 and .net framework 2.0 and website is also developed in asp.net 2.0

thanks
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Accepted Solution

by:
TUS11 earned 0 total points
Comment Utility
In addition to the query yesterday , we tried to test the page on the server. We uploaded 2 files firstpage.aspx and secondpage.aspx

i am attaching the following two files below and the output attached in  the word file.

i can explain what we are basically doing ?

i am just setting the session object in firstpage.aspx and redirecting to secondpage.aspx and then printing the session value on secondpage.aspx

Now sometimes it displays the session value on secondpage.aspx and sometimes it displays the error :

"Object reference not set to an instance of an object."

we definately know this might be problem of Windows 2008 or IIS 7 or web.config for IIS 7 as similar application runs on our development server in IIS 6, Windows 2003 and it works fine.

Any help will be highly appreciated.


FirstPage.aspx
FirstPage.aspx.cs
SecondPage.aspx
SecondPage.aspx.cs
session-error.doc
0
 
LVL 15

Expert Comment

by:pcsmitpra
Comment Utility
In your web.config , mode is not defined , authentication mode="Forms" , Please view
http://msdn.microsoft.com/en-us/library/bb398990.aspx

How you are doing authentication? I mean what method you are using?
0
 

Author Comment

by:TUS11
Comment Utility
Please cancel this request
0
 

Author Closing Comment

by:TUS11
Comment Utility
zxczxczc
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now