Solved

Session Creation problem on ASP.net website on IIS 7

Posted on 2011-03-17
7
632 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

12 Experts available now in Live!

Get 1:1 Help Now