471,337 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 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 1112
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Nadav | last post: by
8 posts views Thread by Nadav | last post: by
reply views Thread by Nadav | last post: by
reply views Thread by rosydwin | last post: by

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.