Answered by:
WCF Relay / Service Bus connection goes offline

Question
-
Hello group,
I use the Azure Relay service to bring my local WCF service to the cloud.
It works fine for a while.
But on the next day at the latest the connection goes offline and I have to wake her up again.
'Wake up' means: I navigate to the local WCF url via browser.
That's all.
How can I configure IIS or the WCF service to be always online?regards Achim
- Moved by AshokPeddakotla-MSFTMicrosoft employee Tuesday, January 23, 2018 2:41 PM Better suited here from CS
Tuesday, January 23, 2018 10:53 AM
Answers
-
Thanks, now it works!
One important thing was the warmup.dllSee: https://weblog.west-wind.com/posts/2013/Oct/02/Use-IIS-Application-Initialization-for-keeping-ASPNET-Apps-alive
- Marked as answer by iwrschenk Friday, February 9, 2018 3:49 PM
Friday, February 9, 2018 3:49 PM
All replies
-
This is more of an IIS question and I'm not much of an IIS Expert but I believe the key would be making the AppPool startMode = AlwaysRunning and setting the Application preloadEnabled = true. Described here:
https://blogs.msdn.microsoft.com/vijaysk/2012/10/11/iis-8-whats-new-website-settings/
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/
- Proposed as answer by David Stucki [MS] Wednesday, January 24, 2018 8:26 PM
Wednesday, January 24, 2018 8:24 PM -
Thank you for the hints,
but that was not the solution.
regards Achim
Tuesday, January 30, 2018 11:30 AM -
What did the answer turn out to be?Tuesday, January 30, 2018 6:05 PM
-
I meant: the problem persists.Wednesday, January 31, 2018 1:02 PM
-
Have you read over these?
https://blog.jeroenmaes.eu/2014/06/azure-service-bus-relay-and-iis-8-warming-up-wcf-services/
http://www.wadewegner.com/2010/05/host-wcf-services-in-iis-with-service-bus-endpoints/
http://www.wadewegner.com/2010/08/autostart-wcf-services-to-expose-them-as-service-bus-endpoints/https://social.technet.microsoft.com/wiki/contents/articles/1284.host-wcf-services-with-service-bus-endpoints-in-iis-and-windows-server-appfabric.aspx
Thursday, February 8, 2018 9:08 PM -
Thanks, now it works!
One important thing was the warmup.dllSee: https://weblog.west-wind.com/posts/2013/Oct/02/Use-IIS-Application-Initialization-for-keeping-ASPNET-Apps-alive
- Marked as answer by iwrschenk Friday, February 9, 2018 3:49 PM
Friday, February 9, 2018 3:49 PM