Robson Rocha de Araujo
Robson Rocha de Araujo

Reputation: 699

How to configure WCF Service to AutoStart in AppFabric when the services reside in the website root

I'm trying to configure my WCF services under WIndows Server 2008 R2's IIS and AppFabric to auto-start, but the steps listed at MSDN (here: http://msdn.microsoft.com/en-us/library/ee677285(v=azure.10).aspx) are possible only when the services reside in an application, but in my case, the .svc files reside directly in the site root.

This way, the 'Configure WCF and WF...' shows as '...for Site' and do not show the options for auto-start, as it would do if the application were hosted under an application sub-folder.

Someone knows what i'm doing wrong?

Thanks in advance!

Upvotes: 2

Views: 2958

Answers (1)

Cybermaxs
Cybermaxs

Reputation: 24558

You have to edit IIS config file, located at C:\windows\system32\inetsrv\config\applicationHost.config sample config

or with Configuration Editor as Root Level (!) sample config editor

or finally use a appcmd script

appcmd.exe set config  -section:system.applicationHost/sites /[name='YourSite'].[path='/'].serviceAutoStartEnabled:"True" /[name='YourSite'].[path='/'].serviceAutoStartProvider:"Service" /[name='YourSite'].[path='/'].serviceAutoStartMode:"Custom"  /commit:apphost

This only for configuring web application to autostart. You will have others steps for each service.

Upvotes: 3

Related Questions