473,386 Members | 1,830 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,386 software developers and data experts.

Global.asax not being Published.

Joe
Hello all!

I added a Global.asax to my application. I'm using the
Application_BeginRequest event. Everything works fine in my development
enviorment but when I publish the web site the Global.asax file doesn't get
published. If I manually copy it the event doesn't seem to get called.

Any idea what's going on here?

Thanks,
Joe
Jun 27 '08 #1
4 10224
The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
server and see if it is published. If you used single assemblies, you will
easily find it. If not, you might have to examine the cryptic naming scheme
to actually find global.asax compiled bits.

If it is not compiling, that is an issue. If it is compiling but not firing,
that is another issue.

If you want to copy the site out there, you can. It will compile page by
page, into memory, rather than use precompile IL (ala publish).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Joe" <jb*******@noemail.noemailwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
Hello all!

I added a Global.asax to my application. I'm using the
Application_BeginRequest event. Everything works fine in my development
enviorment but when I publish the web site the Global.asax file doesn't
get published. If I manually copy it the event doesn't seem to get called.

Any idea what's going on here?

Thanks,
Joe

Jun 27 '08 #2
Joe
Hi Gregory,

Thanks for your response. I did find the compiled file.

-Joe

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:eI**************@TK2MSFTNGP06.phx.gbl...
The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
server and see if it is published. If you used single assemblies, you will
easily find it. If not, you might have to examine the cryptic naming
scheme to actually find global.asax compiled bits.

If it is not compiling, that is an issue. If it is compiling but not
firing, that is another issue.

If you want to copy the site out there, you can. It will compile page by
page, into memory, rather than use precompile IL (ala publish).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box! |
*************************************************
"Joe" <jb*******@noemail.noemailwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
>Hello all!

I added a Global.asax to my application. I'm using the
Application_BeginRequest event. Everything works fine in my development
enviorment but when I publish the web site the Global.asax file doesn't
get published. If I manually copy it the event doesn't seem to get
called.

Any idea what's going on here?

Thanks,
Joe


Jun 27 '08 #3
Hi Joe,

Yes, in ASP.NET 2.0 it by default use a dynamic compilation model for pages
and components. For global.asax, this is not a file that will be directly
visited by client browser, but be accessed by ASP.NET runtime internally.
Thus, when you publish the webiste(perform precompilation), the global.asax
will be generated as a class in assmbly and the global.asax file is removed.

here are some other reference about ASP.NET precompilation and global.asax
in ASP.NET 2.0

#Precompilation In ASP.NET 2.0
http://www.odetocode.com/Articles/417.aspx

#Fixing the Global.asax in ASP.NET 2.0
http://rossnelson.blogspot.com/2005/...aspnet-20.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Joe" <jb*******@noemail.noemail>
References: <u1**************@TK2MSFTNGP04.phx.gbl>
<eI**************@TK2MSFTNGP06.phx.gbl>
>Subject: Re: Global.asax not being Published.
Date: Sat, 19 Apr 2008 10:00:18 -0400
>
Hi Gregory,

Thanks for your response. I did find the compiled file.

-Joe

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:eI**************@TK2MSFTNGP06.phx.gbl...
>The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
server and see if it is published. If you used single assemblies, you
will
>easily find it. If not, you might have to examine the cryptic naming
scheme to actually find global.asax compiled bits.

If it is not compiling, that is an issue. If it is compiling but not
firing, that is another issue.

If you want to copy the site out there, you can. It will compile page by
page, into memory, rather than use precompile IL (ala publish).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*********************************************** **
| Think outside the box! |
*********************************************** **
"Joe" <jb*******@noemail.noemailwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
>>Hello all!

I added a Global.asax to my application. I'm using the
Application_BeginRequest event. Everything works fine in my development
enviorment but when I publish the web site the Global.asax file doesn't
get published. If I manually copy it the event doesn't seem to get
called.

Any idea what's going on here?

Thanks,
Joe



Jun 27 '08 #4
Hi Joe,

Do you have any further question on this?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
--------------------
>X-Tomcat-ID: 28613149
Date: Mon, 21 Apr 2008 04:16:02 GMT
Subject: Re: Global.asax not being Published.
>Hi Joe,

Yes, in ASP.NET 2.0 it by default use a dynamic compilation model for
pages
>and components. For global.asax, this is not a file that will be directly
visited by client browser, but be accessed by ASP.NET runtime internally.
Thus, when you publish the webiste(perform precompilation), the
global.asax
>will be generated as a class in assmbly and the global.asax file is
removed.
>
here are some other reference about ASP.NET precompilation and global.asax
in ASP.NET 2.0

#Precompilation In ASP.NET 2.0
http://www.odetocode.com/Articles/417.aspx

#Fixing the Global.asax in ASP.NET 2.0
http://rossnelson.blogspot.com/2005/...aspnet-20.html

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
================================================= =
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>>From: "Joe" <jb*******@noemail.noemail>
References: <u1**************@TK2MSFTNGP04.phx.gbl>
<eI**************@TK2MSFTNGP06.phx.gbl>
>>Subject: Re: Global.asax not being Published.
Date: Sat, 19 Apr 2008 10:00:18 -0400
>>
Hi Gregory,

Thanks for your response. I did find the compiled file.

-Joe

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:eI**************@TK2MSFTNGP06.phx.gbl...
>>The global.asax, in .NET 2.0, is compiled. Check your bin folder on the
server and see if it is published. If you used single assemblies, you
will
>>easily find it. If not, you might have to examine the cryptic naming
scheme to actually find global.asax compiled bits.

If it is not compiling, that is an issue. If it is compiling but not
firing, that is another issue.

If you want to copy the site out there, you can. It will compile page
by
>>page, into memory, rather than use precompile IL (ala publish).

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

************************************************ *
| Think outside the box! |
************************************************ *
"Joe" <jb*******@noemail.noemailwrote in message
news:u1**************@TK2MSFTNGP04.phx.gbl...
Hello all!

I added a Global.asax to my application. I'm using the
Application_BeginRequest event. Everything works fine in my
development
>>>enviorment but when I publish the web site the Global.asax file
doesn't
>>>get published. If I manually copy it the event doesn't seem to get
called.

Any idea what's going on here?

Thanks,
Joe



Jun 27 '08 #5

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

Similar topics

22
by: fd123456 | last post by:
Hi Tom ! Sorry about the messy quoting, Google is playing tricks on me at the moment. > Global.asax is where you normally have the Global Application > and Session variables and code to...
12
by: John M | last post by:
Hello, On Microsoft Visual Studio .NET 2003, I want to use some global elements, that can be used in each one of my pages. i.e I put a oleDBConnection on global.asax.vb How can I use it...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
5
by: ad | last post by:
The Global.asax is code-inside with default. How to change Global.asax to code-behind?
11
by: Ron | last post by:
I have a web project compiled with the new "Web Deployment Projects" plugin for VS2005. I'm deploying the web project to one assembly and with updateable option set to ON. When I'm running the...
4
by: Al Santino | last post by:
Hello, I've created a simple C# web services project using Visual Studio 2005. My service compiles and runs correctly when called by remote clients. I'm able to step through the service in the...
16
by: thefritz_j | last post by:
We just converted our VS2003 1.1 VB web project (which was working fine) to VS2005 2.0 and now I get: Parser Error Message: Could not load type '<Namespace>.'. Source Error: Line 1: <%@...
8
by: Rob T | last post by:
When I was using VS2003, I was able to compile my asp.net project locally on my machine and copy it to the production server and it would run just fine. I've now converted to VS2005. The project...
15
by: =?Utf-8?B?UGF0Qg==?= | last post by:
Just starting to move to ASP.NET 2.0 and having trouble with the Global.asax code file. In 1.1 I could have a code behind file for the global.asax file. This allow for shared variables of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.