import dll file does not work on 2003 IIS 6.0 [Answered]RSS

5 replies

Last post Oct 20, 2009 11:54 PM by lextm

  • import dll file does not work on 2003 IIS 6.0

    Oct 20, 2009 06:07 AM|foan|LINK

    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!!

     

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

    Oct 20, 2009 06:10 AM|lextm|LINK

    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
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: import dll file does not work on 2003 IIS 6.0

    Oct 20, 2009 06:44 AM|foan|LINK

    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?

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

    Oct 20, 2009 11:14 PM|lextm|LINK

    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
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: import dll file does not work on 2003 IIS 6.0

    Oct 20, 2009 11:43 PM|foan|LINK

    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.

    dll IIS classic ASP .NET coexists IIS 6 web gardens asp iis 6.0 .NET classic asp dll's in iis7

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

    Oct 20, 2009 11:54 PM|lextm|LINK

    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
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.