473,890 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling unmanaged C dll from C# Web Service

3 New Member
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 5023
4,871 Recognized Expert Specialist
You have already asked this in .net forum. Please read the faqs re posting rules. Thanks.
Jul 12 '07 #2
2 New Member
Did you find a solution to this? It's driving me crazy as well.
Jul 20 '07 #3
3 New Member
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

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 standard c .h header file and a ..lib file to be linked with my code. From all I can gather no matter what ..net language I use basic, c#, or c++ I cant use the supplied .h file, I would need to define all functions and structures for the API in my...
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 collection is not used in this class. (singleton class + override InitializeLifetimeService ) The service class uses C++ unmanaged function from dll (using DLLimport).
by: | last post by:
How can I handle an error while I calling web service asynchronously?
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. This DLL is used for solving and optimizing some non linear problems. Problem : The problem I am facing is as the solver runs and does the
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: http://www.nomorepasting.com/paste.php?pasteID=5973 The dll (if some kind soul has the time to compile and run the code) can be found at:
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
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 Unicode' option for that..). As I do not want to rewrite the whole application for unicode usage: Is there any way to call functions out of this DLL in a .net 2.0 application? Thanks,
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 web service is also subject to the same performance issue. Is there any major difference between ASP.NET and Web Service running on IIS from a performance angle. Thanks for your support.
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 application. Furthermore, I use a pointer to an unmanaged function to jump back into the managed dll. The managed part is basically a remoting enhancement which asynchronly
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
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.