Tag: mono

System.IO.FileNotFoundException:无法在Mono for Android中加载程序集System.Web

我正在使用Xamarin构建一个使用SkyDrive .Net API客户端的Android应用程序,但是当我在模拟器上运行我的Android应用程序时遇到以下错误 Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly ‘System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Perhaps it doesn’t exist in the Mono for Android profile? File name: ‘System.Web.dll’ at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters) [0x00000] in :0 at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in :0 at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences (System.Collections.Generic.List`1 assemblies, Mono.Cecil.AssemblyDefinition assembly, Boolean topLevel) [0x00000] […]

GTK +(GTKSharp)在Windows中表现不佳

在我的Mono(C#)项目中,我将使用GTK作为UI。 然而,我注意到的一件事是,在我的Archlinux上网本中,性能非常快,因此鼠标hover和重绘小部件等事件真的很快。 与双核CPU上的windows(7)相比,性能确实很弱。 这困扰我。 我是否做错了保证操作系统之间的性能差异? 有什么方法可以在Windows上优化GTK? 对于hover事件来说,花费大约0.5秒的时间来开启它是非常糟糕的,而它几乎立即用于Linux上的弱(上)上网本。 我的代码在这里用于GUI层: http : //code.google.com/p/subsynct/source/browse/branches/dev/subsync#subsync/GUI 谢谢!

从服务器xamarin.android收到的证书无效

所以这让我疯狂了一天。 我正在尝试与xamarin.android上的REST API交谈但由于某种原因我收到此错误: InnerException {Mono.Security.Protocol.Tls.TlsException:从服务器收到的证书无效。 错误代码:0xoffffffff.Handshake.Client.TlsServerCertificate.RemoteValidation(Mono.Security.Protocol.Tls.ClientContext上下文,AlertDescription描述)[0x00000]中的错误代码:0xffffffff800b010a:0:Mono.Security.Protocol.Tls。 Handshake.Client.TlsServerCertificate.validateCertificates(Mono.Security.X509.X509CertificateCollection证书)[0x00000] in:0 at Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1()[0x00000] in:0 at Mono。 Security.Protocol.Tls.Handshake.HandshakeMessage.Process()[0x00000] in:0 at Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage(Mono.Security.Protocol.Tls.TlsStream handMsg)[0x00000] in:0 at Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback(IAsyncResult asyncResult)[0x00000] in:0} Mono.Security.Protocol.Tls.TlsException 经过一些研究后,我发现这与我正在谈论的服务器丢失的证书有关(如果我错了,请纠正我)。 所以我将SSL证书添加到Mac上的钥匙串中。 我还运行了Mozilla命令来安装默认证书。 不幸的是,这仍然无效。 在Windows上,与API的连接就像魅力一样。 从我读到的这是因为Windows有自己的CA商店和一些默认证书。

无法将Linq2Twitter包添加到Xamarin Studio

尝试将Linq2Twitter NuGet包添加到Xamarin Studio时,出现以下错误: 找不到路径“(..)/ packages / linqtotwitter.3.1.1 / linqtotwitter.3.1.1.nupkg”的一部分。 以前该软件包已安装但无法从我的代码中引用。 经过一番研究后,我发现可能与缺少对PCL的支持有关( http://lastexitcode.com/blog/2014/11/16/InstallingPortableClassLibrariesForXamarinStudio/ ) 在http://www.mono-project.com/download/安装单声道MDK(Mono开发套件)后,我无法再将软件包添加到我的项目中。 有任何想法吗 :-)

Unity中的Encog dll?

我想实现Encog到Unity。 当我将dll放入资产时,不会发生错误。 我甚至可以创建没有错误的新神经网络。 当我将XOR示例粘贴到脚本时,我得到如下所示的错误。 我用谷歌搜索它与Encog使用Unity单体行为中未涵盖的部分C#有关。 有人说我应该使用net framework 3.5构建的dll,但是当我尝试在visual basic中加载解决方案文件时,我得到了另一个类似于此的错误: Error 1 The type or namespace name ‘Tasks’ does not exist in the namespace ‘System.Threading’ (are you missing an assembly reference?) C:\Programs\Unity\ncog\encog-dotnet-core-3.2.0\encog-core-cs\Util\Concurrency\Job\ConcurrentJob.cs 24 24 encog-core-cs 我尝试修改encog源中包含的build.bat,以便它使用3.5框架的路径:C:\ Windows \ Microsoft.NET \ Framework64 \ v3.5 \ msbuild(这个编译没有错误/警告)但是当我尝试使用这个dll在统一中,我得到的同样的错误与dll normaly分布在encog网站上。 尝试使用XOR安全示例脚本时出现统一错误 Internal compiler error. See the console log for more […]

由于其保护级别,Mono.Math.BigInteger无法访问

所以我正在使用ideone在C#中编写一个程序,我第一次使用Mono。 我正在尝试使用BigInteger类(Mono.Math.BigInteger),但我一直在收到错误。 这是我下面的代码。 发生了什么,我该如何解决? 谢谢。 using System; using Mono.Math; public class TFIB { public static int Main() { const int FIB_SEQUENCE_SIZE = 300; BigInteger[] FibonacciSequence = new BigInteger[FIB_SEQUENCE_SIZE]; // Calculate Fibonacci Sequence FibonacciSequence[0] = 0; FibonacciSequence[1] = 1; for (int i = 2; i < FIB_SEQUENCE_SIZE; i++) { FibonacciSequence[i] = FibonacciSequence[i – 1] + FibonacciSequence[i […]

eBay C#SDK不适用于Mono

我下载了eBay SDK,用于我们正在开发的内部应用程序。 我们正在开发Mono。 当我在.NET上运行eBay Hello World示例时,它显示以下输出: +++++++++++++++++++++++++++++++++++++++ + Welcome to eBay SDK for .Net Sample + + – HelloWorld + +++++++++++++++++++++++++++++++++++++++ Begin to call eBay API, please wait … End to call eBay API, show call result: eBay official Time: 11/27/2013 3:02:19 PM 当我使用Mono运行它时,我得到以下内容: Unhandled Exception: eBay.Service.Core.Sdk.ApiException: Exception has been thrown by the target of […]

在Mono中反序列化JSON数据

使用Monodroid时,有一种简单的方法可以将简单的JSON字符串反序列化为.NET对象吗? System.Json只提供序列化(没有反序列化),我尝试过的各种第三方库都会导致Mono / Monodroid出现问题。 谢谢。

单声道xbuild错误CS1548 – 密钥文件格式不正确

所以我试图让VS2010 C#项目跨平台。 第一个目标是在Windows的Mono 2.10.5中构建它。 我还没有触及任何代码 – 我开始使用xbuild最近构建sln文件的能力。 (顺便说一下,我使用Jenkins来触发构建,而不是因为我在命令行中得到相同的结果。) 我收到“ 错误CS1548:程序集签名时出错。指定的密钥文件`AlphaBeta.pfx’格式不正确 ”。 这个错误没有太多谷歌果汁。 有谁知道会导致什么? 提前致谢! 完整输出如下: C:\Program Files\Jenkins\jobs\AlphaBeta\…\AlphaSolution>”C:\Program Files\Mono-2.10.5\bin\xbuild” AlphaSolution.sln XBuild Engine Version 2.10.5.0 Mono, Version 2.10.5.0 Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011. Build started 9/20/2011 3:54:14 PM. C:\Program Files\Jenkins\jobs\AlphaBeta\…\AlphaSolution\AlphaSolution.sln: warning : Ignoring vcproj ‘ZBM’. C:\Program Files\Jenkins\jobs\AlphaBeta\…\AlphaSolution\AlphaSolution.sln: warning : Don’t know how to handle GlobalSection […]

单声道3.0.7中的System.ServiceModel.Activation

我正在尝试在我的ubuntu服务器上托管一个nuget feed,它从源代码安装了mono 3.07。 我正在使用nuget.org中描述的方法。 该项目依赖于System.ServiceModel.Activation ,但在mono下无法找到。 根据单声道文档,该程序集已经实现。 我是否需要安装其他软件包才能获得它? 更新 事实certificate我读错了。 Mono目前不支持DataServices, 也没有计划 。 经过大量的讨论之后,我发现最好的解决方法是在Linux服务器上托管网络文件共享 (我自己的博客文章)。