none
Problem in associating end point

    Question

  • Hi

    I have created a domain service class inside the web application. Inside the web.config file I have added the JSON end point.

    [code]

     <configSections>
        <sectionGroup name="system.serviceModel">
          <section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowDefinition="MachineToApplication" requirePermission="false" />
        </sectionGroup>
      </configSections>

    <system.serviceModel>
        <domainServices>
          <endpoints>
            <add name="json" type="Microsoft.ServiceModel.DomainService.Hosting.JsonEndpointFactory, Microsoft.ServiceModel.DomainService.Hosting" />
          </endpoints>
        </domainServices>   
      </system.serviceModel>

    [/code]

    The name of my web project is ComplexTypeDemo.Web and name of the domain service domainservice1.cs.

    Now I trying to access the method like this

    http://localhost:57552/ComplexTypeDemo-Web-DomainService1.svc/json/GetBooks

    Am I missing something?

    Monday, March 12, 2012 3:29 AM

Answers