Hi;
Is there a way to have a method called when my ASP (2.0) app is first
loaded, before any pages are loaded?
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com 9 1062
The global.asax's or HttpModules Application_sta rt is the earliest method
you can hook into.
Karl
-- http://www.openmymind.net/
"David Thielen" <th*****@nospam .nospam> wrote in message
news:63******** *************** ***********@mic rosoft.com... Hi;
Is there a way to have a method called when my ASP (2.0) app is first loaded, before any pages are loaded?
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com
Thanks for Karl's informative inputs.
Hi Dave,
As Karl has mentioned, you can consider using the Application_Sta rt event
of the Global.asax. Also, this event get fired when an ASP.NET
application's appdomain has been initialized and begin to process requests.
However, since this event is fired only once per application, and it is not
page or foreground UI specific, we should not put any page or request or
front UI specific code in it.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi;
I understand. I use this to initialize our reporting engine - before any
page request comes in.
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Steven Cheng[MSFT]" wrote: Thanks for Karl's informative inputs.
Hi Dave,
As Karl has mentioned, you can consider using the Application_Sta rt event of the Global.asax. Also, this event get fired when an ASP.NET application's appdomain has been initialized and begin to process requests. However, since this event is fired only once per application, and it is not page or foreground UI specific, we should not put any page or request or front UI specific code in it.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
Thanks for the response Dave,
Please feel free to post here if there is anything else we can assist.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Hi;
Every time I make a change in Global.asax then when I try to build I get the
error message:
Validating Web Site
/: Build (web): Attempted to access an unloaded AppDomain.
I have to exit and restart VS2005 to get this to stop.
Any idea what's going on?
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Karl Seguin [MVP]" wrote: The global.asax's or HttpModules Application_sta rt is the earliest method you can hook into.
Karl
-- http://www.openmymind.net/ "David Thielen" <th*****@nospam .nospam> wrote in message news:63******** *************** ***********@mic rosoft.com... Hi;
Is there a way to have a method called when my ASP (2.0) app is first loaded, before any pages are loaded?
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com
Hi;
And more - if I write some code that won't compile, then after I fix it it
sticks with the old error message until again, I exit and restart VS2005.
???
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"David Thielen" wrote: Hi;
Every time I make a change in Global.asax then when I try to build I get the error message: Validating Web Site /: Build (web): Attempted to access an unloaded AppDomain.
I have to exit and restart VS2005 to get this to stop.
Any idea what's going on?
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com "Karl Seguin [MVP]" wrote:
The global.asax's or HttpModules Application_sta rt is the earliest method you can hook into.
Karl
-- http://www.openmymind.net/ "David Thielen" <th*****@nospam .nospam> wrote in message news:63******** *************** ***********@mic rosoft.com... Hi;
Is there a way to have a method called when my ASP (2.0) app is first loaded, before any pages are loaded?
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com
After we change global.asax file's code , web.config , the ASP.NET
application's appdomain may get restarted, maybe some code is accessing
some field in the original domain. I suggest you try manually stop the test
webserver(if you're using VS 2005 test server to run the app), then perform
rebuild the website and run it again to see whether it helps.
Regards,
Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
that did it - thanks
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Steven Cheng[MSFT]" wrote: After we change global.asax file's code , web.config , the ASP.NET application's appdomain may get restarted, maybe some code is accessing some field in the original domain. I suggest you try manually stop the test webserver(if you're using VS 2005 test server to run the app), then perform rebuild the website and run it again to see whether it helps.
Regards,
Steven Cheng Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights. Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
You're welcome Dave,
Regards,
Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: serge calderara |
last post by:
Dear all,
I have an application which is suppose to start another executable process.
As soon as that process is running, I need to retrive its handle. The
problem of the particular process I am starting is that it has a welcome
window first which gets displayed and then the real windows after a while,in
other words it means that the process name is the same, but the handle I need
to retrive is the one from the final window and not the...
|
by: cedric |
last post by:
hello,
I encounter a problem using threads. I have a simple code to use a thread :
cSurveillanceBorne = New clsThreadSurveillance
_SurveillanceThread = New Thread(AddressOf cSurveillanceBorne.SurveilleBorne)
_SurveillanceThread.Start()
This code work perfectly on my workstation. I use Visual Studio 2003, and
the CLR version is 1.1.4322.573
|
by: Rajesh Abraham |
last post by:
I have a Windows Service and in the OnStart, I am
initializing the BusinessLayer Object and calling a method
of the object, which normally takes about 10 mts to finish
execution.
Now when I start the Service from Administrative Tools
services, it shows starting and after sometime throw error
that the service does not respond in time and the ststus
is shown as "starting". However during this time, the
BisObject is doing its job and...
|
by: Glenn |
last post by:
I have used this code successfully in a form application.
I tried to add the same code in a service and have not
been able to get the application to start. I have the
service starting with a local account and the Interact
with the Desktop is Checked. Windows media player seems to
start but then closes almost immediately. I would
appreciate any help.
Thanks,
Glenn
|
by: Razzie |
last post by:
Hey all,
I wrote a Windows Service. When I test it on my developement machine (winXP)
it works fine. It starts ok, never crashes, etc.
When I install the service on another machine (win2000) it *sometimes*
crashes upon starting. The progressbar you get when you manually start the
server will very slowly progress, and when it hits 100% after 2 minutes or
something I get the error 'The service could not be started because it did
not...
| |
by: tshad |
last post by:
I have a Windows Service I created that just sets a timer and writes to
EventLog every 10 seconds.
It installed fine and it actually starts. But it says it doesn't. The
progress bar shows the progress fine until it hits about halfway. It then
stops there for about 4 or 5 seconds then goes a little farther. I then get
a message:
Could not start the MyService Service on Local Computer.
Error 1053: The service did not respond to the...
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej and
I was wondering if anyone here would be able to give me some tips for
young players such as myself, for learning the language.
Is this the best Newsgroup for support with JAVA?
|
by: Arnie |
last post by:
We're using the ServiceController class provided by the .NET Framework,
programming in C#. We are using the Start() method to start a service from
another service. This works fine most of the time, but occasionally after a
system startup (where the service doing the starting of the other is
automatically started by Windows XP) the ServiceController's Start() method
fails to start the other service. It is probably throwing an...
|
by: rlueneberg |
last post by:
Can someone tell if Sitemap always require a starting root? Can it have
more than one root? I am having a problem trying to hide a root node
without hiding its children using a Treeview component. I know you can
do that if you use sitempadatasource. But instead I am forced to use
this tranformation:
xForm.Transform(m_TblMgr.XmlDoc, xslArgs, tmpS)
where tmpS is the sitemap output.
|
by: Joseph Geretz |
last post by:
I have a Service which runs OK, but I'm abviously not starting it properly.
In my OnStart event I commence a long running process which polls a database
table and performs various processing. Since this polling loop is entered
synchronously from OnStart, basically the OnStart event doesn't terminate
for the life of the program. This doesn't give the SCM the correct feedback
that the service has started properly. Consequently, the SCM throws...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |