I have create wcf site it's work on iis but whent im uploading on server it's give an error like -
The type 'Service', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found
Config file as below -
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"></httpErrors>
<asp scriptErrorSentToBrowser="true"></asp>
<validation validateIntegratedModeConfiguration="false"/>
<directoryBrowse enabled="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off" defaultRedirect="Service.svc">
<error statusCode="404" redirect="Service.svc"/>
</customErrors>
<trust level="Full"/>
<compilation debug="true" targetFramework="4.0">
</compilation>
</system.web>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="True" multipleSiteBindingsEnabled="True"></serviceHostingEnvironment>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Service.svc file as -
<%@ ServiceHost Language="C#" Debug="true" Service="Service" CodeBehind="http~/App_Code/Service.cs" %>
plz help me. Thanks.