Я пытаюсь разместить службу WCF в службах IIS 7.5, но с помощью диспетчера IIS при попытке просмотреть файл SVC он бросает мне эту ошибку Как разместить службу WCF в IIS 7.5?
снова, когда я пытаюсь запустить файл SVC из Визуальных Сама студия 2012 года прекрасно открывается от меня
Где я делаю неправильно? Файл web.config выглядит следующим образом:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.serviceModel>
<services>
<service name="GreetMeWcfServiceLibrary.GreetMeService">
<endpoint address="" binding="basicHttpBinding" contract="GreetMeWcfServiceLibrary.IGreetMeService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>
И я пытался определить службу первой помощью приложения библиотеки WCF службы, а затем пытается организовать с помощью службы WCF.
Кроме того, когда я нажимаю правой кнопкой мыши и выбираю конфигурацию WCF файла web.config, он говорит, что нет службы, но я добавил ссылку на эту DLL-библиотеку службы.
Любая помощь очень ценится :(
Посмотреть http://stackoverflow.com/questions/5385714/deploying-website-500-internal-server-error найти фактическая ошибка. Не – CodeCaster