473,400 Members | 2,145 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,400 software developers and data experts.

httpcontext null in webbaseevent(webeventprovider) handler

Hi all,
HttpContext.Current is null in my webeventprovider. Why would that be?

I am using a customwebbaseevent.

Please Help.
Thanks inadvance.

Aug 17 '06 #1
4 1483
Depends on when you're trying to access the HttpContext. It probably won't
be available at some point is the class's lifecycle (e.g. within the
contsructor)

"parez" wrote:
Hi all,
HttpContext.Current is null in my webeventprovider. Why would that be?

I am using a customwebbaseevent.

Please Help.
Thanks inadvance.

Aug 17 '06 #2
Hi David, Thanks for replying.
I was trying to use it in ProcessEvent function.
Thanks,

David Jessee wrote:
Depends on when you're trying to access the HttpContext. It probably won't
be available at some point is the class's lifecycle (e.g. within the
contsructor)

"parez" wrote:
Hi all,
HttpContext.Current is null in my webeventprovider. Why would that be?

I am using a customwebbaseevent.

Please Help.
Thanks inadvance.
Aug 17 '06 #3
Also I am trying to access it from the processevent function of an
event provider for the
heartbeat event.

parez wrote:
Hi David, Thanks for replying.
I was trying to use it in ProcessEvent function.
Thanks,

David Jessee wrote:
Depends on when you're trying to access the HttpContext. It probably won't
be available at some point is the class's lifecycle (e.g. within the
contsructor)

"parez" wrote:
Hi all,
>
>
HttpContext.Current is null in my webeventprovider. Why would that be?
>
I am using a customwebbaseevent.
>
Please Help.
Thanks inadvance.
>
>
Aug 17 '06 #4
Also I am trying to access it from the processevent function of an
event provider for the
heartbeat event.

parez wrote:
Hi David, Thanks for replying.
I was trying to use it in ProcessEvent function.
Thanks,

David Jessee wrote:
Depends on when you're trying to access the HttpContext. It probably won't
be available at some point is the class's lifecycle (e.g. within the
contsructor)

"parez" wrote:
Hi all,
>
>
HttpContext.Current is null in my webeventprovider. Why would that be?
>
I am using a customwebbaseevent.
>
Please Help.
Thanks inadvance.
>
>
Aug 18 '06 #5

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

Similar topics

2
by: Arti Potnis | last post by:
Hi, I have an application with a function "myfunction" that opens a file and writes to it using fprintf. This application runs on a unix (sun solaris 5.8) system. I connect to this application...
2
by: Luis Esteban Valencia Muñoz | last post by:
I have a 2 base classes that do error handling -- one for pages (System.Web.UI.Page) and one for applications (System.Web.HttpApplication, Global.asax uses it). Are there any situations in...
3
by: Steve Lutz | last post by:
Hello All, I have an ASPX page whose class inherits from a company global base page. The company base page has a property call PageTitle (string) that is assigned by all the pages. The base...
8
by: bryan | last post by:
Is there any way I can get the application path (the one returned by Request.ApplicationPath) in the Application_Start method in Global.asax? Request is not valid there. On a related note, is there...
3
by: moondaddy | last post by:
C# 2.0 I have declared some event arguments like this: public class ModeStateChangedEventArgs : EventArgs { Gen.DataState myState; public ModeStateChangedEventArgs() { }
0
by: Aaron Morton | last post by:
I'm working on a IHttpModule that handles the PreSendRequestHeaders event from the HttpApplication, if the event is raised after EndRequest then HttpContext.Current is null. If it is raised before...
8
by: eric | last post by:
I have a 2.0 asp.net project. In a class contained within a seperate project, I am trying to reference HttpContext.Current.Session but Session is always null. I've tried implementing...
3
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
Note: My apologies for repeating this post from last week, but my nospam alias and profile account were incorrect. I think I have fixed this, so hopefully this post will trigger MS into a response...
13
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.