473,320 Members | 1,991 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,320 software developers and data experts.

ATL service exe problem

HI All,
I'm a newbe to ATL. I got stucked with a problem, I have a ATL service
exe created sometime back in 1998 using VC++ 6.0 ( or older) which
works as expected in Windows NT, I dont have all the source code of the
exe. I just have all the .cpp and .h files. The .dsp and .dsw files are
missing. When I tried to use the same exe in windows 2003 its not
working.

I have a ASP client that calls a dll. The dll tries to use the service
exe and everything is working fine in Windows NT. But when same
operation is performed in Windows 2003 it fails.

I verified if the dll is working fine by removing the exe calls inthe
dll. Dll code apperas to be fine. The ASP client calls a function of
the dll and the dll calls the service exe function. This is where
exactly it fails. when the service exe is function tries to execute.
My questions.
Is it possible to create to .dsp and dsw from the available .cpp and .h
files.
Is there any work around through which I can make the exe work in
Windows 2003.
I recreated a new ATL services project using VC++ (7.1 version) and
copied all the original .cpp and .h from which the old exe was build.
When I run the service exe created from VC++ 7.1 it runs ( I can see it
in the Task Manager) but not working as expected. I am not able to
track the reason why the exe is not able to working.

Any help is greatlyappreciated.

Regards,
Sandy

Jan 21 '07 #1
1 1577
Is it possible to create to .dsp and dsw from the available .cpp and .h
files.
No, you have to create a new project.
Is there any work around through which I can make the exe work in
Windows 2003.
How exactly does the service fail? Probably, calls to its methods
return some error code? Which one? See also below.
I recreated a new ATL services project using VC++ (7.1 version) and
copied all the original .cpp and .h from which the old exe was build.
When I run the service exe created from VC++ 7.1 it runs ( I can see it
in the Task Manager) but not working as expected. I am not able to
track the reason why the exe is not able to working.
First things to check would be:

- Haven't you forget to build and register proxy/stub dll?
- Do launch and access permissions of the COM server allow your client
to access it? You can check the permissions in Component Services
applet, part of Administrative Tools (running dcomcnfg.exe on the command line
should also open that applet; your server should probably be somewhere
under Component Services \ Computers \ My Computer \ DCOM Config).

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Jan 22 '07 #2

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

Similar topics

3
by: David Fraser | last post by:
Hi We are trying to debug a problem with services created using py2exe. It seems that these problems have arisen after services were installed and removed a few times. OK, first the actual...
29
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some...
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
2
by: JD | last post by:
Hello, I'm experiencing a problem that I'm hoping someone might be able to shed some light on. I have an ASP.NET page on a Windows 2000 machine that makes web service calls to a .NET web...
5
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error...
3
by: adasilva | last post by:
I have create a Windows service that uses a timer to access a Web Service. The service is set to start Automatically and its using the local system account. The service also logs events to the...
12
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
7
by: Chris Mullins | last post by:
I'm in the process of building a number of (Web) Services using .NET 3.0 and WCF. These services are intended to be deployed within the Intranet of a very, very large orginization. I need to...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
6
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException....
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...
1
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: 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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.