Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Session Creation problem on ASP.net website on IIS 7

Posted on 2011-03-17
7
Medium Priority
?
639 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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 …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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