Missing System.Web.Mobile

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
7/8/2009 8:43:46 AM
Gravatar
Total Posts 7
01100111

Missing System.Web.Mobile

Hi,

Yesterday i downloaded:  mojoportal-2-3-1-0-pgsql-deploymentfiles-for-mono.zip

When i started the installation i got the following compilation error:

 

** (/usr/lib/mono/2.0/gmcs.exe:8854): WARNING **: The following assembly referenced from /home/rob/www/mojoportal/bin/DotNetOpenAuth.dll could not be loaded:
Assembly: System.Web.Mobile (assemblyref_index=5)
Version: 2.0.0.0
Public Key: b03f5f7f11d50a3a
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/rob/www/mojoportal/bin/).

 

Unfortunately this assembly cannot be found anywhere on my system.

(I installed Mono version 2.4.2.1 on OpenSuse 11.1 using Yast).

Does anyone knows where i can get the Mono version of this assembly?

I'm new to Gnu/Linux and Mono so i probably have missed something.

Regards,

Rob.

7/8/2009 8:50:46 AM
Gravatar
Total Posts 18439

Re: Missing System.Web.Mobile

Hi,

That dll does not work on mono unfortunately. That error is just a warning, it should not be preventing it from running, are there any other errors?

Hope it helps,

Joe

7/8/2009 9:02:23 AM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

Thanks for your quick response.

There are no other messages, just compiler error. The complete message is:

Server Error in '/mojo' Application
Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: : ** (/usr/lib/mono/2.0/gmcs.exe:9162): WARNING **: The following assembly referenced from /home/rob/www/mojoportal/bin/DotNetOpenAuth.dll could not be loaded:

Show Detailed Compiler Output:

