Skip to main content
Home Forums General Silverlight Hosting and Streaming Host a WCF service on apache
1 replies. Latest Post by Sergey.Lutay on October 15, 2008.
(0)
aquaseal
Member
36 points
11 Posts
10-15-2008 8:28 AM |
I am running into trouble trying to upload a WCF service to my apache server. The service that I create works fine on localhost and when I try to upload all of the files needed (config files, .svc file, other needed files) and browse to my service (.svc file) I receive the following in plain text:
<%@ ServiceHost Language="C#" Debug="true" Service="ServiceTest" CodeBehind="~/App_Code/ServiceTest.cs" %>
Also, when I try to use visual studio to add a reference to my service that I have uploaded to my server I receive the following:
The document at the url foo/ServiceTest.svc was not recognized as a known document type.
Is there something I need to setup on my apache server to host WCF services? I do not know what the MIME type is for extension .svc or .aspx /.asmx.
I am trying to write a silverlight application that will dynamically populate pictures that are on my server. This is why a WCF service is needed so the silverlight client can request all of the pictures on my server since the client cannot directly access the image files. I am able to host silverlight content on my site just fine.
Also, when I try to use visual studio to publish a website or service project I am told that I do not have front page extensions installed. I did install those extensions and it does not seem to fix that problem. Anyone know what files are needed on a server for a WCF service to actually run?
Sergey.L...
Contributor
7198 points
1,340 Posts
10-15-2008 9:22 AM |
Hi,
As I know, You can't host wcf service at apache server.