Sunday, 1 February 2015

Wcf service Failed to invoke the service



I have Failed to invoke the service Error.


Idk what's the problem is. but Always when i run the wcf and invoke on my categorielijst() i get failed to invoke the service.


Someone knows the problem ?


my full wcf app



<?xml version="1.0" encoding="utf-8"?>
<configuration>

<configSections>
<!-- For more information on Entity Framework configuration, visit http://ift.tt/1eigFsq -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="SpionshopEntities" connectionString="metadata=http://res*/Spionshop.csdl|res*/Spionshop.ssdl|res*/Spionshop.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\sqlexpress;initial catalog=Spionshop;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="WcfServiceLib.CategorieService" >
<endpoint address="soap" binding="basicHttpBinding" contract="WcfServiceLib.ICategorieService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="" binding="webHttpBinding" contract="WcfServiceLib.ICategorieService" behaviorConfiguration="restfulbehavior">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8733/Design_Time_Addresses/WcfServiceLib/CategorieService/" />
</baseAddresses>
</host>
</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="True" />
</behavior>
</serviceBehaviors>

<!--Behavior voor REst toegevoegd, in WCF spreken we van WebHttp-->
<endpointBehaviors>
<behavior name="restfulbehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>

No comments:

Post a Comment