Jump to content
  • Advertisement
Sign in to follow this  
OpenGL_Guru

[.net] calling an unmanaged C DLL from a C# web service..

This topic is 4000 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to make various calls to a C dll using DllImport from a C# webservice and am running into some problems. I have been able to successfully make the same calls from a local C# application, however as soon as I try to make the call from a web service the functionality of unmanaged code seems to be not allowed. is there anyway around this? where could i change the IIS permissions? i am using VS 2003. thanks a lot for your help --

Share this post


Link to post
Share on other sites
Advertisement
I'm not sure, but I think this isn't so much an issue with IIS but rather a .NET configuration security policy. Unfortunately that's definitely not my expertise so I can tell you little about it, other than that MSDN most likely provides more info and that you can find the control applet in Settings > Control Panel > Administrative tools > .NET Framework Configuration.

Depending on the functionality of the DLL you're calling, it might be an interesting alternative to set up a local Windows service which will handle the interaction with the DLL and have webapps query the service through named pipes (or another comm mechanism, perhaps remoting). This seperates the web code from the unmanaged native code (which is typically a good idea) and it allows for scalability in that the native work could optinally be done on another machine.

Hope this is of any use :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!