Solved

Session Creation problem on ASP.net website on IIS 7

Posted on 2011-03-17
7
635 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
7 Comments
 

Author Comment

by:TUS11
ID: 35157982
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
ID: 35164520
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
ID: 35164532
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
TUS11 earned 0 total points
ID: 35164549
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
ID: 35187745
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
ID: 35943925
Please cancel this request
0
 

Author Closing Comment

by:TUS11
ID: 35954107
zxczxczc
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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