473,651 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session_start not firing on production server

Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual Studio
2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.

Feb 12 '08 #1
5 2063
And the other post said ? Have you checked in the IIS "Home directory" tab,
"Applicatio n settings" section that the application is created (that is the
button is "Remove" instead of "Create") and that session state is enabled
for this application ("configuration " button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to make
sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_start
will not fire

I have seen another post about this, but no resolution was found.

Feb 12 '08 #2
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
And the other post said ? Have you checked in the IIS "Home directory"
tab, "Applicatio n settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration " button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to make
sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_star t
will not fire

I have seen another post about this, but no resolution was found.


Feb 12 '08 #3
How do you know it's not firing?
May be exception is thrown in the Session_Start code....

George.

"greg" <gr**@no.spam.n ewswrote in message
news:ed******** *****@TK2MSFTNG P06.phx.gbl...
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Applicatio n settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration " button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
>>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_sta rt
will not fire

I have seen another post about this, but no resolution was found.



Feb 12 '08 #4
For now you are just testing that you don't see an exception that is raised
in this event.

What if you set a session variable in this event as well as in the page you
are hitting (another one plus display the one you set in session_start).
Also do the same in other events (for example create an application variable
in session_end, another one in Applicatino_Sta rt etc... and use
session.abandon to trigger this event).

This is to check that :
- session variables are working fine (as well as application variables)
- wether other events (and perhaps session_end) are working

From there we should be able to check sucessively if this is a problem with
sessions, with the global.asax not being taken into account or just with
this event.

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
ed************* @TK2MSFTNGP06.p hx.gbl...
Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Applicatio n settings" section that the application is created (that
is the button is "Remove" instead of "Create") and that session state is
enabled for this application ("configuration " button, "Options" tab).

Also what do you do in this event ? (imo for a test the simplest would be
just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
>>Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_sta rt
will not fire

I have seen another post about this, but no resolution was found.



Feb 13 '08 #5
I set a session variable in the session_start

If the form_load of the default page I send an email if I find the session
variable
and also send one if I don't get it

I copied the web site to another production server and it works on that one

So I have two webservers where the session_start is not firing
My development server still works

"Patrice" <http://www.chez.com/scribe/wrote in message
news:uT******** ******@TK2MSFTN GP06.phx.gbl...
For now you are just testing that you don't see an exception that is
raised in this event.

What if you set a session variable in this event as well as in the page
you are hitting (another one plus display the one you set in
session_start).
Also do the same in other events (for example create an application
variable in session_end, another one in Applicatino_Sta rt etc... and use
session.abandon to trigger this event).

This is to check that :
- session variables are working fine (as well as application variables)
- wether other events (and perhaps session_end) are working

From there we should be able to check sucessively if this is a problem
with sessions, with the global.asax not being taken into account or just
with this event.

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
ed************* @TK2MSFTNGP06.p hx.gbl...
>Yes, it is an application
And sessionstate is enabled.

I resorted to throwing an exception in the session_state
nothing happens on production server

In fact we have two production servers that do exactly the same thing
but not my development server
"Patrice" <http://www.chez.com/scribe/wrote in message
news:%2******* *********@TK2MS FTNGP03.phx.gbl ...
>>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Applicatio n settings" section that the application is created
(that is the button is "Remove" instead of "Create") and that session
state is enabled for this application ("configuration " button, "Options"
tab).

Also what do you do in this event ? (imo for a test the simplest would
be just to set a session variable with the current date/time, this is to
make sure the diagnostic is correct).

--
Patrice

"greg" <gr**@no.spam.n ewsa écrit dans le message de news:
uV************* *@TK2MSFTNGP03. phx.gbl...
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual
Studio 2005
and also if access web site via localhost on development machine.

But if copy to development machine event does not fire

I created a barebones webapplication not website and put code in
session_star t
will not fire

I have seen another post about this, but no resolution was found.





Feb 13 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2570
by: M O J O | last post by:
Hi, I have a test application, that is a Web.config, a Global.asax, default.aspx and a final.aspx page. When a user enters my application, I want session_start to always redirect him to the final.aspx page. Here's my Web.config:
1
1147
by: Ian Lane .enizin.net> | last post by:
Hello, I am having a strange issue between my Test environment and my Production environment. The problem is my site runs beautifully on Test and almost beautifully on Production. They are both the exact same machines, with the same memory, and same exact code and yet Production has some serious issues with controls not raising the "changed" events back on the server. It does or appears to do the Postback but my code in my changed event...
1
2222
by: jcode | last post by:
I have an ASPNET application that has worked correctly on couple of servers. I have just deployed it to another server and cannot resolve an issue. It appears as if the Session_Start is not firing or session state is not being maintained. First lines of Session_Start: string loc = "LoadSettings";
3
3000
by: Joe Befumo | last post by:
I'm workinbg in Visual Studio 2003. I'm experimenting with creating a session variable, and from all I can gather. the Session_Start event is not firing. In Global.asx.vb, in the Session Start event, I have the following: Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session is started Session("varTest") = "123" End Sub
4
4461
by: Joe Befumo | last post by:
I'm workinbg in Visual Studio 2003. I'm experimenting with creating a session variable, and from all I can gather. the Session_Start event is not firing. In Global.asx.vb, in the Session Start event, I have the following: Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the session is started Session("varTest") = "123" End Sub
7
9272
by: Bruno | last post by:
We are attempting to automatically log users off from the Session_End event in global.asax and set some values on session_start. It is not a critical task, more of a housekeeping task so that we know if users have closed down their browsers without logging off first. However, although the code seems to run OK on our development servers (WinXP ASP.NET v. 1.1, SQL Server 2000, IIS6), they don't seem to be firing on the live server despite...
6
4931
by: Alex | last post by:
Hello All, I'm having a problem with global.asax file. The session_start method of globals.asax.vb is not firing in my project when I copy the files to a production server. It works OK in my development machine, which has VS2005 on Windows XP SP2. The production server is a Windows 2000 Server SP4. (Almost a fresh install, only with .NET FWK 2.0). I configured a new site in IIS5. Then I compiled the application in the development...
3
5768
by: Mufasa | last post by:
I have code in my session_start to create a temp directory for the session. On session_end it is supposed to delete the directory but doesn't seem to be firing. I've enclosed the code below. Can anybody give me any suggestions as to why Session_End seems to not be being fired? TIA - J.
1
2084
by: rockdale | last post by:
Hi: I have a web application which runs fine on our production server. But now when I install abother production server, it gets "System.NullReferenceException: Object reference not set to an instance of an object". It is because the session variable does not initialized. in my session_start event, I have initialized all the session variables, and it works on my another production server. I comapred 2 server's configuration, they are...
0
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.