How to create a WCF service with Mono? -


I have WCF running on Windows I would like to deploy it - or at least test it - SUSE on a development server And mono is going on

After asking about the examples of WCF in Mono on IRC Channel # Nomoy on GMPnet, I have downloaded examples of jelly modules in underwear.

An example does not actually use a web. To make a service bus, the configuration file is received from the service host and makes binding, therefore, manually. Now I want to know, what mono web Config files use or bind me and

Right now, running my service on Mono Development and just (or - do not matter) I get an error I can not recognize:

  In the server error, the '/' application value should be positive integer Description: HTTP 500. Error processing the request. Stack trace: system. Collection Acupuncture: The value must be an integer. System.Xml.XmlDictionaryReaderQuotas.Check (Int32 Value) /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Runtime.Serialization/System.Xml/XmlDictionaryReaderQuotas.cs:94 at [0x0002a] System.Xml.XmlDictionaryReaderQuotas.set_MaxBytesPerRead (Int32 value) in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Runtime.Serialization/System.Xml/XmlDictionaryReaderQuotas.cs:69 [0x00000] on in /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.ServiceModel/System.ServiceModel on System.ServiceModel.Configuration.BasicHttpBindingElement.OnApplyConfiguration [0x00043] (System.ServiceModel.Channels.Binding bond) .Configuration / BasicHttpBindingElement.cs: 214 on System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration (System.ServiceModel.Channels.Binding bond) [0x00030] in /usr/src/packages/BUILD/mono-2.6.4/mcs/class / System Service model / system Service model Configuration / Standard BindingElement.cs: 139 .ServiceModel.Configuration.ConfigUtil.Create binding systems (binding System.String, System.String bindingConfiguration) [0x00063] /usr/src/packages/BUILD/mono-2.6.4/mcs/ System.ServiceModel.ServiceHostBase.ApplyConfiguration () on the System.ServiceModel in class / System.ServiceModel / System.ServiceModel.Configuration / ConfigUtil.cs: 81 [0x00110] /usr/src/packages/BUILD/mono-2.6.4/mcs .ServiceHostBase.InitializeDescription (System.ServiceModel.UriSchemeKeyedCollection baseAddresses) than in /class/System.ServiceModel/System.ServiceModel/ServiceHostBase.cs:320 [0x0001c] /usr/src/packages/BUILD/mono-2.6.4 system In the /mcs/class/System.ServiceModel/System.ServiceModel/ServiceHostBase.cs:368 .ServiceModel.ServiceHost.InitializeDescription (System.Type ServiceType, System.ServiceModel.UriSchemeKeyedCollection baseAddresses ) [0x0001d] /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.ServiceModel/System.ServiceModel/ in ServiceHost.cs: 160 on the system. Sewamodel. ServiceHost..ctor (System.Type serviceType, System.Uri [] baseAddresses) [0x00006] in /usr/src/packages/BUILD/mono-2.6.4/mcs/ on System.ServiceModel.Channels.SvcHttpHandler.EnsureServiceHost Class / System.ServiceModel / System.ServiceModel / ServiceHost.cs: 60 () [0x0007d] in / usr / src / packages / build / mono 2.6.4 / mcs / class / system.ServiceModel / System.ServiceModel.Channels / SvcHttpHandler .cs: ​​System.ServiceModel.Channels.SvcHttpHandler.ProcessRequest on 207 (System.Web.HttpContext Reference) [0x00000] System.Web.HttpApplication + /usr/src/packages/BUILD/mono-2.6.4/ on the lt Mcs / class / System.ServiceModel / System.ServiceModel.Channels / SvcHttpHandler.cs: 150 in; Pipeline & gt; C__Iterator2.MoveNext () [0x00cdf] on System.Web.HttpApplication.Tick at /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web/System.Web/HttpApplication.cs:1362 (in ) [0x00000] /usr/src/packages/BUILD/mono-2.6.4/mcs/class/System.Web/System.Web/HttpApplication.cs:928 Version Information: Mono Runtime Version: 2.6.4 (Tarball Som 5 July 13:53:45 UTC 2010); ASP.NET Version: 2.0.50727.1433  

Any suggestions on what I should do?

Some work has been done on web.config support for WCF in mono in February / March this year , By deciding on this, but it has not been sent yet. You can experiment with (old guide, mono switch to shut down a few days ago), or just manually create bindings. Surely it's easy to do later.


Comments