all groups > dotnet academic > january 2006 >
You're in the

dotnet academic

group:

Event won't fire... Help please


Event won't fire... Help please Rob Smeets
1/27/2006 8:16:03 AM
dotnet academic:
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
RE: Event won't fire... Help please Sinu
1/29/2006 6:11:29 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.


[quoted text, click to view]
RE: Event won't fire... Help please Sinu
1/29/2006 6:11:29 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.


[quoted text, click to view]
AddThis Social Bookmark Button