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 / .NET Framework / Component Services / November 2003

Tip: Looking for answers? Try searching our database.

Is the current environment ASP.NET?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harjit S. Batra - 21 Nov 2003 14:49 GMT
How can a function tell if it has been called from a ASPX page or ASMX web
service versus being called from a console or windows app? I need to extend
the EventLog class to write events and need to know the name of the app or
the name of the page or the name of the service calling the WriteEvent
method, so that the event source can be correctly identified? I cannot even
compile code as a DLL with the HttpContext class as part of the code! Any
help will be appreciated.

Harjit
Klaus H. Probst - 30 Nov 2003 08:54 GMT
I don't think you can do this. It would be a security hole, for starters.

Signature

____________________
Klaus H. Probst, MVP
  http://www.vbbox.com/

> How can a function tell if it has been called from a ASPX page or ASMX web
> service versus being called from a console or windows app? I need to extend
[quoted text clipped - 5 lines]
>
> Harjit

Rate this thread:







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.