TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

MSNPSharp - Won't work on Mono... Suggested tweaks? #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile MSNPSharp on Monodevelop (or manually via gmcs)
2. Launch the example project (you might need to edit the Resources.resx to
fix path problems with images).
3. Try to connect to a MSN account.   The certificate/trusts fail.

What is the expected output? What do you see instead?
It should behave just like the Windows build.

What version of the product are you using? On what operating system?
Linux

Please provide any additional information below.

Mono doesn't implement the full WSS security model.  I'm thinking that's
what's happening here.  Is there some overrides I can do (such as setting
up an untrusted connection) to get MSNPSharp to work with the Mono.NET
framework?

Original issue reported on code.google.com by christoofar@gmail.com on 6 Aug 2008 at 8:46

GoogleCodeExporter commented 9 years ago
Hi,

Could you checkout r387? I hope this helps. Please inform me. Thanks for the 
report.

Original comment by hepha...@gmail.com on 7 Aug 2008 at 9:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Nope.   Bombs straight away when trying to call the web services.   Here is the
stack:

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has 
been
thrown by the target of an invocation. ---> System.TypeInitializationException: 
An
exception was thrown by the type initializer for MSNPSharp.MSNService --->
System.NotImplementedException: The requested feature is not implemented.
  at System.Net.ServicePointManager.set_ServerCertificateValidationCallback
(System.Net.Security.RemoteCertificateValidationCallback value) [0x00000] in
/usr/src/packages/BUILD/mono-1.9.1/mcs/class/System/System.Net/ServicePointManag
er.cs
  at MSNPSharp.MSNService..cctor () [0x0000e] in /home/csawyer/Projects/msnp-sharp-
trace ---

  at MSNPSharp.ContactService..ctor () [0x00047] in /home/csawyer/Projects/msnp-
  at MSNPSharp.ContactService..ctor (MSNPSharp.NSMessageHandler nsHandler) [0x00000]
in /home/csawyer/Projects/msnp-sharp-read-only/MSNP-
  at MSNPSharp.NSMessageHandler..ctor () [0x000c5] in /home/csawyer/Projects/msnp-
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[])
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x0003f] in
/usr/src/packages/BUILD/mono-1.9.1/mcs/class/corlib/System.Reflection/MonoMethod
.cs:4

  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00064] in
/usr/src/packages/BUILD/mono-1.9.1/mcs/class/corlib/System.Reflection/MonoMethod
.cs:4
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in
/usr/src/packages/BUILD/mono-1.9.1/mcs/class/corlib/System.Reflection/MonoMethod
.cs:4
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x0000e]
in
/usr/src/packages/BUILD/mono-1.9.1/mcs/class/corlib/System.Reflection/Constructo
rInfo
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00083]
in /usr/src/packages/BUILD/mono-1.9.1/mcs/class/corlib/System/Activator.cs:311 
  at MSNPSharp.Core.Factory.CreateNameserverHandler () [0x00000] in
/home/csawyer/Projects/msnp-sharp-read-only/MSNP-
  at MSNPSharp.Messenger..ctor () [0x00056] in /home/csawyer/Projects/msnp-sharp-
  at MSNPSharpClient.ClientForm..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) MSNPSharpClient.ClientForm:.ctor ()
  at MSNPSharpClient.ClientForm.Main () [0x0000b] in /home/csawyer/Projects/msnp-

The application was terminated by a signal: SIGHUP

Original comment by christoofar@gmail.com on 7 Aug 2008 at 6:02

GoogleCodeExporter commented 9 years ago
Hmm, mono doesn't implement ServerCertificateValidationCallback.

Mono still uses obsoloted ServicePointManager.CertificatePolicy. I fixed it. 
Please
checkout r389. If the problem still exists inform me. 

Thanks.

Original comment by hepha...@gmail.com on 8 Aug 2008 at 9:39

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 9 Aug 2008 at 10:27

GoogleCodeExporter commented 9 years ago
Just updated to branch MSNPSHARP_25_STABLE revision 554.

I confirm this working in Mono 2.0.1.

Original comment by goo...@alishomepage.com on 24 Nov 2008 at 7:28