Click here to Skip to main content
15,886,012 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
I have windows service.When i start the service i am getting below exception
ERROR :method: Could not find file 'C:\WINDOWS\TEMP\q4wged5r.dll'.

Anybody have any idea on such kind of error?

Thanks
Posted
Comments
Richard MacCutchan 19-Nov-13 4:51am    
Yes, the system cannot find the named file. What more detail do you need?
Bernhard Hiller 20-Nov-13 3:40am    
No, that's not so easy and simple as it may look like at first view. See my answer below.
Richard MacCutchan 20-Nov-13 3:45am    
Thanks for the information.

I would suggest to check event viewer and "hopefully" you might be able to find more information about the failure.
 
Share this answer
 
Looks like a dynamically generated dll. If you use e.g. XMLSerializer, such dlls are created for each type to be serialized/deserialized, dynamically at run-time, in the temp folder. And that's the point where something went wrong with your service.
What does happen when you debug the service from Visual Studio (note: you must use some tricks to do so, e.g. Debugging Windows Services under Visual Studio .NET[^])?
You could write your own code for serialization/deserialization of the objects to prevent that problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900