Skip to main content

Microsoft Silverlight

Answered Question Host a WCF service on apacheRSS Feed

(0)

aquaseal
aquaseal

Member

Member

36 points

11 Posts

Host a WCF service on apache

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?

mattserbinski.com

Sergey.Lutay
Sergey.L...

Contributor

Contributor

7198 points

1,340 Posts

Answered Question

Re: Host a WCF service on apache

Hi, 

As I know, You can't host wcf service at apache server.

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Blog

Twitter

Sincerely,
Sergey Lutay
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities