Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi everyone
i wrote a wcf service(SVC)
when i run my service in my computer it works without any problems
bu when i upload my service in my host it has Not Found Error
Where is my problem
my service link

my Service web.config :
XML
<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpGetEnabled="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>
    <services>
      <service name="Chat_Server.Service_Chat">
        <endpoint binding="wsDualHttpBinding" bindingConfiguration="DuplexBinding" contract="Chat_Server.IService_Chat" />
      </service>
    </services>
    <bindings>
      <wsDualHttpBinding>
        <binding name="DuplexBinding">
        </binding>
      </wsDualHttpBinding>
    </bindings>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
  </system.webServer>
</configuration>


thank you
Posted

1 solution

Hi,

Take a look at the error message, it's a known issue, try this:

The page you are requesting cannot be served because of the extension configuration[^]

Hope it helps
 
Share this answer
 
Comments
_Zorro_ 11-Feb-13 9:47am    
It seems to me that your IIS is not properly configured to host svc extensions. Just read the error: "The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map."

-> "If the page is a script, add a handler"

Take a look at your Handler Mappings (in IIS) and look at .svc extensions. If you find some, check if they're enabled. Otherwise, that would mean that wcf if not properly installed on your web server and needs to be re activated.
Sina asefi 11-Feb-13 10:43am    
thank you it's right

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900