Note that there are some explanatory texts on larger screens.

plurals
  1. POwindows service written in c# .NET 4 vs2010 will not install on Server 2008 R2 Enterprise
    text
    copied!<p>I've written <strong><em>many</em></strong> versions of windows services and installed them on a 64-Bit system with 32 GB running Server 2008 R2 Enterprise.</p> <p>I create the services using this recipe:<br> <a href="http://msdn.microsoft.com/en-us/zt39148a.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/zt39148a.aspx</a><br> <em>"Walkthrough: Creating a Windows Service Application in the Component Designer"</em></p> <p>I create the <strong>.msi</strong> and corresponding <strong>setup.exe</strong> on my Win 7 laptop (<strong>c#, vs2010 SP1, .NET 4</strong>).</p> <h2>NORMAL BEHAVIOUR</h2> <p>after testing a Windows service on my laptop, I copy the .msi and setup.exe to a folder on the win2008 R2 Enterprise server (using copy and paste via remote desktop); I use the server's Control Panel to uninstall, right click the .msi and choose Install, then walk through the Setup Wizard. No problem. Works <strong><em>most</em></strong> of the time.</p> <h2><em><strong>ABNORMAL BEHAVIOUR</em></strong></h2> <p>The install runs for perhaps 15 minutes or longer; it never finishes; eventually a dialog states<br> "(?) Installer is no longer responding."<br> with options to [Retry] or [Cancel]. </p> <p>At this point, the progress bar is a short as it could possibly be and at the far left, beneath the "P" of "Please wait...". </p> <p>Clicking <strong>Retry</strong> does not help. It's been over 30 minutes and counting since I clicked <em>Retry</em> and the progress bar has not advanced even a pixel.</p> <h2><strong>MORE INFORMATION</strong></h2> <p>(a) the service installs without any problem on another server, a Win 2008 R2 web edition.<br> (b) as mentioned above, the Windows service both installs and works properly on my Win 7 development and testing environment. </p> <h2><strong>HISTORY / SPECULATION</strong></h2> <p>a couple of weeks ago, I was unable to install a service from the win 2008 R2 Enterprise server. I could not find it in Control Panel/Uninstall even though the .msi claimed it to be installed and the service also continued to appear in the services.msc console. Even disabling the service did not help. For that reason, I cloned the code, changed the service name slightly, and successfully installed <em>that</em> service which has been running for while without issues. </p> <p>Today, a similar event happened, the only difference being that I can see that service in Control Panel Uninstall. Because it would not uninstall, I tried my same cloning trick but this time it failed. </p> <p>Next step: using the above walkthrough, I created a do nothing Windows service and made it useful by importing my client classes into it from the original c# project file.</p> <p>The <em>re-built from the ground up</em> Windows service works as designed on my laptop but refuses to install on the R2 Enterprise server. </p> <p>Any ideas?</p> <p>Please and thank you.</p> <p>P.S.: i posted this at so because imho it's more likely something that a developer is likely to encounter prior to handing off her/his code to a sysadmin.</p> <p>BTW, I could not find anything related at so; ditto via Google.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload