Unmanged dll hangs

S

sonic1981

Hi Everyone

I'm trying to access an unmanged dll from ASP.Net (C#). I'm basically
calling a logon method within the dll but when I get to this method
call the system hangs? I've checked all the security, i.e. the ASPNet
account has access to the System32(where the dll resides) and I've
added this account to the Component services security section, as
explained here: http://www.codeguru.com/forum/printthread.php?t=383912&page=2&pp=15.

The dll call works fine from within a console window application but
the web application won't work, is this a security issue? Any help
would be great.

Regards

Liam
 
N

Nicholas Paldino [.NET/C# MVP]

Liam,

Is the component itself hosted in Component Services? If so, then this
is a COM component, and you have to make sure that the ASPCompat flag is set
to true on your page.

Also, allowing the ASPNET user access to the System32 directory (and
installing your component there) is a BAD idea on so many levels.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top