calling unmanaged dll failed in web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QmlsbHkgWmhhbmc=?=

    calling unmanaged dll failed in web service

    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.

    Why?

    Thanks,
    -Billy
  • John Saunders

    #2
    Re: calling unmanaged dll failed in web service

    "Billy Zhang" <htinns@noemail .noemailwrote in message
    news:E8321EA8-65AC-4AB0-9A54-21281B457420@mi crosoft.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

    Comment

    • Steven Cheng

      #3
      RE: calling unmanaged dll failed in web service

      Comment

      • Steven Cheng

        #4
        RE: calling unmanaged dll failed in web service

        Comment

        Working...