Running make --debug=V install revealed that it was failing when attempting to execute line 197 of mcs/build/library.make, which is: 196 install-local: $(gacutil) 197 $(GACUTIL) /i $(the_lib) /f $(gacdir_flag) /root $(GACROOT) $(package_flag) Removing the $(package_flag) variable allowed the build to complete successfully. Caveat: I'm not sure if doing so breaks the...
Looks like the parameter type requires the full type name. I used mono_method_full_name with the second argument signature true to get the signature (I used my own test class with identical structure but different names): MonoDomain* domain = mono_jit_init(CSHARP_LIB); MonoAssembly* assembly = mono_domain_assembly_open(domain, CSHARP_LIB); MonoImage* image = mono_assembly_get_image(assembly); MonoClass* sandboxClass...
Create a new console project (example name InspectRefAssm), paste this inside of it: using System; using System.Reflection; namespace InspectRefAssm { class Program { static void Main(string[] args) { if (args.Length < 1 || string.IsNullOrEmpty(args[0])) { Console.WriteLine("This program requires an argument to the path of the executable."); Console.WriteLine("Example:"); Console.WriteLine(Path.GetFileName(Assembly.GetEntryAssembly().Location) + @"...
asp.net,mono,asp.net-webpages,xsp
Well, it turned out that I needn't have made a local copy of Microsoft.Web.Infrastructure assembly. By doing this, I am finally able to run .CSHMTL files from XSP. EDIT: To set a default .cshtml page add the following XML node to the appSettings section of the Web.config to give a...
If you want to get the output of a program running in the background, first get its PID with the command pidof program_name. This will return, for example, 2518. Now you can run tail -f /proc/2518/fd/1 to follow the output of that program....
Related this commit: https://github.com/mono/mono/commit/ae495e8bd485f48ecdb7e53d7e98771220f31997 and this bug: https://bugzilla.xamarin.com/show_bug.cgi?id=29665 But build 4.0.1.28 is from branch 4.0.0 and not from master so there is no this fix there and it will be fixed in 4.1 // credits for this answer goes to David Karlas from mono gitter everything work well with mono...
c#,asp.net-mvc-4,mono,moq,typeinitializeexception
I was running Mono 3.12 as shown by mono -V. Updating to Mono 4 with sudo apt-get install mono-complete fixed the issue!
Mono from version 4.0 started to include source code that Microsoft opened sourced as reference source. The last version of Mono that included its own version of the concurrent classes code was Mono 3.12 and that has the ConcurrentQueue and ConcurrentDictionary classes. For later versions of Mono the source code...
xamarin,mono,docker,ubuntu-14.04,boot2docker
It looks like you forgot to use wget instead of apt-get after you installed wget, so 'xamaring.gpg' has not been downloaded and that's why it can't be found. You need this: /bin/bash -l -c "wget http://download.mono-project.com/repo/xamarin.gpg" ...
First of all to clear up some confusion: Mono's version numbers have no relationship with the .NET version number, i.e. Mono 3.12.0 also shipped the .NET 4.5 profile. As you found out the MapToIPv4() method is only available in in .NET 4.5 and later (not in .NET 4.0). The exception...
You need to install the WindowsAzure.Storage DLL dependencies in your app in order to use them. You would then be able to use them without using the richorama SDK; it may be that it is not compiling because of the missing dependencies. So you will need to get hold of...
Well, you can always look up ASP.NET MVC source code, and copy what you need, if it is not implemented in mono yet. Here you can find it: https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Mvc/Html/LinkExtensions.cs But I've been using mono and ASP.NET MVC 4, and I had no problem like you. Here is my code on...
You need to pass the referenced assembly path using -pkg switch. I think you did not reference VehicleRoutPlannerCore dll while compiling. Please refer to http://linux.die.net/man/1/mcs you should invoke it like mcs -pkg:path-to-VehicleRoutPlannerCore-assembly VehicleRoutingConsole.cs ...
From the mono-devel mailing list, to which I posted the question: Is it possible to build mono without bash? It is unlikely. Your best bet is to cross compile. Shells that do not handle arrays (like the default Android shell or the default shell in KBOX...which is a busybox version...
Through tracing a simple VB helloworld program with MONO_LOG_LEVEL=debug MONO_LOG_MASK=asm I found the following: Mono: The request to load the assembly Microsoft.VisualBasic v11.0.0.0 was remapped to v10.0.0.0 Turns out the v11.0.0.0 version number is actually incorrect, this pull request should fix it: https://github.com/mono/mono-basic/pull/8...
The answer you have posted implements the Rfc2898DeriveBytes class to get the bytes of the encrypting key. This is advised, but not mandatory. You don't have to use Rfc2898DeriveBytes and can simply modify that AES implementation not to take a salt and simply take the password's bytes as the key...
c#,asp.net,.net,mono,monodevelop
Thanks Matt! ( http://stackoverflow.com/users/268874/matt-ward ) I copied the code from the old *.aspx and *aspx.cs files into a new 'Web Form with Code Behind' file with the same name and staged in the same location as the original. Upon build, the *.aspx.designer.cs file was autogenerated by the Mono 4.0 Runtime...
I must have been impatient when looking through the default tasks.json file last night. There is a section that refers to msbuild (towards the bottom): // Uncomment the section below to use msbuild and generate problems // for csc, cpp, tsc and vb. The configuration assumes that msbuild // is...
The CultureName property was introduced in .Net 4.5 and the value of that property for an Assembly with the neutral culture must be equal to an empty string like the name of the invariant culture because the CultureName uses theCultureInfo property (source): public String CultureName { get { return (_CultureInfo...
linux,ubuntu,mono,rollback,apt
First remove mono 4.0.1 sudo apt-get remove mono-complete sudo apt-get purge mono-complete apt-get autoremove After a few attempts, I have modified my repo like this, which seems to have worked: echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list then ran: sudo apt-get update sudo apt-get install mono-complete mono --version...
apache,asp.net-mvc-4,ubuntu,mono,xsp
This - and a host of related error messages - were because I had both Mono 2 and Mono 4 installed, and Mono 2 does not support MVC4, but for some reason was the default. I removed and reinstalled Mono, and this has fixed this particular problem. Could not load...
I feel stupid...I would delete this question, but it might actually help fellow newbs to MVC. If anybody has a similar issue, remember where you are trying to add the value. The only place a situation like this would occur is in the controller, where you have full access to...
Visual Studio Code: Preview currently does not support mono debugging on Windows. Debugging mono is only supported for Linux and Mac at the moment. Node debugging is supported on Windows, Linux and Mac.
set_resizable() is a setter function for resizable property. In languages where properties are a language feature (like C#) these functions aren't needed. In other words just use mainWindow.Resizable = false. ...
This works: MonoArray* theArray = mono_array_new(domain, containsClass, 1); mono_array_set(theArray, MonoObject*, 0, containsObject); args[0] = theArray; mono_runtime_invoke(returnElementMethod, NULL, args, &exception); // <--- as expected, outputs "In ReturnElement: 7" ...
The simple solution is to ignore the generic parameter when adding the Promise to the dictionary. This can easily be done by either inheritance or interfaces, depending on your needs (for example, Task<T> inherits from Task). Unlike Java, you can't simply use Promise<?> like you're trying to. For example: public...
You just need to call DeserializeObject providing the array type instead of the single class type. Here's a short but complete program demonstrating this... I've adjusted your JSON and class to match each other. using System; using System.IO; using Newtonsoft.Json; public class Person { public string Id { get; set;...
That the constructor of class Hello is Hello(string) is a lie told by the C# language, to make it more familiar to C++ and Java programmers. But the Mono runtime, like the Microsoft .NET CLR, works with compiled code, not C#. The true name of every instance constructor is .ctor,...
Just found the settings: Tools -> Options -> Nuget -> Package Updates
linux,mono,openssl,certificate
Since you mentioned you need to find X.509 extensions via command line: openssl x509 -in cert.pem -noout -text You should see that extensions are printed as shown here: X509v3 extensions: X509v3 Basic Constraints: CA:TRUE X509v3 Key Usage: Certificate Sign, CRL Sign Netscape Comment: OpenSSL Generated Certificate X509v3 Subject Key Identifier:...
When you installed it, you probably used sudo apt-get install mono-complete In my case, this installed Mono 3.2.8 which is evidently lower than 3.10.0. I couldn't manage to upgrade my Mono installation to a more recent version until I found this workaround: sudo apt-get install mono-devel This will install the...
I would vote this is closed as it's essentially a typo rather than an actual problem. For completeness, I'll point out that you're validating against the wrong schema. Your first line that reads your schema string is this: using (StringReader sr = new StringReader (Resources.tests)) And Resources.tests sounds like it...
Found this question which seems to explain my problem : VS2010 - Getting "type or namespace name could not be found" but everything seems ok? Since unity only support .Net 2.0 and the dll file is compiled with a higher version of .Net, unity cant correctly import it. Tested with...
asp.net,osx,post,mono,asp.net-mvc-6
I don't really know with mvc6 but with mvc5 a simple string parameter was sent in the query string. Did you tried to remove the [FromBody] EDIT: In MVC5 a simple string parameter can be sent through a form post, a query string or a route value....
XmlSerializer does not work with objects inheriting from UnityEngine.Object. Source: XML Serialization error. Try removing the inheritance if possible.
Default location of NuGet config file on OS X is in user's home directory: ~/.config/NuGet/NuGet.Config You should be able to add <packageSources> setting to this file according to docs. Create the file if it doesn't exist....
SqlClient is for connecting to Microsoft SQL Server, not MySQL. I think MySQL Connector/NET is what you area looking for.
Go to the project options of your project in monodevelop. At Build -> General, there is a new option called Use MSBuild engine (recommended for this project type). Uncheck this option.
c#,linux,list,mono,.net-assembly
The problem was a someone who refactored my messing this up in a very unconventional way. There is no problem passing arrays. It is perplexing to see that such an innocent question drew so many haters.
There was an issue with the Mono packages that should now be resolved, please see http://www.mono-project.com/docs/getting-started/install/linux/#libgdiplus-debian-80-and-later-not-ubuntu. The reason is that Debian 8 doesn't have libjpeg8 anymore which libgdiplus (a component of Mono) requires....
Instead of asp:BoundField to show hype link it is better use asp:HyperLinkField like: <Columns> <asp:HyperLinkField DataNavigateUrlFields="domainName" HeaderText="domainName" DataNavigateUrlFormatString="DomainConfiguration.aspx?suffix={0}" DataTextField="domainName" /> </Columns> and to get string value of that column you should try this: string my_value= ((HyperLink)myGrid.Rows[rowIndex].Cells[1].Controls[0]).Text; ...
Long story short: bin/Release/ are the files you should deploy. bin/Debug/ are the files you should test in your developer machines. Files in obj/ are useless, you can remove them....
android,xamarin,mono,orientation
Solution was(For me) to make acceptable design for portrait,which is it does not differ landscape mode(just use mechanisms like sum_weight and etc).
Exception catchpoints are now in same dialog as breakpoints. You can open this dialog via Run->New Exception Catchpoint Breakpoints pad has button "New Exception Catchpoint" What is nice about this is, you can use conditional and counting filters and different conditions/counts for different exceptions and also print debugging text(tracepoint) instead...
gmcs targets the .NET 2.0 profile, Task didn't exist back then. On a recent Mono just use mcs, as gmcs is deprecated and was removed from Mono 4.0....
Mono will look for a no_proxy or NO_PROXY environment variable to generate the bypass list for a proxy. So it would be worth checking that environment variable to see if it is using *.intranet and causing the exception...
c#,reference,mono,dispose,pool
So, fortunately, if you're doing a Depth-First-Search, which you appear to be, this is a bit easier. Any time you reach a leaf node, there are two possibilities: that leaf node is part of the current deepest tree, or it's not. If it's not, that means it's safe to return...
I have finally got it working. Here's what I did I uninstalled all xamarin, mono and GTK programs from windows using the windows control panel. Removed all registry entries I could find. Manually deleted the remaining program files from my hard drive. Went and downloaded the latest versions of GTK...
The answer is to use the pre-built packages from https://lbs.solidcharity.com/package/tpokorra/mono/mono-opt Thanks to Timotheus Pokorra for providing them. Note: You will need to add the provided env.sh to /etc/profile.d (or to your individual profile) to set the necessary environment variables. To use libgdiplus, you will also need to add /usr/local/lib to...
c#,windows,unit-testing,mono,nunit
It looks like the Uri class has changed in Mono 3.12 so NUnit 2.4.8 is not returning the correct path to the NUnit assembly. Mono 3.3 on Windows works without any errors. I have opened a bug on bugzilla for this problem. It seems to be possible to use NUnit...
c#,mono,socket.io,xsockets.net
You can connect anything with TCP to a XSockets.NET server since XSockets allows cross-protocol communication. In clear text this means that XSockets does not care about the "transport" or "language" of each client. The server does not care about message format either since each protocol is responsible for converting messages...
mono,monotouch,xamarin,monodroid,xamarin.forms
You're accessing pawprints.rit.edu right ? Then the certificate for the site (and it's root CA) are fine, i.e. iOS would accept it (and Xamarin.iOS delegate the trust decision to iOS). IOW setting the delegate does not help you (it's for the certificate only and that's fine). The issue here is...
I solve this problem with MySql.Data package if you have problems with MySql.Data.dll you can install MySql.Data package with nuget package manager.
c#,xamarin,mono,nswindow,monomac
You don’t need DrawRect to capture mouse events. You need contructors: public MouseTracking(NSCoder coder) :base(coder) { } public MouseTracking(RectangleF frameRect) :base(frameRect) { } You could also need (maybe you don’t know this yet) to override this flag: public override bool AcceptsFirstMouse (NSEvent theEvent) { return true; } and yes, you...
c#,multithreading,osx,mono,process.start
It turns out Garbage Collection was definitely the culprit. I moved my CleanupPriorToApplicationStart() call to before I started the GC and have no longer seen these sporadic errors.
The namespace UnityEngine.EventSystems actually appears in UnityEngine.UI.dll and not UnityEngine.dll so it seems you need to reference the former too when compiling manually from the command-line. Unity projects have this by default (see below). This is verified by opening up the assembly in your reflector tool of choice, here I...
Did you include the error middleware as shown here?
if we using android:theme="@style/android:Theme.Holo.Light" it will reflect the action bar title color and it will working fine if we use like: android:theme="@style/android:Theme.Holo"
android,android-fragments,xamarin,mono,monodroid
I am not certain based on this snipit, but if you are trying to access an Android resource Id such as mentioned by the previous person, you need to use Android.Resource.Id in Xamarin. If this is not what you want, I would ask if you have a FrameLayout inside your...
Assuming: Mono is running the SGEN based GC Linux OOM Killer is actually enabled Your Stress.exe is only alloc'ing managed memory i.e. No Native interop, no use of the Marshaling memory allocators, no code flagged unsafe, etc.. You are constantly creating objects and never release those refs. Lets talk SGEN,...
I finally found an answer. When ChessEngine is initialized there is a ChessEngine.OpeningBook class that's initialized. I simply took out the class altogether, and it worked like a charm. The class looks like: using System; using System.IO; using System.Collections.Generic; using System.Reflection; //using Valil.Chess.Engine.Properties; namespace Valil.Chess.Engine { public sealed partial class...
Managed to run an web app. Here is what I had to do: Open up terminal, cd to your web app directory. Type dnu restore 2a. If you get result like this -bash: dnu: command not found Type source dnvm.sh and then go back run dnu restore again. 2b. If...
Your mono installation is not in $PKG_CONFIG_PATH, and that's why pkg-config cannot find the .pc files for mono. You need to add the directory to your $PKG_CONFIG_PATH environment variable. The directory should be at /Library/Frameworks/Mono.framework/Versions/VERSIONNUMBER/lib/pkgconfig/...
c#,dependency-injection,mono,decorator,autofac
You have this error because the C# compiler doesn't know which overload of the RegisterDecorator method to take. If you force it : builder.RegisterDecorator<ILastActivityUpdator>( new Func<IComponentContext, ILastActivityUpdator, ILastActivityUpdator>( (c, inner) => new AnonymousUserLastActivityUpdator(inner) ), fromKey: "lastActivityUpdator"); You will have a new error : AnonymousUserLastActivityUpdator does not contain a constructor that...
This is not possible using mcs but you can use ILRepack.exe to merge the assemblies into one file. ILRepack.exe [options] /out:<path> <path_to_primary> [<other_assemblies> ...] ...
c#,multithreading,unity3d,mono
I ended up using a very helpful extension called Unity Thread Helper. It's free, and more than enough for my need! This is the usage: UnityThreadHelper.Dispatcher.Dispatch(() => { Destroy(a); }); NOTICE: Dispatcher is a singleton object, it will be initialized on your first call. You have to do your first...
asynchronous,f#,mono,task-parallel-library
It looks like the Sleeps are ignored completely - see how the Task 2 loop is printed even before launching the next task, that's just silly - if the thread waited for 10ms, there's no way for that to happen. I'd assume that the cause might be the timer resolution...
A possible solution can be that you configure the file for windows and than after configuration test if you are on Linux. When on Linux you can get the appender and change the file=>value value with a replace to be Linux compatible: XmlConfigurator.Configure(); if (Environment.OSVersion.Platform == PlatformID.Unix){ var repository =...
xaml,xamarin,mono,monotouch,xamarin.forms
The best way to do it would be to increase the size of the button. Then align the text as you see fit. Unfortunately it is about the best you can do. It works well if you have your text center aligned. Not so much if its left or right...
I had some similar strange experiences on iOS development. (Exceptions like this when using multitasking and JSON) I have found adding these to mtouch AOT options resolved my problems: nrgctx-trampolines=8096,nimt-trampolines=8096,ntrampolines=4048 Wish it can help you (and maybe other developers) too....
To fix this issue, before start save and unset duplicated variable. In this case: SAVE_TMP_VAR=$runlevel unset runlevel #run your programm export runlevel=$SAVE_TMP_VAR After your program finished restore variable. Here is script (init.d) which fix this issue and run kestrel...
As long as no two threads are calling BeginWrite() concurrently, all is well. The same thread, or even other threads, can call BeginWrite() consecutively before earlier calls have completed. Do note that the completion callbacks might be executed out of order; if you do implement it this way and the...
c#,multithreading,memory-leaks,mono,xamarin
Finalizers are not deterministic. You cannot rely on them being called. If it is vitally important for your program to clean up the resource in question then you should be explicitly disposing of it, and not relying on a finalizer. If cleaning up the resource would be nice, but you...
mono,asp.net-mvc-5,raspberry-pi
After a lot more googling, I have found that MVC 5 simply isn't supported by debian distributions of linux (not sure about other distributions, but I assume they aren't supported either), mainly because the current version of mono doesn't support the System.web package needed for MVC 5 projects. It will...
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list sudo apt-get update sudo apt-get install mono-complete mono --version # Mono JIT compiler version 4.0.1 (tarball Tue Apr 28 11:47:58 UTC 2015) Source: http://www.mono-project.com/docs/getting-started/install/linux/...
Is DNX alternative of mono? If not, then what will be the difference? Mono is an open sourced development platform. It's implementation is based on the CLI specification, such as the platform that is provided by Microsoft. It includes a C# compiler, a runtime, a BCL and something called...
android,websocket,mono,websocket4net
Why don't you send Ping frames (or unsolicited Pong frames) periodically from the client to the server in order to keep the WebSocket connection? By default, many server implementations disconnect idle connections automatically.
mcs doesn't seem to support comments. It just loads the response file line-by-line, strips any single or double quoting and processes the line as if it were passed as a command line argument. You can look at the LoadArgs function in mcs source. It would be easy to add comments,...
*OP explained the intention is to cause Children to be destroyed when Parent is. The solution would probably be better handled at a '(Test)Manager' or 'LevelManager'. You could assign your Children or prefabs to your (Test)Manager manually, or get (Test)Manager to instantiate the child prefab. GameObject child = Instantiate(prefab); child.transform.SetParent(gameObject.transform);...
c#,asp.net,mono,raspberry-pi,owin
Try to replace: http://localhost:5000 to http://*:5000 ...
Ok, I found the solution. It was simple. I just have chosen wrong version of GTK# library. It should be a 2.12.* version, but on GTK# master it is 2.99.*. When I changed the version (by git checkout), everything was compiled as it should. Mono.Addins will compile with 2.99.* of...
I have made similar investigation about 3 months ago a project with Angular 2 and and Singnalr. I hope, the web socket usage is not essential for your project. As you can see here one of the Xamarin developers stated, it is not working as System.Web.WebSocket is not implemented in...
I would expect some details about the type parameters The "spec" says: Result of nameof. The result of nameof depends on the symbols that its argument bound to: One or more members: if all members have the same metadata name then the result of nameof is that name; otherwise...
android,ios,mono,monotouch,xamarin
You won't be able to create static libraries or jar files with Xamarin for your Obj-C or Android apps to use. That's not supported. However, if you have a ton of business logic and others in a static library or jar file, you can create binding libraries and your Xamarin...
The casting between int and LayerMask can be a bit confusing. When you call LayerMask.NameToLayer("Enemy"), you get the layer index. Let's assume that "Enemy" is layer 7, so that call would return 7. Unfortunately, a layer mask is a bitmask. To mask layer seven, you set the seventh bit: 1...
c#,.net,xamarin,mono,monodroid
Maybe you want to look at https://github.com/Muraad/Bind which is based on https://github.com/praeclarum/Bind. Its only one file. If just changed it, now its working with a method call on the right side of a binding. I´v included your example as a test case. One can write var foo = new Foo()...
Just passing 'mono' to the ProcessStartInfo and adding all the arguments (mono's debug args, your *.exe, and your program's args) should do the trick. Make sure to use a different port if you want to be able to debug the a.exe and the b.exe.
Compiling Razor Views and the RazorGeneratorBuildTask doesn't work on Mono. The Razor Views need to be compiled on Windows/.NET first you should then be able to run the compiled Razor Pages dll in Mono.
asp.net,asp.net-mvc,mono,ninject,ninject.web.mvc
It turned out that Neither my code nor ninject is the culprit. Mono (4.0.1) have hidden bug that causes troubles somehow with Ninject. I updated to mono 4.3 using weekly build documented here and all is well again....
Make the "copy local" property of dll to true before compiling
Due to the Ubuntu policies (mainly on product support aspects), its own repository feeds won't contain latest Mono, but the stable release when each Ubuntu releases were prepared. To use latest Mono, you must add Xamarin's feed and use that to install or upgrade, http://www.mono-project.com/download/#download-lin...