gmcs /target:library /lib:"/home/rob/www/mojoportal/bin" /debug- /optimize+ /warnaserror /warn:4 /out:"/tmp/wwwrun-temp-aspnet-0/41a26c65/App_GlobalResources.7fbe8177.dll" /r:"/usr/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll" /r:"/usr/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" /r:"/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll" /r:"/usr/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" /r:"/usr/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll" /r:"/usr/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll" /r:"/usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll" /r:"/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll" /r:"/usr/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll" /r:"/usr/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll" /r:"/usr/lib/mono/gac/System.Data.DataSetExtensions/3.5.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll" /r:"/home/rob/www/mojoportal/bin/AjaxControlToolkit.dll" /r:"/home/rob/www/mojoportal/bin/Argotic.Common.dll" /r:"/home/rob/www/mojoportal/bin/Argotic.Core.dll" /r:"/home/rob/www/mojoportal/bin/Argotic.Extensions.dll" /r:"/home/rob/www/mojoportal/bin/Brettle.Web.NeatHtml.dll" /r:"/home/rob/www/mojoportal/bin/Brettle.Web.NeatHtmlTools.dll" /r:"/home/rob/www/mojoportal/bin/Brettle.Web.NeatUpload.GreyBoxProgressBar.dll" /r:"/home/rob/www/mojoportal/bin/Brettle.Web.NeatUpload.dll" /r:"/home/rob/www/mojoportal/bin/CSSFriendly.dll" /r:"/home/rob/www/mojoportal/bin/CookComputing.XmlRpcV2.dll" /r:"/home/rob/www/mojoportal/bin/DotNetOpenAuth.dll" /r:"/home/rob/www/mojoportal/bin/DotNetOpenMail.dll" /r:"/home/rob/www/mojoportal/bin/GCheckout.dll" /r:"/home/rob/www/mojoportal/bin/Highlighter.Net.dll" /r:"/home/rob/www/mojoportal/bin/Jayrock.Json.dll" /r:"/home/rob/www/mojoportal/bin/Jayrock.dll" /r:"/home/rob/www/mojoportal/bin/Lucene.Net.dll" /r:"/home/rob/www/mojoportal/bin/MetaDataExtractor.dll" /r:"/home/rob/www/mojoportal/bin/Mono.Security.dll" /r:"/home/rob/www/mojoportal/bin/Newtonsoft.Json.dll" /r:"/home/rob/www/mojoportal/bin/Novell.Directory.Ldap.dll" /r:"/home/rob/www/mojoportal/bin/Npgsql.dll" /r:"/home/rob/www/mojoportal/bin/OpenPOP.dll" /r:"/home/rob/www/mojoportal/bin/Org.Mentalis.Security.dll" /r:"/home/rob/www/mojoportal/bin/RSS.NET.dll" /r:"/home/rob/www/mojoportal/bin/SharpMimeTools.dll" /r:"/home/rob/www/mojoportal/bin/SiteOffice.Business.dll" /r:"/home/rob/www/mojoportal/bin/SiteOffice.Data.dll" /r:"/home/rob/www/mojoportal/bin/SiteOffice.ExternalMail.dll" /r:"/home/rob/www/mojoportal/bin/SiteOffice.UI.dll" /r:"/home/rob/www/mojoportal/bin/Subkismet.dll" /r:"/home/rob/www/mojoportal/bin/TimelineNet.dll" /r:"/home/rob/www/mojoportal/bin/WebStore.Business.dll" /r:"/home/rob/www/mojoportal/bin/WebStore.Data.dll" /r:"/home/rob/www/mojoportal/bin/WebStore.UI.dll" /r:"/home/rob/www/mojoportal/bin/ZedGraph.Web.dll" /r:"/home/rob/www/mojoportal/bin/ZedGraph.dll" /r:"/home/rob/www/mojoportal/bin/log4net.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Business.WebHelpers.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Business.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Data.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Features.Business.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Features.Data.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Features.UI.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Net.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Web.Controls.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Web.Editor.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Web.Framework.dll" /r:"/home/rob/www/mojoportal/bin/mojoPortal.Web.dll" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.FolderGalleryResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.ExternalMailResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.HtmlIncludeResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.GearsDBToolResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.ContactFormResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.SiteOfficeResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.SharedFileResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.SiteMailResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.WebStoreResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.EventCalResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.TimeZoneResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.GalleryResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.SurveyResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.ProfileResource.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.ForumResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.SetupResource.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.GMapResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.FeedResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.PollResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.LinkResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.BlogResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.LiveResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.XmlResources.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.AccessKeys.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.Resource.resources" /resource:"/tmp/wwwrun-temp-aspnet-0/41a26c65/Resources.DevTools.resources" -- "/tmp/wwwrun-temp-aspnet-0/41a26c65/App_Web_43d897c3_0.cs"


** (/usr/lib/mono/2.0/gmcs.exe:9162): WARNING **: The following assembly referenced from /home/rob/www/mojoportal/bin/DotNetOpenAuth.dll could not be loaded:
Assembly: System.Web.Mobile (assemblyref_index=5)
Version: 2.0.0.0
Public Key: b03f5f7f11d50a3a
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/rob/www/mojoportal/bin/).


** (/usr/lib/mono/2.0/gmcs.exe:9162): WARNING **: Could not load file or assembly 'System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000]
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly) [0x00000]
at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x00000]
at Mono.CSharp.Driver.LoadReferences () [0x00000]
at Mono.CSharp.Driver.Compile () [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433

Hope jou can help me, i'm realy looking forward to get Gnu/Linux/PostgreSql/MojoPortal working!

Regards Rob,

P.S. I saw that Juliano Barbosa got this combination working.

 

7/8/2009 9:10:00 AM
Gravatar
Total Posts 18439

Re: Missing System.Web.Mobile

I have not tried the new release of Mono yet. Are you seeing this error in the page or in the command window? Are you running it from the command line using xsp2 or using mod_mono? If using mod_mono please post relevant settings you have made in apache config files. Also if using mod_mono you could try running it from the command line by cd into the mojoportal folder and enter the command xsp2, then you can test at http://localhost:8080/

Hope it helps,

Joe

7/8/2009 9:36:49 AM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

I'm using mod_mono with the following settings:

In mod_mono.conf

 

# mod_mono.conf

# Achtung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/apache2/mod_mono.so
</IfModule>

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

 

in httpd.conf:


Alias /9292 "/home/rob/work/9292demo1"
Alias /mojo "/home/rob/www/mojoportal"

MonoApplications "/9292:/home/rob/work/9292demo1"
MonoApplications "/mojo:/home/rob/www/mojoportal"

<Location /9292>
SetHandler mono
Order deny,allow
Allow from all
</Location>

<Location /mono>
SetHandler mono-ctrl
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

<Location /mojo>
SetHandler mono
Order deny,allow
Allow from all
</Location>

If i'm using XPS2 from my www directory i get the following error:

 

The section <siteMap> can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/home/rob/www/mojoportal/Web.config line 749)

