473,378 Members | 1,347 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,378 software developers and data experts.

WCF error- The XML page cannot be displayed

Hello friends,

I am new to WCF. Now working with a learning example. My environment is VS2008, .Net framework 3.5, Hosted in Windows sever 2003 R2.

The following code i have in a Service.svc file-
Expand|Select|Wrap|Line Numbers
  1. <% @ServiceHost Language=C# Debug="true" Service="MyWCFService" CodeBehind="~/App_Code/Service.cs" %>

But when i test it in browser, browser returns an error with the following lines-

The XML page cannot be displayed

A name was started with an invalid character. Error processing resource "http://localhost/WCFServiceDemo/Service.svc". Error on line 1 at column 2:

I could not find the error.

Any help is appreciable.

SKPaul
Aug 7 '11 #1
1 2086
Where is this example from? I'd check that you have spaces in the right place, it's one of the most common mistakes.
Aug 7 '11 #2

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

Similar topics

5
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
1
by: VB Programmer | last post by:
I am setting up a intranet webserver that will run my ASP.NET website. (Everything works fine locally.) When I try accessing an aspx page, via IE, it gives me the "Page cannot be displayed" error,...
0
by: Mark Phanides | last post by:
My ASP.NET application intermittantly (but always at same point) redirects to the 'Invalid Syntax Error' web page for some unknown reason. I've created a ASP.NET application written in VB.NET with...
1
by: aben | last post by:
Hello all, I am using the following microsoft article to try and learn more about SSL: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315588 I have a virtual directory that I have...
0
by: David Bartosik - MS MVP | last post by:
I have a web service consumer in asp.net with the web config file set with a custom error page and the remote only setting. Most the time if an error occurs the custom error page is displayed. ...
2
by: cmt | last post by:
Greetings! I have an asp page that writes out a URL that points to files on a network drive. It has been working fine up until a week ago. I haven't made any changes to the server or code, so...
10
by: chater buster | last post by:
Dear Techies Im facing a strange problem. my application is available locally but NOT on LAN My asp.net application is in C:\Inetpub\wwwroot and it has full permission for IUSER_MYSYSNAME ...
1
by: Olivierp | last post by:
Hi folks, I've been scratching my head for the past hours regarding the GD function imagecreatefrompng. I had this script working on my test server: header("Cache-Control: no-cache,...
0
by: ariev hidayat | last post by:
i have some problem when i try to install coreldraw x5 the license agreement not showed. the display said: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.