473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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.

Jan 28 '08 #1
0 1687

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: typingcat | last post by:
I'd heard and believed that Microsoft .NET Framework 2.0 would be shipped with Windows Vista(Longhorn). Not as an 'additional' component, but, you know, already installed so that developers don't...
2
by: Brian Anderson | last post by:
Hello, is it possible to use DllImport to call a DLL in ASP.NET ? Or is it necessarry that my DLL has to be copied into \System32 ? My DLL is a native C++ 7.1 DLL (not managed, no COM, no...
28
by: Peter Olcott | last post by:
I want to double check my understanding about how the .NET framework works. From what I understand every call to the .NET framework is ultimately translated into one of more API calls, is this...
4
by: Iouri | last post by:
How can I make VS2005 to work with .Net Framework 3.0. What settings should I change? Thank you
6
by: amparikh | last post by:
I have VS.NET 2003 IDE and compiler. Are there any knwon issues using .NET 3.0 SDK with VS.NET 2003 ? or just including the right header files and libraries within the SDK should do it ? Thanks
9
by: Dave | last post by:
If you have VS 2005 installed on your machine and you install the 3.0 Framework, if you want to build a 2.X based framework project, how dow you do this ? Dave
5
by: Port Admiral Haynes | last post by:
I am trying to install this Mahjong program on my HTC TyTn Pocket PC. The installer is run on the PC - it installs perfectly under XP and Active Sync. http://www.smartmahjongg.com/index.html ...
7
by: sam | last post by:
It can compile .net code to native code which can run without an installed .net framework. This would remove one of the greatest disadvantages from C#. Sounds quite interesting....
17
by: Peter Anthony | last post by:
Can the 3.5 version of .NET Framework (currently Beta 2) be installed on pre-Vista machines? Or is it Vista-only? And, why doesn't .NET Framework come pre-installed with the operating system? I...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.