Question Locked

Custom service is giving errors

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
This is kind of a weird one. Basically I have an application that runs reports. In the process of creating the report, it takes a number and converts it to a 3 of 9 barcode. This works fine when I run the application manually. However, when I try to run the application using a service that has been created, it doesn't convert the barcode. It just gives me the number in between two asterisks. Any ideas?

7 replies

by cmiller5400

Maybe the service doesn't have rights to a file it needs access to?

It could be a plethora of different things. Maybe it needs the "allow service to interact with desktop" check box checked in the log on tab of the service? Without seeing the code for the application, I doubt that anyone would be able to help you.

by Member 27131101

If I run the application manually without using the service, it works, though. It should just do the same thing. I tried changing it to local system and checking the interactive desktop, but it didn't work. I changed it back to the logon we were using before which is a user who is a local administrator on the machine. They should have the necessary priveleges. Any other ideas?? Thanks for your help!

by cmiller5400

You can't expect a program written for a GUI to run as a service without problems. They are two different beasts all together. Are they the same executable? If the same, is there a switch to tell it that it should be running as a service? Again, without seeing the code you have written, it is near impossible to find out what is causing the problem. It could be that the bar code generator is referencing a form that can't be created...

I just reread your first post, and I have a question: Is the program designed to be run as a service or are you just hacking it into the registry trying to get it to run as one?

by bizzo

Does your application use relative pathnames to access any files? e.g. the graphic files to show the barcodes etc.?

Without knowing anything about the application, try moving the application (just the .exe if possible, no other files) to another location, maybe to another drive, and run it manually from there. If it gives the same result as running it using a service, it might be that it can't find your "other" files. Try using absolute pathames in the application (if it's possible), or adding your application file locations to the PATH system variable.

by cmiller5400

You neglected to mention that you were working in ORACLE!!!

Details, details, details.

This discussion is closed to new replies.