473,326 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Calling unmanaged C dll from C# Web Service

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 C# application, however as soon as I try to make the call from a web service the service immediately crashes. "The program '[4588] aspnet_wp.exe: Managed' has exited with code 0 (0x0)."
I am assuming that this is related to some sort of File System permission issues / the location of the dll, however I have tried everything I can think of in these regards. I created a virtual directory as part of the web site that is linked to the Folder where my dll is located. I have adjusted all permissions on the folder to include the ASPNET machine account to grant full access. Any help or suggestions would be great. Thanks.
Jul 11 '07 #1
3 5007
kenobewan
4,871 Expert 4TB
You have already asked this in .net forum. Please read the faqs re posting rules. Thanks.
Jul 12 '07 #2
Did you find a solution to this? It's driving me crazy as well.
Jul 20 '07 #3
Did you find a solution to this? It's driving me crazy as well.
I actually have yet to find a solution to this.
Jul 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: JohnH | last post by:
I need to write a .net windows service that calls and receives callbacks from a API for specialized hardware through a conventional unmanaged dll. The manufacturer for this hardware provides a...
4
by: jarmopy | last post by:
Hi, I have made a service with C# and calling that service class from another C# program with remoting. (Referendes from the calling program) That service class is configured so that garpage...
1
by: | last post by:
How can I handle an error while I calling web service asynchronously?
0
by: monika.saxena | last post by:
Hi all, In one of my projects which is a web based application in asp.net, a third party tool - "Frontline Solver DLL" (It is an unmanaged DLL and ..NET is calling it using the PInvoke) is used....
1
by: Leftie | last post by:
Folks, I'm trying to call an unmanaged function from VB.NET and keep getting "Object reference not set to an instance of an object" error. The code that i wrote can be found at:...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
4
by: Peter Schmitz | last post by:
Hi, I've got a rather old DLL that compiles properly with the 'Multi byte charset' option under VS2005. Now, I cannot call any functions of this dll out of a VB .net application (would need 'Use...
0
by: Louis Yeung | last post by:
Hi, Microsoft stated that ASP.NET calling web service, especially long delayed service, will have performance issue. I just need to confirm that web service hosted by ASP.NET/IIS calling another...
3
by: Klaus | last post by:
Hi, I have an existing VC 6 MFC application which communicates asynchronly with a VC 2005 managed code dll. I use an unmanaged base class with virtual functions to access methods in the MFC...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a unmanaged dll and I could call it successfully in winform app. But in web service it will failed, and I was in debugging mode, it was executed in admin account. Why? Thanks, -Billy
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.