[Mono-list] WCF basicHttpBinding WSDL NotImplementedException
I'm trying to host a wcf service using basicHttpBinding, but I get the following NotImplementedException when I try to check my service.svc in my browser. I know that wsHttpBinding is not supported, but I thought that basicHttpBinding is implemented. Is this a known issue? Is there a workaround? What is the simplest way to configure wcf basicHttpBinding to avoid this error? Thanks in advance for any help, Dan InternalServiceFaultImplement me for System.Runtime.Serialization.DefaultTypeMapImplement me for System.Runtime.Serialization.DefaultTypeMap at System.Runtime.Serialization.SerializationMap.GetMembers () [0x0] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/SerializationMap.cs:246 at System.Runtime.Serialization.SerializationMap.GetSequence (System.Xml.Schema.XmlSchemaSet schemas, System.Collections.Generic.Dictionary`2 generated_schema_types) [0x0] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/SerializationMap.cs:187 at System.Runtime.Serialization.SerializationMap.GetSchemaType (System.Xml.Schema.XmlSchemaSet schemas, System.Collections.Generic.Dictionary`2 generated_schema_types) [0x00071] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/SerializationMap.cs:156 at System.Runtime.Serialization.CollectionTypeMap.GetSchemaType (System.Xml.Schema.XmlSchemaSet schemas, System.Collections.Generic.Dictionary`2 generated_schema_types) [0x000af] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/SerializationMap.cs:750 at System.Runtime.Serialization.XsdDataContractExporter.Export (System.Type type) [0x00020] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.Runtime.Serialization/System.Runtime.Serialization/XsdDataContractExporter.cs:120 at System.ServiceModel.Description.WsdlExporter.GetSchemaElementForPart (System.ServiceModel.Description.MessagePartDescription part, System.Xml.Schema.XmlSchema schema) [0x00012] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:494 at System.ServiceModel.Description.WsdlExporter.ExportParameters (System.ServiceModel.Description.MessageBodyDescription msgbody, System.String name, System.String ns) [0x000d2] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:434 at System.ServiceModel.Description.WsdlExporter.ExportMessageBodyDescription (System.ServiceModel.Description.MessageBodyDescription msgbody, System.String name, System.String ns) [0x00037] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:380 at System.ServiceModel.Description.WsdlExporter.ExportContractInternal (System.ServiceModel.Description.ContractDescription contract) [0x00155] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:111 at System.ServiceModel.Description.WsdlExporter.ExportEndpoint (System.ServiceModel.Description.ServiceEndpoint endpoint) [0x0] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/WsdlExporter.cs:164 at System.ServiceModel.Description.ServiceMetadataExtension.get_Metadata () [0x00052] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:74 at System.ServiceModel.Description.HttpGetWsdl.GetMetadata () [0x00012] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:326 at System.ServiceModel.Description.HttpGetWsdl.EnsureMetadata () [0xb] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:202 at System.ServiceModel.Description.HttpGetWsdl.Get (System.ServiceModel.Channels.Message req) [0x0] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceMetadataExtension.cs:209 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000ca] in /tmp/rmake/builds/mono/mono-2.6.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:209 System.NotImplementedException ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] TweetSharp Failing
> Please let me know if this is a bug and I'll file a report with a test > case using TweetSharp. The smaller the test case, the better. Please file the most simple program (ideally without a dependency on TweetSharp) that will show the failure on Mono, but success on Windows. miguel ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] WCF Empty Array Bug
Hi, I am using a basicHttpBinding to communicate with an IIS 7 hosted WCF service from a WinForms ported application (running on Mono 2.6.1). If the WCF Service returns an empty array or an object containing an empty array the call results in the following exception: Exception in async operation: System.InvalidOperationException: Failed to set va lue of type System.Collections.ArrayList for property MonoTest.SearchService.DAS earchField[] Fields ---> System.ArgumentException: failed to convert parameters at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invoke Attr, System.Reflection.Binder binder, System.Object[] parameters, System.Global ization.CultureInfo culture) [0x0] in :0 ... The error goes away if I return null instead of the empty array. Is this a known issue? Is there a fix/workaround - I have over 10 WCF Service projects each with 20+ methods returning arrays which could be empty. -- View this message in context: http://n4.nabble.com/WCF-Empty-Array-Bug-tp1576794p1576794.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Where to start?
You might also run your app through MoMA: http://www.mono-project.com/MoMA Stifu wrote: > Hello, > > Yes, 100% managed code should run on Mono (if not, it's a bug in Mono). > For the record, the WinForms implementation of Mono has some rough edges, > but it's slowly getting better (bug reports and patches are welcome). > > Yes, you can just copy the exe and run it with Mono. You can try it on > Windows, too. Install Mono for Windows, run the Mono command prompt, go to > your application folder, and type "mono yourapp.exe". It's basically the > same on Linux, but I prefer to add Mono to the explorer context menu, so I > can just right click the exe and choose to run it with Mono. > > > Ben K wrote: >> I have some basic questions on how to get my program running on Mono.My >> Windows Forms .NET application uses 1000managed code, no use of InterOp >> classes. Is this a good candidate to run on Mono?How do I run on Mono? >> Can I just copy the portable executable generated by Visual Studio onto a >> Mono host and it will run?Thanks. >> > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Where to start?
Hello, Yes, 100% managed code should run on Mono (if not, it's a bug in Mono). For the record, the WinForms implementation of Mono has some rough edges, but it's slowly getting better (bug reports and patches are welcome). Yes, you can just copy the exe and run it with Mono. You can try it on Windows, too. Install Mono for Windows, run the Mono command prompt, go to your application folder, and type "mono yourapp.exe". It's basically the same on Linux, but I prefer to add Mono to the explorer context menu, so I can just right click the exe and choose to run it with Mono. Ben K wrote: > > I have some basic questions on how to get my program running on Mono.My > Windows Forms .NET application uses 1000managed code, no use of InterOp > classes. Is this a good candidate to run on Mono?How do I run on Mono? > Can I just copy the portable executable generated by Visual Studio onto a > Mono host and it will run?Thanks. > -- View this message in context: http://n4.nabble.com/Where-to-start-tp1576576p1576639.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono Embedded
Diego, that is big! Thank you for the correction! Cos From: Diego Frata Sent: Wednesday, March 03, 2010 8:12 AM To: Costantino Pipero Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] Mono Embedded Constantino, They announced the removal of the per unit fee from the runtime distribution licenses and the fees for the porting kit with the last release. Diego Frata diego.fr...@gmail.com On Wed, Mar 3, 2010 at 9:27 AM, Costantino Pipero wrote: Well, it is open source but you'll have to pay a runtime fee for each device you run it on (and if you buy a pre-installed device, the fee is included in the price)... Cos From: Diego Frata Sent: Tuesday, March 02, 2010 8:12 PM To: madrang Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] Mono Embedded It's open source: Apache 2.0 And they accept contributions, take a look at the front page :) Diego Frata diego.fr...@gmail.com On Tue, Mar 2, 2010 at 10:10 PM, madrang wrote: Wow, Thanks i didnt knew about this. im gonna look at it as soon as im gonna have some spare time. But i still think that having an open source choice would be nice :-D -- View this message in context: http://n4.nabble.com/Mono-Embedded-tp1575923p1575951.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list -- ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono Embedded
Constantino, They announced the removal of the per unit fee from the runtime distribution licenses and the fees for the porting kit with the last release. Diego Frata diego.fr...@gmail.com On Wed, Mar 3, 2010 at 9:27 AM, Costantino Pipero wrote: > Well, it is open source but you'll have to pay a runtime fee for each > device you run it on (and if you buy a pre-installed device, the fee is > included in the price)... > > Cos > > *From:* Diego Frata > *Sent:* Tuesday, March 02, 2010 8:12 PM > *To:* madrang > *Cc:* mono-list@lists.ximian.com > *Subject:* Re: [Mono-list] Mono Embedded > > It's open source: Apache 2.0 > And they accept contributions, take a look at the front page :) > > > Diego Frata > diego.fr...@gmail.com > > > On Tue, Mar 2, 2010 at 10:10 PM, madrang wrote: > >> >> Wow, Thanks i didnt knew about this. im gonna look at it as soon as im >> gonna >> have some spare time. But i still think that having an open source choice >> would be nice :-D >> -- >> View this message in context: >> http://n4.nabble.com/Mono-Embedded-tp1575923p1575951.html >> Sent from the Mono - General mailing list archive at Nabble.com. >> ___ >> Mono-list maillist - Mono-list@lists.ximian.com >> http://lists.ximian.com/mailman/listinfo/mono-list >> > > -- > > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list > > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Mono Embedded
Well, it is open source but you'll have to pay a runtime fee for each device you run it on (and if you buy a pre-installed device, the fee is included in the price)... Cos From: Diego Frata Sent: Tuesday, March 02, 2010 8:12 PM To: madrang Cc: mono-list@lists.ximian.com Subject: Re: [Mono-list] Mono Embedded It's open source: Apache 2.0 And they accept contributions, take a look at the front page :) Diego Frata diego.fr...@gmail.com On Tue, Mar 2, 2010 at 10:10 PM, madrang wrote: Wow, Thanks i didnt knew about this. im gonna look at it as soon as im gonna have some spare time. But i still think that having an open source choice would be nice :-D -- View this message in context: http://n4.nabble.com/Mono-Embedded-tp1575923p1575951.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] TweetSharp Failing
Hello again. This is looking like a Mono bug to me. If I edit TweetSharp's source code to manually set the network credentials like this (at Ln 146, BasicAuthWebQuery.cs): var creds = new NetworkCredential(_username, _password); var credCache = new CredentialCache(); var host = request.RequestUri.Scheme + Uri.SchemeDelimiter + request.RequestUri.Host; credCache.Add(new Uri(host), "Basic", creds); request.Credentials = credCache; then it will work. TweetSharp relies on HttpWebRequest. I've had a look through Mono's System.Net/HttpWebRequest.cs source and it appears to me that it drops the "Authorization" header. This header is what TweetSharp uses to send along authorization to api.twitter.com and works with Microsoft .Net. Please let me know if this is a bug and I'll file a report with a test case using TweetSharp. Thanks. -Abe On Wed, Feb 17, 2010 at 3:02 PM, Abe Gillespie wrote: > Hi, > > I'm doing something like this: > > var result = FluentTwitter > .CreateRequest() > .AuthenticateAs("sender", "password") > .DirectMessages() > .Send("receiver", "tweet tweet") > .AsJson() > .Request(); > > On Windows this succeeds. On Mono (Mac & Linux) I'm getting an > exception with "401 Unauthorized" in the description. Now I've used > certmgr to install the certs at https://api.twitter.com and > https://www.twitter.com for both the local user store and the machine > store. But I'm still getting the error. > > This certainly might be a TweetSharp question, but using the > TweetSharp source I've traced the failure down to a single WebRequest > call. > > Any ideas on this? > > Thanks. > -Abe > ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list