Bug 30666 - Mono XSP and XSP4 Errors
Summary: Mono XSP and XSP4 Errors
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Tools (show other bugs)
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-06-02 08:36 UTC by jutt
Modified: 2015-06-02 08:36 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description jutt 2015-06-02 08:36:03 UTC
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:

mono-complete
mono-devel
referenceassemblies-pcl
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=4.0.0.0, 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)

Note You need to log in before you can comment on or make changes to this bug.