|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Service .NET 2.0 MissingManifestResourceExceptionFileSystemWatcher class to watch for directory changes, and if an error occurs it logs it to the event log. I have used the new Resources designer to define a few common errors I would like to write to the event log. Other than my machine, all clients that are testing are getting the MissingManifestResourceException that is being written to the eventlog, System.Resources.MissingManifestResourceException: Could not find...Make sure"SOXFileSysProperties.Resources.resources" was correctly embedded or linked into assembly "SOXFileSysWatcher" at compile time, or that all the satellite assemblies required are loadable and fully signed. etc..... I have signed my app, ran against FXCop to ensure all requirements are being used. I have a few lines in try/catch that will write as follows catch(MissingMemberException mme) { eventLog1.WriteEntry(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", mme.ToString(), Environment.NewLine, SOXFileSysWatcher.Properties.Resources.HelpString), EventLogEntryType.Error); } BTW any good reference sites for Windows Service writing, seen Windowsforms.net, asp.net, etc... but can't seem to find anything dedicated to windows services, i.e. WindowsServices.net Thanks for your help |
|||||||||||||||||||||||