473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 2044
And the other post said ? Have you checked in the IIS "Home directory" tab,
"Application 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.newsa é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****************@TK2MSFTNGP03.phx.gbl...
And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application 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.newsa é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 #3
How do you know it's not firing?
May be exception is thrown in the Session_Start code....

George.

"greg" <gr**@no.spam.newswrote in message
news:ed*************@TK2MSFTNGP06.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****************@TK2MSFTNGP03.phx.gbl...
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application 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.newsa é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 #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_Start 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.newsa écrit dans le message de news:
ed*************@TK2MSFTNGP06.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****************@TK2MSFTNGP03.phx.gbl...
>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application 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.newsa é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 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**************@TK2MSFTNGP06.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_Start 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.newsa écrit dans le message de news:
ed*************@TK2MSFTNGP06.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****************@TK2MSFTNGP03.phx.gbl...
>>And the other post said ? Have you checked in the IIS "Home directory"
tab, "Application 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.newsa é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 13 '08 #6

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

Similar topics

4
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...
1
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...
1
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...
3
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...
4
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...
7
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...
6
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...
3
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. ...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.