|
RE: Hosting WCF Service in IIS using Jun CTS
"Mahesh" wrote:
> Dear All,
> I am trying to host WCF Service in IIS.
> It is a simple MathService My Web.Config file is as below :
>
> <configuration>
> <system.serviceModel>
> <services>
> <service name ="TheMathService.MathClass,TheMathService">
> <endpoint address =""
> binding ="basicHttpBinding"
> contract="TheMathService.IMath,TheMathService"/>
> </service>
> </services>
> </system.serviceModel>
> <system.web>
>
> <compilation debug="true" />
>
> </system.web>
> </configuration>
>
> now when I view the service in browser with following link
>
> http://localhost/MyVd/Service.svc
>
> I get the following error
>
> Service 'TheMathService.MathClass' has zero application (non-infrastructure)
> endpoints. This might be because no configuration file was found for your
> application, or because no service element matching the service name could be
> found in the configuration file, or because no endpoints were defined in the
> service element.
>
>
> If anybody has the solution please let me know.
>
> REgards
> Mahesh
> |