By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,421 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,421 IT Pros & Developers. It's quick & easy.

Problem in Unmanaged dll

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.