whatsthehampton
Programmer
Hi all,
On the development machine - xp pro sp2 iis 5.1 - all works as expected.
On the live site - server 2003 - I am losing a session variable on an event click [or a double refresh??] - I have found that it only occurs when I include my global.asax file which has the folllowing routine in it.
My Global.asax in my project is an ordinary file with no codebind but when I build the solution this file is compiled into the dll as well as an App_global.asax.compiled file which I also include in the live site Bin - could this be the problem?
As I say everything works OK on the dev machine.
All help most appreciated
Cheers,
Jon
ToDo....
On the development machine - xp pro sp2 iis 5.1 - all works as expected.
On the live site - server 2003 - I am losing a session variable on an event click [or a double refresh??] - I have found that it only occurs when I include my global.asax file which has the folllowing routine in it.
Code:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Dim sRequestedURL As String = HttpContext.Current.Request.Url.AbsolutePath
'Note: This routine only handles non found pages
If (sRequestedURL.Contains("404.aspx")) Then
Dim sRaw As String = Request.RawUrl
Dim strFile As String = Right(sRaw, sRaw.Length - InStrRev(sRaw, "/"))
Context.RewritePath("~/links.aspx?" & strFile & "", False)
Else
'do nothing /continue...
End If
End Sub
My Global.asax in my project is an ordinary file with no codebind but when I build the solution this file is compiled into the dll as well as an App_global.asax.compiled file which I also include in the live site Bin - could this be the problem?
As I say everything works OK on the dev machine.
All help most appreciated
Cheers,
Jon
ToDo....