469,954 Members | 1,633 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,954 developers. It's quick & easy.

Unmanaged dll call error from IIS asp.net site

Hello,
I’m trying to use an unmanaged C dll from a ASP.NET 2.0 web application
using p/Invoke platform (dllImport attribute). The asp.net page instances a
c# library and this loads the C dll.
I’ve used this dll from a windows application without problems. But if this
dll is invoked from a Web site it always return this error:
“Attempted to read or write protected memory. This is often an indication
that other memory is corrupt”
When I use it from a web project using the web server of Visual Studio 2005
Environment it runs fine, but I’ cant use it in a IIS Web. It is not a
programming error, all methods invoked returns this error when are called
from IIS Web site.
What do I have to configure to allow my web site to call unmanaged dlls?
I really need help.
Thanks a lot.
Marcelo

Jun 6 '07 #1
0 1157

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Rachel Suddeth | last post: by
2 posts views Thread by Harry Simpson | last post: by
9 posts views Thread by Amit Dedhia | last post: by
6 posts views Thread by Volodia | last post: by
2 posts views Thread by =?Utf-8?B?Tm9tYW4gQWxp?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.