DllImport on framework 1.1, in IIS 6 (Windows Vista)



Greetings,
I have a problem, and been around it for some days without finding a solution.

I have an aspnet 1.1 application that works perfectly on Windows XP, Windows 2000 and Windows 2003.

When trying on Windows Vista (set application for aspnet 1.1 on IIS), the application crashes Internet Explorer with the message:
"IIS Worker Process stopped working and was closed"

Doing some debug, I found that the errors is caused when accessing a method from an external dll (win32).
I use dllimport to define the method, something like:

[DllImport("name.dll", CharSet=CharSet.Ansi, EntryPoint="functionname")]
public static extern string functionname (string SomeParameter);


I've searched a lot for a solution, and tried different aproaches, like giving full access to dll file to everyone, impersonating, enabeling unmanaged code debug, moving dll to system32 path, checking that the application is with Full trust level on IIS, etc.

I know the problem is not the dll path, since aspnet is finding it (if I remove the dll from bin folder, it throws an error of file not found).


I thought that it could be a problem with the dll on vista, but if I create a winform application, the dll works fine.

Sorry if this post is in the wrong group, but I think it has to do with aspnet security.


Appreciate any help on this subject,

Nelson R.

.



Relevant Pages

  • RE: User authentification on web applications
    ... Like Peter said you can use identity impersonate to force ASPNET to log on to ... IIS as the windows user. ... the person should get login ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Calling VB.DLL from ASP.NET
    ... Windows XP Associate Expert ... > The dll itself calls some other dll's... ... >>> How do I check this and give ASPNET permissions to this ... >>Chris Jackson ...
    (microsoft.public.dotnet.security)
  • Re: IIS locks DLLs after deploying web service (sometimes) UGH!!!
    ... However, in general, if you have Windows 2003 ... > how to prevent this, and moreover, how to FIX it, without having to bounce ... > IIS, ... > to a DLL, it never lets go of it. ...
    (microsoft.public.dotnet.general)
  • Re: Max windows handles in IIS. Pls help.
    ... I also can't believe that IIS can only open 2,500 window handles but when i ... ran the application on a different web server, it proved that it is true. ... doesn't really reflect the windows handles currently being used by the .dll. ...
    (microsoft.public.inetserver.iis)
  • IIS Worker Process stopped working and was closed
    ... I've already posted this message on aspnet and aspnet.security newsgroups but someone said it has to do with IIS, ... I have an aspnet 1.1 application that works perfectly on Windows XP, ... I found that the errors is caused when accessing a method from an external dll. ...
    (microsoft.public.inetserver.iis.security)