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

Problem in Unmanaged dll

Hi,

I have a managed dll which is a wrapper for an unmanaged dll. I add a
reference for managed dll in C# simple application ( A form with just
a button. Managed dll gets called on button click). All this is
working in the application exactly as I want it to.

I also wanted to implement in ASP.Net using C# as its language. Now if
I take the same managed code dll and the unmanaged dll and add
reference for managed dll (exactly as above) the managed dll code gets
called, but an exception is thrown immediately when managed dll calls
a function or declare a class object of unmanaged dll. What exactly
is going wrong ?

The managed dll has DelayLoad enabled for the unmanaged dll.
(According to this article http://blogs.msdn.com/jorman/archive...n-asp-net.aspx)
PS: I don't know if this is the correct group to post my query.
Jul 11 '08 #1
1 1177
On Jul 11, 12:37*pm, nIgHtCrAwLeR <pranav...@gmail.comwrote:
Hi,

I have a managed dll which is a wrapper for an unmanaged dll. I add a
reference for managed dll in C# simple application ( A form with just
a button. Managed dll gets called on button click). All this is
working in the application exactly as I want it to.

I also wanted to implement in ASP.Net using C# as its language. Now if
I take the same managed code dll and the unmanaged dll and add
reference for managed dll (exactly as above) the managed dll code gets
called, but an exception is thrown immediately when managed dll calls
a function or declare a class object *of unmanaged dll. What exactly
is going wrong ?
Most likely, your Web application simply doesn't have the permission
to call unsafe (in particular, unmanaged) code.
Jul 11 '08 #2

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

Similar topics

1
by: Adam Clauss | last post by:
I have an unmanaged C++ library that I need to use through C#. I created a Managed C++ class library and through it wrote a wrapper class to call what I need. However, one of the methods (an...
8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid...
1
by: Sasha Nikolic | last post by:
I have defined a managed class ( __gc ) and a unmanaged ( __nogc ) in a separate files (but in the same vc++ dotnet project). I have no problem of referencing the unmanaged class from the menaged...
8
by: Nadav | last post by:
Hi, Introduction: ********************* I am writing a mixed mode application I have a COM module and a .NET module that communicate with each other. The COM exposes a custom sink interface,...
0
by: Nadav | last post by:
Hi, Introduction: I have developed an interop project built of an unmanaged COM object and a ..NET WinForm application, the WinForm Application implement the user interface while the unmanaged...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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...

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.