我一直在为这一整晚而战,所以这里有:Windows AppFabric自动启动不启动WCF服务
我有一个名为Send的Azure服务总线WCF服务。我想使用Windows Server 2008 R2(标准)服务器在IIS中使用Windows Server AppFabric的自动启动功能来承载此服务器。
我已经安装了Windows Server AppFabric,它看起来很顺利。不过,我很想念在UI自动启动选项,您通常会通过右键单击IIS中的网站节点得到的,它应该是这样的:
但是,我用PowerShell命令代替,他们似乎工作。有选择地自动启动服务的选项已启用。所以,我觉得它应该工作。但是,它不会自动启动,我也不会在事件日志中发现任何错误。下面是我的web配置:
<!-- Service Bus Service -->
<service name="TestWeb.Send" behaviorConfiguration="serviceBusBehavior">
<endpoint address="sb://mynamespace.servicebus.windows.net/Send/" contract="TestWeb.ISend" binding="netTcpRelayBinding" behaviorConfiguration="SharedSecretCredentials" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBusBehavior">
<serviceMetadata />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="SharedSecretCredentials">
<transportClientEndpointBehavior credentialType="SharedSecret">
<clientCredentials>
<sharedSecret issuerName="owner" issuerSecret="xxxxxxxxxxxxxxxxxxxxxx=" />
</clientCredentials>
</transportClientEndpointBehavior>
</behavior>
</endpointBehaviors>
</behaviors>
我的服务合同是非常基本的:
[ServiceContract]
public interface ISend
{
[OperationContract]
void SendMail(String Subject, String To, String Text, String HTML);
}
我还添加了ServiceBus_schema.xml到正确的文件夹下Inetserv从这里http://msdn.microsoft.com/en-us/gg282466
如果我真的去到浏览器的服务中的说明,它精致加载了,我看到了服务总线注册端点。但是,在这一点上,没有我做任何事情,它应该是这样做的。
任何人有任何想法?
重新修复旧线程 - 您可以详细介绍一下您在IIS中设置的层次结构吗? – ozz 2012-01-24 14:25:05