Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6151395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:45:49+00:00 2026-05-23T19:45:49+00:00

I am currently making a WCF service and while I was developing the service

  • 0

I am currently making a WCF service and while I was developing the service acted like it should (Using Visual Studio Web Expres). I have a silverlight application who is consuming the service.

I wrote the WCF service in a class Library and is implemented by a ASP.NET Web Application. While I was using the Visual Studio ASP.NET Development Server the service was happy and gave me everything I asked for.

Now I implemented the service on an IIS 7 Server. And the service doesnt return what I ask for anymore. Instead in Chrome I get the following message:
The error through Chrome

But If I surf to the service url then the service say’s it is ready to rock and roll:
if I surf to the service

As you can see in the Error I get from Chrome is that the text the service returns is the Source code from that “surf to” page.

My Web.config service model:

<system.serviceModel>
      <bindings>
        <basicHttpBinding>
          <binding name="basicHttpBinding_OnlineCreatorServiceContract" closeTimeout="00:01:00"
                   openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                   maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
                   maxReceivedMessageSize="2147483647">
            <readerQuotas maxDepth="2147483647"
                          maxStringContentLength="2147483647"
                          maxArrayLength="2147483647"
                          maxBytesPerRead="2147483647"
                          maxNameTableCharCount="2147483647" />
            <security mode="None" />
          </binding>

        </basicHttpBinding>
      </bindings>
      <services>
        <service behaviorConfiguration="OnlineCreatorServiceBehavior"
          name="OnlineCreator.ServiceLibrary.OrderDataService">
          <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_OnlineCreatorServiceContract"
            name="basicHttpBinding" contract="OnlineCreator.ServiceLibrary.IOrderDataService" />
          <endpoint address="mex" binding="mexHttpBinding" name="mexHttpBinding"
            contract="IMetadataExchange" />
        </service>
      </services>
        <behaviors>
            <endpointBehaviors>
                <behavior name="OnlineCreator.Web.OnlineCreatorServiceAspNetAjaxBehavior">
                    <enableWebScript />
                </behavior>
            </endpointBehaviors>
            <serviceBehaviors>
                <behavior name="OnlineCreatorServiceBehavior">
                    <serviceMetadata httpGetEnabled="true" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    </system.serviceModel>

And my ServiceReferences.ClientConfig:

<configuration>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="basicHttpBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
                    <security mode="None" />
                </binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://subdomain.domain.com/mapWithServiceInIt/OnlineCreatorService.svc"
                binding="basicHttpBinding" bindingConfiguration="basicHttpBinding"
                contract="OnlineCreatorService.IOrderDataService" name="basicHttpBinding" />
        </client>
    </system.serviceModel>
</configuration>

Because my service is on a subdomain I have used to following ClientAccessPolicy.xml:

<?xml version="1.0" encoding="utf-8" ?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*"> 
        <domain uri="*"/> 
      </allow-from> 
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

As you can see this can’t be the problem, but for completeness sake I have putted it here.

This is my first WCF service and it worked perfectly till I putted it on the IIS server. Does anyone has a clue why I get this error and how to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:45:49+00:00Added an answer on May 23, 2026 at 7:45 pm

    After I have dug deeper in WCF and IIS I found out that you need to activate WCF on the server. And that is quite the process. To do it right I cleared my current site on IIS to have a fresh start and then followed to following pages to get the WCF to work:

    http://blah.winsmarts.com/2008-4-Host_a_WCF_Service_in_IIS_7_-and-amp;_Windows_2008_-_The_right_way.aspx
    http://msdn.microsoft.com/en-us/library/ms751527.aspx
    http://blogs.msdn.com/b/blambert/archive/2009/02/13/enable-iis.aspx
    http://edinkapic.blogspot.com/2009/02/talking-to-wcf-service-from-silverlight.html

    I made a very simpel HelloWorld service to test everything and as soon as it all worked I ported it to my service. That first gave me an exception. But that was soon fixed because the connection strings weren’t set right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a web api using WCF web api preview 6, currently I'm stuck
I'm working on a traditional ASP.NET application making WCF service calls. Should I put
i am making wcf rest service using linq. i wanna use stored procedure to
Say I have a web project which uses a WCF service for behind-the-scenes processing,
We currently have developed an application using WCF. Our clients make connections to different
I'm currently updating a client application that makes use of a WCF web service
I'm currently making an iphone web app based on Google App Engine (python). I
I have a question about tables in MySQL. I'm currently making a website where
I'm currently having difficulty finding a way of making my loops work. I have
currently making a SOAP request using Java's SOAPConnectionFactory and SOAPConnection 's .call() method, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.