[Mono-aspnet-list] Needing a little help to get started hosting WCF on Mono 2.6.4 with Apache

Robert Jordan robertj at gmx.net
Wed Jul 14 04:48:45 EDT 2010


On 14.07.2010 05:34, Jan van der watt wrote:
> Hi,
>
> I've completed the calculator exampled of Getting Started with WCF
> guide<http://msdn.microsoft.com/en-us/library/ms734712.aspx>on MSDN
> and would now like to try this on Mono to benefit from the new
> binary serialisation of DataSets which is, to my knowledge, not available
> over SOAP of the old .NET remoting - which is actually my REAL issue.

You could resort to string serialization of DataSets (DataSet.GetXml()).

> Everything goes well until I try to use the "calculator.svc" service simply
> by browing to it http://mytestserver/Calculator.svc, when I get the SOURCE
> CODE in the file, instead of the service.

This is probably caused by a missing

	AddType application/x-asp-net .svc

in your mod_mono configuration.

> I've posted the following (and they are basically the files you get when you
> start a new WFC service project in VS 2010):
>
> web.config: http://pastebin.com/eu4RK5wV

Your web.config lacking the C# 3.0 configuration (and ASP.NET 3.5
for that matter).

See http://www.4guysfromrolla.com/articles/121207-1.aspx.

Robert



More information about the Mono-aspnet-list mailing list