1

enter image description hereI have created self-hosted WCF service using Console application. I have created msi using Installshield but when I am installing setup it will stuck and after some time failed to setup.

I have added log in code and found that on the line of hosting WCF service it was going to stuck and throw an error.

Any Idea how can I resolve this issue?

Avi Meltser
  • 409
  • 4
  • 11
Krutika Patel
  • 420
  • 5
  • 16

1 Answers1

2

Service Install: Can you install and run it manually? You must install with admin rights, if you specify a user account to run the service it must have the "log on as a service" privilege (check by running secpol.msc or see here), the file you install must actually be a proper service - obviously - I sometimes mix up my test executables with the service binary. Ever forget? Happens to me :-).

Logging: Get yourself a proper log file first of all:

msiexec.exe /i "Setup.msi" /L*V "C:\Setup.log"

Or in silent mode:

msiexec.exe /i "Setup.msi" /QN /L*V "C:\Setup.log"

Some more information on Logging:


Credentials: Just adding that there are several built-in accounts you can use to run the service:

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
  • I have created a log and I came up with that while installing all codes are running and my self hosted service is also hosted successfully and running but I noticed that this whole process is going in recursive mode and at last it is getting stopped. Why it is happening? Even my exe is also running and installed. – Krutika Patel May 28 '19 at 13:36
  • Not sure exactly what you are saying. Maybe the service fails to start properly? Are you installing via the MSI tables for service installation or are you running some custom action commands? You can dump your log file somewhere if you want us to have a quick look. Maybe even github? – Stein Åsmul May 28 '19 at 14:08
  • Lobbing you a link with [service FAQ](https://www.coretechnologies.com/WindowsServices/FAQ.html). – Stein Åsmul May 28 '19 at 14:17
  • Great, do let us know what you find out. You can add your own answer and set it accepted so others see what you found. My still experimental site [installdude.com](http://www.installdude.com) has more links for deployment matters. For example: Under **"Debugging"** (black square towards top), click the **"Essential Service Tools"** link. – Stein Åsmul May 30 '19 at 12:28