Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 30666 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
I am currently running Ubuntu 14.04 with Digital Ocean and was interested in setting up Mono to work with some .NET code. I am currently new with .NET however, I thought it would be neat to have a server setup online where I could view my code. Not that seeing my changes live on my own computer is bad, but I want to find a place to deploy my projects. I am already paying for hosting and am not interested in spending more money for IIS, so I thought this could be a quick solution. I was told that XSP is useful for momentarily testing your web applications in the browser. XSP does not seem to be working properly for my Linux System. I need some help.
After installing the following packages, I have been publishing these projects locally before adding them through SFTP to my server in its own directory. This directory has been set up with a A record and has been configured using a virtual host file at the following location (/etc/apache2/sites-available).
The following packages were installed on my server:
I have tried to add a MVC4 project to my server however, this has causes some errors on the server. I thought that if I installed OWIN this would fix this particular issue with this MVC4 web application however I still received errors. MVC3 created similar errors. Going into the directory folder and using the command "xsp" and "xsp4" return different errors.
Currently, running a clean web form with nothing added using .NET framework 4.0 results in the following errors:
XSP: System.TypeLoadException Could not load type 'System.Web.UI.ScriptResourceDefinition' from assembly 'System.Web.Extensions, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Stack Trace: at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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) [0x00000] in :0
XSP 4: System.ArgumentException An item with the same key has already been added.
Stack Trace: at System.ThrowHelper.ThrowArgumentException (ExceptionResource resource) [0x00000] in :0 at System.Collections.Generic.Dictionary2[System.String,System.Web.Routing.RouteBase].Insert (System.String key, System.Web.Routing.RouteBase value, Boolean add) [0x00000] in <filename unknown>:0
at System.Collections.Generic.Dictionary2[System.String,System.Web.Routing.RouteBase].Add (System.String key, System.Web.Routing.RouteBase value) [0x00000] in :0 at System.Web.Routing.RouteCollection.Add (System.String name, System.Web.Routing.RouteBase item) [0x00000] in :0 at Microsoft.AspNet.FriendlyUrls.RouteCollectionExtensions.EnableFriendlyUrls (System.Web.Routing.RouteCollection routes, Microsoft.AspNet.FriendlyUrls.FriendlyUrlSettings settings, Microsoft.AspNet.FriendlyUrls.Resolvers.IFriendlyUrlResolver resolvers) [0x00000] in :0 at Microsoft.AspNet.FriendlyUrls.RouteCollectionExtensions.EnableFriendlyUrls (System.Web.Routing.RouteCollection routes, Microsoft.AspNet.FriendlyUrls.FriendlyUrlSettings settings) [0x00000] in :0 at WebApplication2.RouteConfig.RegisterRoutes (System.Web.Routing.RouteCollection routes) [0x00000] in :0 at WebApplication2.Global.Application_Start (System.Object sender, System.EventArgs e) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,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) [0x00000] in :0
My theories on this include:
Did not install everything needed for MONO
Need to add another dependency
Am launching this application the wrong way
Somehow I need to make mono listen on a specific IP and/or port? (see below)
I am missing a step
I did not publish my project using Xamarin.
Furthermore, when I launch XSP or XSP4 my terminal tells me the following:
Listening on address: 0.0.0.0
Root Directory: /var/www/ms
Listening on port: 8080 (non-secure)