English 中文(简体)
Setup and Deployment does not work
原标题:

I am working on VS 2008 and 3.5 framework. I had three windows services. I placed all three in a single solution, created installer individually for each of them. Then created a setup project. When I build it says build failed . But I checked on the errorlist, (i enabled the diagnostics in options menu), but there was no error at all. I went ahead and installed. There were no issues, But there was no service showed up in the services.msc.

I installed each service individually , using installutil command, it showed up. But my requirement is to bundle these services and deploy to the client. The client should install it.

Where am I going wrong. Any inputs will be highly appreciated.

Regards cmrhema

问题回答

I notice your comment above about omitting the custom action. Same mistake I made! For posterity, here s the entire process:

  1. Make sure you have added the project installer to your service project (described here). These components give your service EXE the ability to register itself with the service manager.
  2. Add a setup project to your solution.
  3. Add the primary output from your service project to the setup project (described here). This puts the binary into the application directory.
  4. Add a custom deployment action to your setup project containing the primary output from your service project. This looks like a repeat of step 3, but what it s actually doing here is registering your service with the service manager.

This walkthrough goes through each of these steps in some detail.

I too have a similar problem with VS 2008 and I believe it is a bug in the IDE rather than anything you re doing wrong.

Basically what happens is that VS reports a failed build, but does not indicate any reason for the failure. I find that restarting Visual Studio and then performing another build allows the build to succeed.

I read somewhere that for some people the bug is caused by some auto-created project file, but a restart fixes the problem for me.

Build failed -> what else is there in the Output window?

For some general reference regarding setup projects for windows services in .net: http://msdn.microsoft.com/en-us/library/aa983650%28VS.71%29.aspx

http://support.microsoft.com/kb/317421





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签