Como configurar o serviço WCF para AutoStart no AppFabric quando os serviços residem na raiz do site

2

Estou tentando configurar meus serviços WCF no IIS e no AppFabric do Windows Server 2008 R2 para iniciar automaticamente, mas o as etapas listadas no MSDN são possíveis somente quando os serviços residem em um aplicativo, mas, no meu caso, os arquivos .svc residem diretamente na raiz do site.

Dessa forma, o 'Configurar WCF e WF ...' é exibido como '... para o Site' e não mostra as opções de inicialização automática, como faria se o aplicativo fosse hospedado em um sub-aplicativo. pasta.

Alguém sabe o que estou fazendo errado?

    
por Robson Rocha 28.06.2012 / 14:48

1 resposta

2

É respondido aqui no MSDN , o da SilverNinja é uma resposta melhor.

I found that the IIS UI is not that great for configuring applications - especially when trying to setup the Site Root as an autostart application. The best way to manage it is by using the Configuration Editor that comes with AppFabric under the Computer Name -> Management of Features View.

To make a Site Root an autostart application - you need to locate the Section system.applicationHost/sites and click the (Collection) entry. Click on your site name in the list of sites and click (Collection) once more. Select the application in the list and assign the serviceAutoStart="True", serviceAutoStartMode="All", and serviceAutoStartProvider="Service". Also enter net.pipe for the enabledProtocols ("http, net.pipe").

You also need to change the application pool setting to AlwaysRunning. To locate this setting, use the Collection Editor to navigate to the Section system.applicationHost/applicationPools. Click the (Collection) value and then select the application pool used by your root site and assign startMode="AlwaysRunning".

At this point, you can script your changes via "Generate Script" or apply them immediately using the "Apply" action. Hopefully this helps someone else who was as confused as I was about the issue. To test the configuration, you can issue an iisreset to see if your w3wp.exe process starts immediately.

Autostart Configuration MSDN Reference

    
por 22.08.2012 / 14:54