How do I deploy Global.asax

  • Thread starter Thread starter Roy Chastain
  • Start date Start date
R

Roy Chastain

I have a very simple Global.asax file (this is my first ASP.Net stuff). I would like it to work the way that the old Global.asa
worked in that I have only 1 file and it compiles when it changes and the Application restarts.

I have copied the file to the virtual directory of the application on the web server. IIS does not seem to know that it is there.
I have even restarted IIS. Still does not seem to know the file is there.

Where would I see compile errors for that file?

This is all on a Win2003 server.

Thanks
 
Typically, if there is a compile error, you would see it when you make a
request to a page in the same application.

Roy Chastain said:
I have a very simple Global.asax file (this is my first ASP.Net stuff). I
would like it to work the way that the old Global.asa
worked in that I have only 1 file and it compiles when it changes and the Application restarts.

I have copied the file to the virtual directory of the application on the
web server. IIS does not seem to know that it is there.
 
Okay, can I just put the file out as Global.asax or do I have to play the code behind game etc?

I don't actually have in pages in this application. The only thing in this application is a .net remote object that is being
hosted by IIS.

Typically, if there is a compile error, you would see it when you make a
request to a page in the same application.

Roy Chastain said:
I have a very simple Global.asax file (this is my first ASP.Net stuff). I
would like it to work the way that the old Global.asa
worked in that I have only 1 file and it compiles when it changes and the Application restarts.

I have copied the file to the virtual directory of the application on the
web server. IIS does not seem to know that it is there.
 
It depends on how you have it setup.

If you have a codebehind for global.asax, then of course you have to copy
the dll over.

If you don't have a code behind file, and your code is a script in
global.asax, then just copying the file is enough.

You might want to create a test page so you can make sure your application
is up and running.

Roy Chastain said:
Okay, can I just put the file out as Global.asax or do I have to play the code behind game etc?

I don't actually have in pages in this application. The only thing in
this application is a .net remote object that is being
hosted by IIS.
 
Found compile errors. I had already figured out the test page idea.

How do I put a reference to an assembly in. I am trying to import a namespace, but the namespace is not found because of the lack
of the reference.

It depends on how you have it setup.

If you have a codebehind for global.asax, then of course you have to copy
the dll over.

If you don't have a code behind file, and your code is a script in
global.asax, then just copying the file is enough.

You might want to create a test page so you can make sure your application
is up and running.

Roy Chastain said:
Okay, can I just put the file out as Global.asax or do I have to play the code behind game etc?

I don't actually have in pages in this application. The only thing in
this application is a .net remote object that is being
 
Roy Chastain said:
I have a very simple Global.asax file (this is my first ASP.Net stuff). I
would like it to work the way that the old Global.asa
worked in that I have only 1 file and it compiles when it changes and the Application restarts.

I have copied the file to the virtual directory of the application on the
web server. IIS does not seem to know that it is there.
I have even restarted IIS. Still does not seem to know the file is there.

Note: IIS (or ASP.Net) refuses access to a ".asax" file.

Hans Kesting
 
Back
Top