473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

WCF Service not working

Bob Ross
119 100+
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
4 1384
radcaesar
759 Expert 512MB
Whats the exact exception you got ?
Apr 26 '07 #2
Bob Ross
119 100+
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
759 Expert 512MB
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
Hello,

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

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

Similar topics

5
by: | last post by:
Hi, I have a Windows Service that uses a referenced dotnet-dll. In my dll I set some public string to a stringvalue that I get from reading a xml-file(my config file). It works fine if I use it...
3
by: mailme.faisal | last post by:
I have created a service that create a process. The service is running in local system account & it also create the new process in system account. In process i have to access network resource ....
6
by: Chakkaradeep | last post by:
hi all, I have written a C# Service which is a Server accepting Clients,It is working fine when i connect from localhost but when i connect from any other machine to my machine , the service is...
5
by: Mark Rae | last post by:
Hi, I'm looking for advice concerning what to do if a Windows service does not find a "viable" working environment at startup. E.g. I have a Windows service which does the following: 1)...
10
by: JLuis Estrada | last post by:
Hi there Its my 1st post in this group and I hope we could have a great time. well, this is my problem I was debbuging my app (a website) and the system get stuck and I had to reboot the...
4
by: Jason Richmeier | last post by:
I am sure this has been asked at least once before but I could not find anything when searching. If I set the value of the ExitCode property to 1066 for a windows service, the text "A service...
1
by: Sandy | last post by:
HI All, I'm a newbe to ATL. I got stucked with a problem, I have a ATL service exe created sometime back in 1998 using VC++ 6.0 ( or older) which works as expected in Windows NT, I dont have all...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
5
by: Oriane | last post by:
Hi, I have a .Net Visual Studio solution with one asp.net Web application, which uses a Asp.Net Web service. Both are compiled in debug mode, and both are using the Studio development web server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.