Description: HTTP 400. Error processing request.

 

Hope jou can help me.

Rob.

 

 

 

7/8/2009 9:52:42 AM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

Sorry, i made a mistake with XSP2 (ran it from the parent dir and used localhost:8080/mojoportal as address)

If i'm using XSP2 from within the mojoportal directory i get the same compilation error as with mod_mono.

Regards,

Rob.

 

7/8/2009 9:58:13 AM
Gravatar
Total Posts 18439

Re: Missing System.Web.Mobile

Ok, mojoportal needs to be either a root web site or defined as an application in a 1 level deep folder so the url used can be like http://localhost/ or http://localhost/somefolder but not like http://localhost/folder1/folder2/

If you have other .NET code in the www folder there can also be conflicts with the web.config settings like that machine to application error.

So I recommend change your alias to make sure mojoportal either runs at the root or one level deep, if running it 1 level deep you may need to try removing any other web.config file that lives in the root folder ie www in your example.

Hope it helps,

Joe

7/8/2009 10:01:44 AM
Gravatar
Total Posts 18439

Re: Missing System.Web.Mobile

When you run it in xsp2 you see the error in the page or in the command window? If you see it in the page this is sounding like a bug in this release of mono. If you see it in the command window it should be just warnings and visiting the http://localhost:8080/Setup/Default.aspx page should work.

Hope it helps,

Joe

7/8/2009 11:01:32 AM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

Under XSP2 i use http://localhost:8080/Setup/Default.aspx.

Under mod_mono i use http://localhost/mojo/Setup/Default.aspx.

Both result in the same Compilation error (Missing System.Web.Mobile assembly)

The XSP2 does not give a message in its command window.

Maybe it has something to do with my OpenSuse installation.

I'm learning Gnu/Linux at the moment and spend quite some time in superuser mode where an inexperienced user can do serious harm to the system.

I will try a fresh installation.

Thanks for your help!

Rob.

 

7/8/2009 12:30:17 PM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

Your first remark about the fact that a compiler warning should not prevent the setup from running made me look at the compiler options.

The sourcecode is compiled with the option /warnaserror (without an + or - attached) even if the web.config has the following section:

<system.codedom>

   <compilers>

     <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">

       <providerOption name="CompilerVersion" value="v3.5" />

       <providerOption name="WarnAsError" value="false" />

  </compiler>

</compilers>

</system.codedom>

It looks like the WarnAsError option is not respected. Changing this option or even removing it does not change the compiler commandline (restarted apache after changing the option).

The /warnaserror option must have a + or - attached to it, so it may well be a Mono error...

Regards,

Rob.

 

7/10/2009 8:08:51 AM
Gravatar
Total Posts 7
01100111

Re: Missing System.Web.Mobile

Hi Joe,

I have solved the problem with the "missing System.Web.Mobile" compiler error.

In the web.config i changed the EnableOpenIDAuthentication key to false.

In the /bin directory i renamed DotNetOpenAuth.dll to DotNetOpenAuth._dll

That's it!

I'm very happy.

Thank you for MojoPortal!

Rob.

 

7/10/2009 12:55:01 PM
Gravatar
Total Posts 18439

Re: Missing System.Web.Mobile

Ahh, that makes sense, thanks for figuring it out! I've made the same web.config fix, deleted the DotNetOpenAuth.dll and updated the package on Codeplex so it will work for people who download it going forward.

Best,

Joe 

You must sign in to post in the forums. This thread is closed to new posts.