« Previous Next »

Thread: import dll file does not work on 2003 IIS 6.0

Last post 10-20-2009 11:54 PM by lextm. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 10-20-2009, 6:07 AM

    • foan
    • Not Ranked
    • Joined on 10-19-2009, 10:58 AM
    • Posts 3

    import dll file does not work on 2003 IIS 6.0

    Hello all,

    I have a  big problem now. I create a C++ DLL import into C# webservice , this webservice can call DLL on XP IIS , but it  doesnot work on 2003 IIS . What thing  need to setup on 2003 IIS?

    any can help me ,please!!

     

  • 10-20-2009, 6:10 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,375

    Re: import dll file does not work on 2003 IIS 6.0

    On Windows XP/IIS 5.1, IIS worker process runs under "LocalSystem" that gives it much more permissions to do things.

    On IIS 6 by default, the process (application pool) runs under NetworkService.

    So you may open IIS Manager and change the application pool to run under NetworkService identity and test again.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-20-2009, 6:44 AM In reply to

    • foan
    • Not Ranked
    • Joined on 10-19-2009, 10:58 AM
    • Posts 3

    Re: import dll file does not work on 2003 IIS 6.0

    lextm:

    On Windows XP/IIS 5.1, IIS worker process runs under "LocalSystem" that gives it much more permissions to do things.

    On IIS 6 by default, the process (application pool) runs under NetworkService.

    So you may open IIS Manager and change the application pool to run under NetworkService identity and test again.

    i had change it to NetworkService identity ,but it still can't work too,

    is it had any limilt to DLL thread  on 2003 server IIS?

  • 10-20-2009, 11:14 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,375

    Re: import dll file does not work on 2003 IIS 6.0

    So you have changed the pool identity from NetworkService to LocalSystem on IIS 6? Changing to NetworkService I think is not enough.

    This is not a thread limit, but a .NET security topic,

    http://msdn.microsoft.com/en-us/library/5ba4k1c5.aspx

     

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-20-2009, 11:43 PM In reply to

    • foan
    • Not Ranked
    • Joined on 10-19-2009, 10:58 AM
    • Posts 3

    Re: import dll file does not work on 2003 IIS 6.0

    lextm:

    So you have changed the pool identity from NetworkService to LocalSystem on IIS 6? Changing to NetworkService I think is not enough.

    This is not a thread limit, but a .NET security topic,

    http://msdn.microsoft.com/en-us/library/5ba4k1c5.aspx

     

    dear lextm , i had change NetworkService to LocalSystem,

    Dll seems had be exec, but don't do correct action ,

    is any limit for socket ? i had close firewall too.

    but packet is not send for my expected.

  • 10-20-2009, 11:54 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,375

    Re: import dll file does not work on 2003 IIS 6.0

    So there is no SecurityException, and just the packet was not sent. Then I think you need to review the native library being called.

    A recommended approach is to write some application log from the library so you can check out its execution path. Maybe something else is wrong.

    Regards,

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (6 items)
Microsoft Communities