Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Hosting WCF Service in IIS using Jun CTS

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 07-11-2006   #1 (permalink)
=?Utf-8?B?TWFoZXNo?=
Guest


 

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 SpecsSystem Spec
Old 07-11-2006   #2 (permalink)
=?Utf-8?B?TWFoZXNo?=
Guest


 

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 SpecsSystem Spec
Old 07-11-2006   #3 (permalink)
=?Utf-8?B?TWFoZXNo?=
Guest


 

RE: Hosting WCF Service in IIS using Jun CTP



"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 SpecsSystem Spec
Old 07-14-2006   #4 (permalink)
=?Utf-8?B?QW5pbGt1bWFyIFZL?=
Guest


 

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 SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging onto a hosting service cpanel with vista...HUH!??!?! won't kathidden Vista General 1 02-09-2007 05:01 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51