Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2004

Tip: Looking for answers? Try searching our database.

global.asax

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mekim - 28 Oct 2004 15:03 GMT
Hello,

If i have a webservices project...since I am not calling a webform...the
global.asax does not seem to be called...where r u suppose to put the "global
stuff"?  

meaning...like application_start or global variables

Regards,
mekim
Scott M. - 29 Oct 2004 00:51 GMT
Why do you say that Global.asax doesn't "seem" to be called?

Global variables can be easially made by creating a public variable inside a
public class.  Once you have an instance of that class, you've got access to
the variable.

> Hello,
>
[quoted text clipped - 7 lines]
> Regards,
> mekim
mekim - 29 Oct 2004 03:36 GMT
I could be way off on this...so my apologies to the more tech savy w/ this
:-)...but my understanding is...becuz application_start does not seem to be
called unless i invoke a webform

so there is no event that is called the "first time any webservice is called
in the app function"

My way around this is to create a "global variable" that is a class that
mimics the functionality of application_start ...begin etc

> Why do you say that Global.asax doesn't "seem" to be called?
>
[quoted text clipped - 13 lines]
> > Regards,
> > mekim
Scott M. - 29 Oct 2004 05:07 GMT
A web service is still an application and so the first user to invoke the
web service will fire application_start.  This is easy enough to test.

Again, you say that 'application_start does not "seem" to be called'.  What
are you basing that on?  Why doesn't it "seem" to be called for you?  How
are you testing that assumption?

>I could be way off on this...so my apologies to the more tech savy w/ this
> :-)...but my understanding is...becuz application_start does not seem to
[quoted text clipped - 28 lines]
>> > Regards,
>> > mekim
mekim - 29 Oct 2004 13:29 GMT
Hi Scott,

I'll try to explain ...I have two projects in a solution

the first a web app...the 2nd is a webservices app

the web app calls a web method in the 2nd app...and application_start where
I have a breakpoint is not called...

Regards,
mekim

> A web service is still an application and so the first user to invoke the
> web service will fire application_start.  This is easy enough to test.
[quoted text clipped - 35 lines]
> >> > Regards,
> >> > mekim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.