473,385 Members | 1,409 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,385 software developers and data experts.

Problems using a unmanaged DLL from ASP.NET

Hi

I need to access a unmanaged DLL from my ASP.NET page. This DLL (a "true"
DLL, not a COM DLL) is a database manager with 2 DLLs and 1 .EXE (no
interface).

If I try to access this DLL from a winform application I have no problem.
if I try do access this DLL from a ASP.NET webform application in my
development machine I have no problem too, but if I put my web application
in any other machine, I get an error (from DLL) saying something meaning
that it can't access the others DLLs. I never get any exception from CLR.

The strange thing is that in another machine (my server), the web
application works ok too, but I just can't be able to repeat the process to
make any other machine works too.

I think that this is some kind of permission error, from IIS or from .NET
framework.

I already try to gain full access to all machine and to my assembly, with no
success

In my assembly that calls the DLL, I put a
"Security.SupressUnmanagedCodeSecurty" attribute, and a Assert in
SecurityPermission with flag "UnmanagedCode" set to true, with no success
too.

One thing that can be usefull is that if I change in my machine (that
works) the DLL call to access data in another drive (<> C:), I get the an
error too, but a diferent one. The error code is not very precise, but can
be permission related.

I already try to use a "Security.FileIoPermission" attribute, with no
success too, but I can't say for sure if I did everything right, because I'm
a newbie in this .NET security related problems.

Important to say that in my machine and in my server, call to this unmanaged
DLL works ok without use of any attributes in my code.

I'm using .NET 1.1 and Windows 2000 Pro (my machine) and Windows 2000 Server
(my server). VS.NET 2003 is instaled only in my machine.

Thanks in advance

Luiz
Nov 17 '05 #1
0 1696

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

Similar topics

1
by: Lucia | last post by:
I'm working at .NET project to implement a COM interface for a .NET control. The .NET assembly is built with the correct license for the control. Some unmanaged code is creating an instance of...
17
by: Sharon | last post by:
I Have a PC with dual XEON CPU’s and 4 Giga Byte RAM win Windows XP Pro. I have 2 problems with it: (1) Windows is showing only 3.25 Giga byte on the System Properties ? General tab. While the...
7
by: greg | last post by:
Hi We have w2k, iis5, .NET/c# I periodically receive this message and the system freezes ++++++++++++++++++++++++++++++++++++++++++++++++++ Timeout expired. The timeout period elapsed...
10
by: Russell Mangel | last post by:
I have written the following program using VS2005. The program is a Dynamic Array similar to System.Collections.ArrayList in .NET. The program works okay until I reach 65536, I can't seem to figure...
5
by: akash | last post by:
I'm having problems calling an unmanaged class from a managed wrapper. I suspect I'm missing something obvious, as I'm unfamiliar with C++ and classes are very simple. My unmanaged class is as...
1
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I have an VC++ MFC Win32 application that isn't working correctly when I build it with VS2005. The problem seems to be in some ADO ActiveX controls that came with VS6 and are now out of support....
5
by: dragonslayer008 | last post by:
I am trying to initialize Direct3D 9 in a C++/CLR application. However, the create device function gives me a compilation error: error C2664: 'IDirect3D9::CreateDevice' : cannot convert parameter...
14
by: Mohamed Mansour | last post by:
Hey there, this will be somewhat a long post, but any response is appreciated! I have done many PInvoke in the past from C++ to C#, but I did PInvoke within C# not C++/CLI. Can someone explain...
0
by: hanthehead | last post by:
In order to use a C# dll from our unmanaged C++ project I have created a mixed managed\unmanaged c++ dll. This dll is passed an unmanaged class which contains vector<CDBRecord> m_vecRecords member...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.