HighTechTalks DotNet Forums  

Event won't fire... Help please

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Event won't fire... Help please in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rob Smeets
 
Posts: n/a

Default Event won't fire... Help please - 01-27-2006 , 11:16 AM






Hi all,

Please help me because i'm stuck.

Im developing a program to collect information from an information broker.
Because of security reasons my application has to work as a service.

I've build a few classes, and i'm using a component delivered to me by the
information brokers.
To test my classes, i've build a small form with just one button.
I ask the component to send a login, and asynchronicly i'm told through an
event if my login has been succeeded.
This works perfect...

But if i use the same components in a service, the login request is send...
But the event telling me the login has succeeded never fires.
Even if i explicitly add a delegate to the event code... The code that
begins the process is the same in the form (behind a button) as in the
Service (behind a timer elapsed event).

{
Dim objBussinessRules as new BusinessRules
objBusinessRules.GetInfo
}


Could anybody tell me what is happening?

Help would be greatly appiciated!!! Thanks in advance!

Rob Smeets


Reply With Quote
  #2  
Old   
Sinu
 
Posts: n/a

Default RE: Event won't fire... Help please - 01-29-2006 , 09:11 AM






If you are running the component as a service then I am sorry you cannot get
visual interface. Why dont you instead log this information of successful or
unsuccessful login intot he event log or any other log file?
Hope this helps.
Thanks

--
Shrinivas Reddy.
Systems Analyst
Satyam Computer Services Ltd.


"Rob Smeets" wrote:

Quote:
Hi all,

Please help me because i'm stuck.

Im developing a program to collect information from an information broker.
Because of security reasons my application has to work as a service.

I've build a few classes, and i'm using a component delivered to me by the
information brokers.
To test my classes, i've build a small form with just one button.
I ask the component to send a login, and asynchronicly i'm told through an
event if my login has been succeeded.
This works perfect...

But if i use the same components in a service, the login request is send...
But the event telling me the login has succeeded never fires.
Even if i explicitly add a delegate to the event code... The code that
begins the process is the same in the form (behind a button) as in the
Service (behind a timer elapsed event).

{
Dim objBussinessRules as new BusinessRules
objBusinessRules.GetInfo
}


Could anybody tell me what is happening?

Help would be greatly appiciated!!! Thanks in advance!

Rob Smeets


Reply With Quote
  #3  
Old   
Sinu
 
Posts: n/a

Default RE: Event won't fire... Help please - 01-29-2006 , 09:11 AM



If you are running the component as a service then I am sorry you cannot get
visual interface. Why dont you instead log this information of successful or
unsuccessful login intot he event log or any other log file?
Hope this helps.
Thanks

--
Shrinivas Reddy.
Systems Analyst
Satyam Computer Services Ltd.


"Rob Smeets" wrote:

Quote:
Hi all,

Please help me because i'm stuck.

Im developing a program to collect information from an information broker.
Because of security reasons my application has to work as a service.

I've build a few classes, and i'm using a component delivered to me by the
information brokers.
To test my classes, i've build a small form with just one button.
I ask the component to send a login, and asynchronicly i'm told through an
event if my login has been succeeded.
This works perfect...

But if i use the same components in a service, the login request is send...
But the event telling me the login has succeeded never fires.
Even if i explicitly add a delegate to the event code... The code that
begins the process is the same in the form (behind a button) as in the
Service (behind a timer elapsed event).

{
Dim objBussinessRules as new BusinessRules
objBusinessRules.GetInfo
}


Could anybody tell me what is happening?

Help would be greatly appiciated!!! Thanks in advance!

Rob Smeets


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.