Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


User Defined service with Srvany.exe

Posted on 2005-03-01
Medium Priority
Last Modified: 2008-02-01
Hi All,
We have a proprietary piece of software that uses .NET remoting technology.  The remoting service has three parts:  The executable, the dll, and the ini file to tell the service where the data is that it needs to get.  I have taken the srvany.exe file and the instrv.exe files and placed them into c:\windows\system32\

I then created the service and made the appropriate registry changes.  The service started without a problem.  Ok, here is the weird part.  The files for the service are on the E drive of the computer.  The executable is designed so that if no INI file exists, it should create one.  When I start the service, it does not see the INI file in the same folder with the executable and the DLL, so it goes to create one.... But it places it in the c:\windows\system32\ folder.  Of course, the client can not connect because this ini file does not have the appropriate data.  However, if I copy an INI file into the c:\windows\system32\ folder, the client functions properly.  All the while, the service is not giving any error messages at any time.  Is this an issue with Srvany.exe?

Any help would be greatly appreciated.  

Question by:smpross
LVL 51

Accepted Solution

Netman66 earned 2000 total points
ID: 13435361
I believe now that this is a service, it will look for the ini in the system path.  This would explain why it chose System32.

You can try adding the path to the exe and dll into the system variable's path.  

LVL 34

Expert Comment

ID: 13435452
This is likely because the srvany.exe service runs from the system32 directory and the working path for anything it starts will be set to system32 as well.

I do not see any way to add configuration to the service to tell it to look somewhere else for an INI file.

Dave Dietz


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question