JSON WCF Service 404 on deployment server
I'm trying to deploy a WCF Service to my server, it works just the way I want it to locally. But on the server I get a 404 message.

This is what it looks like when I call my test method locally:

[Image of the wanted result][1]


When I deploy it I can still successfully browse to:
 
www.my domain name.com/Service1.svc

but when I go to: 

www.my domain name.com/Service1.svc/test

I get a 404 error. What could be causing this?
This is all relevant code:

**IService1.cs**

    namespace HighscoreWebService
    {
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        [WebGet(UriTemplate = "Test",
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare)]
        string Test();
    }
    }



**Service1.svc.cs**

    namespace HighscoreWebService
    {
    public class Service1 : IService1
    {
        public string Test()
        {
            return "Hello world!";
        }
    }
    }



**Part of Web.config**

    <system.serviceModel>
    <services>
      <service name="HighscoreWebService.Service1"
               behaviorConfiguration="jsonRestDefault">
        <host>
          <baseAddresses>
            <add baseAddress="http://www.larger.se/Service1"/>
          </baseAddresses>
        </host>
        <endpoint name="jsonRestEndpoint"
                  behaviorConfiguration="RESTFriendly"
                  binding="webHttpBinding"
                  contract="HighscoreWebService.IService1">
        </endpoint>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="jsonRestDefault">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="RESTFriendly">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>


I suspect I made something wrong in the web.config. I'm very new to asp.net so it's possible I made any number of beginner mistakes. But because this works locally it could be  something wrong with the configuration of the server I guess. Or something in the web.config I need to do to adapt to the server configuration.

Thank you for reading this.


  [1]: http://i.stack.imgur.com/qAspj.png
JSON WCF Service 404 on deployment server
===

I'm trying to deploy a WCF Service to my server, it works just the way I want it to locally. But on the server I get a 404 message.

This is what it looks like when I call my test method locally:

[Image of the wanted result][1]


When I deploy it I can still successfully browse to:
 
www.my domain name.com/Service1.svc

but when I go to: 

www.my domain name.com/Service1.svc/test

I get a 404 error. What could be causing this?
This is all relevant code:

**IService1.cs**

    namespace HighscoreWebService
    {
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        [WebGet(UriTemplate = "Test",
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Bare)]
        string Test();
    }
    }



**Service1.svc.cs**

    namespace HighscoreWebService
    {
    public class Service1 : IService1
    {
        public string Test()
        {
            return "Hello world!";
        }
    }
    }



**Part of Web.config**

    <system.serviceModel>
    <services>
      <service name="HighscoreWebService.Service1"
               behaviorConfiguration="jsonRestDefault">
        <host>
          <baseAddresses>
            <add baseAddress="http://www.larger.se/Service1"/>
          </baseAddresses>
        </host>
        <endpoint name="jsonRestEndpoint"
                  behaviorConfiguration="RESTFriendly"
                  binding="webHttpBinding"
                  contract="HighscoreWebService.IService1">
        </endpoint>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="jsonRestDefault">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="RESTFriendly">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>


I suspect I made something wrong in the web.config. I'm very new to asp.net so it's possible I made any number of beginner mistakes. But because this works locally it could be  something wrong with the configuration of the server I guess. Or something in the web.config I need to do to adapt to the server configuration.

Thank you for reading this.


  [1]: http://i.stack.imgur.com/qAspj.png