0
我在.net framework 3.5中開發了一個WCF應用程序。該應用程序工作正常,但是當我將其部署在IIS中它給空時,我曾嘗試使用url在iis中部署WCF 3.5服務時遇到的困難
http://mysite:8086/VpoService.svc
我的配置文件是這樣的訪問web服務。
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="VpoService.VpoServiceTypeBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="VpoService.VpoServiceTypeBehavior"
name="VpoService.VpoServiceType">
<endpoint address="" binding="wsHttpBinding" contract="VpoService.IVpoService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />-->
</service>
</services>
</system.serviceModel>
確保您的IIS應用程序都有自己的應用程序池的'Integrated'而不是'Classic'。 – Franck
如果它仍然不起作用,可能是因爲asp.net沒有在IIS上註冊。如果是這種情況,您需要使用適當的參數運行register命令,但我不記得主命令行是'aspnet_regiis',通過互聯網快速搜索應該可以讓您瞭解使用它的幾種方法。 – Franck