By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,965 Members | 2,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,965 IT Pros & Developers. It's quick & easy.

WCF Service not working

Bob Ross
100+
P: 119
I am trying to test out soem stuff with a WCF web service.
The service works fine if I open it as a project in Visual Studio and click run.
If I open it as a website (by selecting it in the local iis) I get this

Expand|Select|Wrap|Line Numbers
  1. <% @ServiceHost Language=VB Debug="true" Service="SqlDataService" CodeBehind="~/App_Code/Service.vb" %>
every time! I get the same thing if I try to navigate to the site in the browser.
I have juts set it up as a vistrual directory like any other in IIS.

Is there something else I need to do or change?

All the examples I can find online just run the project through VS which is useless if you actually want to use the service.
Apr 26 '07 #1
Share this Question
Share on Google+
4 Replies


radcaesar
Expert 100+
P: 759
Whats the exact exception you got ?
Apr 26 '07 #2

Bob Ross
100+
P: 119
no exception it simply ouputs the contents of the svc file as shwon above.
I have done more research and I think it is because I am running windows xp.
Can you host a WCF service in IIS 5.1?
I know you can build your own app to run the service but this seem very complicated.

Also can you run a WCF service in windows 2000?
Apr 26 '07 #3

radcaesar
Expert 100+
P: 759
Since you are only consuming, you can. The line it shows is the Entry point of your service consumption. Just debug and see what had happens.

Have you added the Conf settings of service in the .config file ?

:)
Apr 26 '07 #4

P: 1
Hello,

I am got the same problem. It just print the contents from .svc file.
Apr 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.