Click here to Skip to main content
15,935,728 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I created a WCF Service Library project with MSMQ and hosted it in IIS. Client sends a request to the service. When service is down, requests are stored in MSMQ. Everything works fine except the service doesn't start automatically when Web Site is restarted. I have to either click on Service in a browser in IIS Manager or enter its URL. After doing that, I get a page with the following "You have created a service. To test this service, you will need to create a client and use it to call the service..."

AppFabric is not a solution in my case because I don't have an application, only a website.

This is a structure of my Visual Studio 2010 Solution:

ProjectService
> Properties
> References
App.config
IService1.cs
Service1.cs
ServiceHost.svc (with only one line "<%@ ServiceHost
Service="ProjectService.Service1" %>)

Is it possible to automatically start the service after Web Site is restarted?

Thanks, Alla
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900