473,503 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling unmanaged dll failed in web service

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
Oct 6 '08 #1
3 1682
"Billy Zhang" <ht****@noemail.noemailwrote in message
news:E8**********************************@microsof t.com...
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.
This DLL may be making assumptions about the environment it is running in.
It may assume it is running in a process with a message pump, for instance.
That assumption would be false in a web service, windows service or ASP.NET
application. It may also be assuming that there is only one thread accessing
it at a time. That assumption would also be false in a server situation.

It's possible that you simply cannot safely use that unmanaged DLL in a
service.
--
John Saunders | MVP - Connected System Developer

Oct 6 '08 #2
Oct 7 '08 #3
Oct 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1567
by: Denis | last post by:
Hello, I am working on a large business application written mostly with VC++ and MFC. What I'm trying to do is accessing my database with the existing functions in my c++ application using XML...
4
2412
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...
10
2065
by: Gustavo L. Fabro | last post by:
Greetings! I've been porting an application for Builder to VS .NET 2003 and searching for possible bottlenecks (the application is currently running slow). I found out one scenario that takes a...
0
1850
by: S. Baumann | last post by:
Hello, I have written a very simple web service in C++, that calls a function in an unmanaged DLL. If the DLL is copied to the search path (defined by the PATH environment variable) then the...
1
3138
by: ecydba | last post by:
When attempting to use a web service that has NTFS permissions to the Domain Users group and Anonymous access turned off in IIS on a WinXP machine with the following classic ASP code: Dim oSoap...
1
3413
by: MC-Advantica | last post by:
Does anyone have a simple "Hello World" like application that demonstrates unmanaged C++ calling managed C++ developed in VS2005? I'm confused by many posts as they discuss managed extensions from...
9
3690
by: =?Utf-8?B?Wm9vZG9y?= | last post by:
I have a web service, written in C#, that calls a managed C++ library that itself calls a third-party unmanaged C++ library (which is its only purpose - to allow me to call some unmanaged C++ from...
7
2663
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
9
2291
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a win32dll which is a dll to send SMS. I am using Dllimport to call the methods in the dll. In Winform it works well. In Web form the method doesn't work and returns false. (I am debugging...
0
7204
marktang
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,...
0
7091
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...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6998
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...
0
7464
tracyyun
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...
0
5586
agi2029
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 project—planning, coding, testing,...
1
5018
isladogs
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...
0
4680
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.