![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Hosting WCF Service in IIS using Jun CTS 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 |
My System Specs![]() |
| | #2 (permalink) |
| | 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 > |
My System Specs![]() |
| | #3 (permalink) |
| | RE: Hosting WCF Service in IIS using Jun CTS Hi Mahesh, 1. Build your WCF service class library project into the \WCFServiceProj\bin folder. 2. In IIS, point to the \WCFServiceProj folder and create the virtual directory. 3. Give Execute permission to this Virtual Dir. 4. Add the .svc dile in the \WCFServiceProj folder with the foll. code. <%@ServiceHost language=c# Debug="true" Service="NameSpace.ServiceClassName" %> <%@Assembly Name="AssemblyName" %> You should be able to view the service test screen, assuming that the attributes and namespaces used are as per the Beta 2 changes. Anil "Mahesh" wrote: > > > "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 > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| top web hosting service hosting reviews rank | Virtual Server | |||