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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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