-
How Can I Host a WCF Service in IIS successfully?
Hi,
Hope your projects are coming off as planned so far. Well I have some issues with hosting a WCF service in IIS. The service was developed in VS2005(C#), and worked well when i hosted it in a console application(both on Win Vista and WinXP platforms). However when i tried hosting it in IIS, I had issues. First of all there was no Template for Service.svc files so i had to do with a notepad file(*.txt) save with a *.svc extension, after typing this in:
<%@ServiceHost Service=”DerivativesCalculator.DerivativesCalculatorServiceType” %>
Then I created a virtual directory and did the other stuff on IIS manager but came up with this error in my Mozilla browser.
And the following error from IE8
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/DerivativesCalculatorService/Serv...
<%@ServiceHost Service=
-^
And finally i got this from Google Chrome browser:
This page contains the following errors:
error on line 1 at column 2: StartTag: invalid element name
Below is a rendering of the page up to the first error.
I need some help on this guys. I know the answer is out there somewhere. Thanks.
Charles.
Similar Threads
-
By eriveraa in forum ASP.NET
Replies: 1
Last Post: 06-17-2008, 10:52 PM
-
Replies: 2
Last Post: 04-18-2007, 02:34 AM
-
By (MC3)RaVeN in forum Java
Replies: 0
Last Post: 03-02-2007, 09:30 AM
-
Replies: 25
Last Post: 01-23-2002, 06:19 AM
-
By st_michael in forum ASP.NET
Replies: 1
Last Post: 09-22-2000, 04:29 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks