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 / New Users / May 2004

Tip: Looking for answers? Try searching our database.

windows-service dont raise event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tommy - 14 May 2004 13:36 GMT
hello,

i build a application whos watching a directory. if something changed
on this directory, a event will raise(check the files and delete
some...)

i build that appliaction, one time with "filesystemwatcher" and one
time with "Timer" -- both are working correctly....

but if i change this application, to build a windowsservice - no more
event will be raise.... and i dont know, where the failure is.....

i tryd to build a webservice, how display a messagebox all 10
seconds-.. but it dont work(timer is enabled!!)

i register that windows-service correctly .. and i can start it
without problems on my windows-services......

so, who knows, where the failure is--- or who have any idea to fix
that problem

i used framework 1.0 and visual studio.net

please help me!

any suggestions?

best regards

tommy
Derrick [MCSD] - 14 May 2004 15:58 GMT
Hi Tommy,

Kamran's right, the Windows Service is prohibited from presenting a UI
(consider the case when nobody is logged into the workstation).  I have
written Windows Services that use the FileSystemWatcher class and know that
these work correctly in a service.

I would recommend that you log an event to either the Application log or to
a custom log.

If you have access to the book "Coding Techniques for Microsoft Visual Basic
.NET" by John Connell, chapter nine deals with exactly your issue and has a
complete code section that you can use.

HTH,
Derrick

> hello,
>
[quoted text clipped - 26 lines]
>
> tommy
RASTA - 17 May 2004 17:40 GMT
hello derrick,

"Coding Techniques for Microsoft Visual Basic
.NET" by John Connell

YES - i have it!
one time the english version on ebook, the german version in bookform.

i ?ve tested it. many smaller failures, like "msgbox cannot display with
windowsservice" and so on

now it works fine

thank you very much for helping

regards

Tommy

----------------------------------------
HangulHanjaFastConversion-Eigenschaft

True if Microsoft Word automatically converts a word with
only one suggestion during conversion between hangul
and hanja. Read/write Boolean.
----------------------------------------

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.