Re: Session_start not firing in production server

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks for the tip, but I forgot to mention that I already made an
application in IIS, so that's not the source of the problem... =(


In order Global.asax to work you must create an application.
In IIS Managment console right click on your folder and you will see
"Create" next to "Application Name"

On your develoment machine VS does it automaticly when you creating
project

George.



"Alex" <alekz77@xxxxxxxxxxx> wrote in message
news:u5PapGhRHHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
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 machine and copied ALL the files (including the /bin folder)
to the server.

I've checked the global.asax file by putting a breakpoint in the
session_start method and it get hit while debugging (always in MY comp).

Then I removed all the code for testing purposes and left only this:
Sub Session_Start(ByVal sender as object, ByVal e as EventArgs)
Throw New Exception("HEEEELLLOOOOOOO")
End Sub

The server doesn't stop at the exception, so no code is being called. (I
didn't use Diagnostics.EventLog since I had security permissions to
configure and this was a bit quicker to test)

My question is, are there any changes that need to be made in order for
this to work?
I tried these already:
. Changing the compile options of the global.asax (the default is
"Content", and I used "Embedded resource", then changed it back since it
didn't solve my problem).
. Restarting IIS after running
"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i"


Any suggestions are welcome.
Thanks
__________________
Alejandro

+ Info: The development machine has also "Microsoft visual studio 2005
Web Application Projects" installed.





.



Relevant Pages

  • [NT] Heap Overrun in HTR Chunked Encoding Could Enable Web Server Compromise
    ... This patch eliminates a newly discovered vulnerability affecting Internet ... in IIS 4.0 and 5.0, and could likewise be used to overrun heap memory on ... allowing code to be run on the server. ... * Microsoft has long recommended disabling HTR functionality unless there ...
    (Securiteam)
  • Re: Problem with connect computer wizard
    ... Make sure the Windows XP client is pointing to the SBS 2003 server as ... Please collect the IIS metabase and the latest IIS log files further ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: IIS Key pairs (how to export an IIS 4.0 self-issued Root CA a nd import into new IIS 4.0 box)
    ... IIS key to an Intel SSL acelerator ... it issues client certificates to the end users. ... Step I - Installing the New Server ... Install NT SP 3 ONLY ...
    (Focus-Microsoft)
  • Re: SBS 2003 After Service Pack 1 for SBS
    ... we can conclude the SBS 2003 SP1 has been applied ... Please help me collect the IIS metabase to check ... and using server management console to reproduce the problem. ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • FW: Microsoft Security Advisory MS 03-007
    ... am trying to find a vulnerability tester/script and I could test it out ... Department of the Army server that had been compromised and that this ... announcement covers IIS 5.1 but not IIS 6, ... How a Hacker Uses SQL Injection to Steal Your SQL Data! ...
    (Focus-Microsoft)