Home All Groups Group Topic Archive Search About

Windows Service .NET 2.0 MissingManifestResourceException

Author
11 Apr 2006 3:10 PM
JoshDCrosby@gmail.com
I have a simple windows service that was created in vs2005, it uses the
FileSystemWatcher 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

AddThis Social Bookmark Button