"Billy Zhang" <ht****@noemail.noemailwrote in message
news:E8**********************************@microsof t.com...
I have a unmanaged dll and I could call it successfully in winform app.
But in web service it will failed, and I was in debugging mode, it was
executed in admin account.
This DLL may be making assumptions about the environment it is running in.
It may assume it is running in a process with a message pump, for instance.
That assumption would be false in a web service, windows service or ASP.NET
application. It may also be assuming that there is only one thread accessing
it at a time. That assumption would also be false in a server situation.
It's possible that you simply cannot safely use that unmanaged DLL in a
service.
--
John Saunders | MVP - Connected System Developer