?
Solved

Session Creation problem on ASP.net website on IIS 7

Posted on 2011-03-17
7
Medium Priority
?
637 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 

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

Industry Leaders: 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!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

777 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