PC Review


Reply
Thread Tools Rate Thread

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

 
 
Nelson R.
Guest
Posts: n/a
 
      28th Jan 2008
Greetings,
I've already posted this message on aspnet.security group (think its related
to security issues), but since didn't get any response, I post it here.

--

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.



Appreciate any help on this subject,

Nelson R.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the difference of [DllImport ....] with _declspec(dllimport) Ed Microsoft VC .NET 2 31st Jul 2007 02:31 AM
Security issue on Windows Vista and framework 1.1 =?Utf-8?B?U2lzbmF6?= Microsoft Dot NET 0 27th Nov 2006 03:38 AM
.NET Framework 1.1 in Windows Vista 5456 Edric Windows Vista General Discussion 0 2nd Jul 2006 03:42 PM
DLLImport and DOT NET Framework 2.0 nirbhay Microsoft C# .NET 1 27th Apr 2006 06:43 PM
Will .Net Framework 2.0 be shipped with Windows Vista (Longhorn) typingcat@gmail.com Microsoft Dot NET 4 24th Jul 2005 09:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 PM.