[Mono-list] Installing mono 3.0 on Ubuntu

Daniel Lo Nigro lists at dan.cx
Sun Oct 28 03:06:08 UTC 2012


Your Web.config has references to Entity Framework 4, which Mono doesn't
support.  You'll have to remove all the EntityFramework sections from the
Web.config (the <section> node at the top, and the <entityFramework> node
at the bottom). Delete EntityFramework.dll from your application's bin
folder if it exists in there. If you want to use Entity Framework, you will
have to use version 6, as this is the only version that Microsoft has
released as open source. It hasn't had an official release yet, but you can
grab EntityFramework.dll from your Mono installation.

Also ensure you delete Microsoft.Web.Infrastructure.dll as Mono has its own
implementation of this assembly (Microsoft's implementation is dependent on
IIS).

I'm not sure how you configure it with Apache (I use nginx myself), but you
need to route all requests for non-existent files to Mono. Just routing
them based on extensions (AddHandler mono .aspx ascx .asax .ashx .config
.cs .vb .asmx .axd) won't work, as ASP.NET MVC doesn't use file extensions.

On Sat, Oct 27, 2012 at 3:12 AM, sudeka <subha.Desikan at gmail.com> wrote:

> Thank you,
>
> I installed XSP from the link you gave me. I still get the error after a
> sudo service apache2 restart (I dont even have to browse to the
> application)
> Could mod_mono 2.10 be the problem? I couldn't find the latest version of
> mod_mono that would be compatible with mono 3.0 anywhere.
>
> My Web.config is the default Web.config that comes with a new MVC4
> application, I've listed it at the end.
>
> My Virtual Host in sites_available is as follows
>
> <VirtualHost *:80>
>         ServerAdmin svr.inc at gmail.com
>         ServerName ui.svr.com
>         MonoAutoApplication disabled
>         AddHandler mono .aspx ascx .asax .ashx .config .cs .vb .asmx .axd
>         MonoApplications "/:/home/svr/svr-app/code/web-client/svrapp"
>         MonoServerPath /opt/mono-3.0.0/bin/mod-mono-server4
>         DocumentRoot /home/svr/svr-app/code/web-client/svrapp
>         MonoDebug true
>
>         <Location "/">
>                 Allow from all
>                 AllowOverride All
>                 Order allow,deny
>                 SetOutputFilter DEFLATE
>                 SetHandler mono
>                 SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip
> dont-vary
>         </Location>
>         <IfModule mod_deflate.c>
>                 AddOutputFilterByType DEFLATE text/html text/plain text/xml
> text/javascript
>         </IfModule>
>
>         ErrorLog ${APACHE_LOG_DIR}/error.log
>
>         # Possible values include: debug, info, notice, warn, error, crit,
>         # alert, emerg.
>         LogLevel warn
>
>         CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> </VirtualHost>
>
>
> Web.Config
> --------------
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <configuration>
>   <configSections>
>
>     <section name="entityFramework"
> type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,
> EntityFramework, Version=4.4.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" requirePermission="false" />
>   </configSections>
>   <appSettings>
>     <add key="webpages:Version" value="2.0.0.0" />
>     <add key="webpages:Enabled" value="false" />
>     <add key="PreserveLoginUrl" value="true" />
>     <add key="ClientValidationEnabled" value="true" />
>     <add key="UnobtrusiveJavaScriptEnabled" value="true" />
>   </appSettings>
>   <system.web>
>     <customErrors mode="Off"></customErrors>
>     <compilation debug="true" targetFramework="4.0" />
>     <authentication mode="Forms">
>       <forms loginUrl="~/Account/Login" timeout="2880" />
>     </authentication>
>     <pages>
>       <namespaces>
>         <add namespace="System.Web.Helpers" />
>         <add namespace="System.Web.Mvc" />
>         <add namespace="System.Web.Mvc.Ajax" />
>         <add namespace="System.Web.Mvc.Html" />
>         <add namespace="System.Web.Optimization" />
>         <add namespace="System.Web.Routing" />
>         <add namespace="System.Web.WebPages" />
>       </namespaces>
>     </pages>
>   </system.web>
>   <system.webServer>
>     <validation validateIntegratedModeConfiguration="false" />
>     <modules runAllManagedModulesForAllRequests="true" />
>     <handlers>
>       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
>       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
>       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
>       <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*."
> verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule"
>
> scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll"
> preCondition="classicMode,runtimeVersionv4.0,bitness32"
> responseBufferLimit="0" />
>       <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*."
> verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule"
>
> scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
> preCondition="classicMode,runtimeVersionv4.0,bitness64"
> responseBufferLimit="0" />
>       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*."
> verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS"
> type="System.Web.Handlers.TransferRequestHandler"
> preCondition="integratedMode,runtimeVersionv4.0" />
>     </handlers>
>   </system.webServer>
>   <runtime>
>     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
>       <dependentAssembly>
>         <assemblyIdentity name="System.Web.Helpers"
> publicKeyToken="31bf3856ad364e35" />
>         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"
> />
>       </dependentAssembly>
>       <dependentAssembly>
>         <assemblyIdentity name="System.Web.Mvc"
> publicKeyToken="31bf3856ad364e35" />
>         <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0"
> />
>       </dependentAssembly>
>       <dependentAssembly>
>         <assemblyIdentity name="System.Web.WebPages"
> publicKeyToken="31bf3856ad364e35" />
>         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"
> />
>       </dependentAssembly>
>     </assemblyBinding>
>   </runtime>
>   <entityFramework>
>     <defaultConnectionFactory
> type="System.Data.Entity.Infrastructure.SqlConnectionFactory,
> EntityFramework" />
>   </entityFramework>
> </configuration>
>
>
>
>
> --
> View this message in context:
> http://mono.1490590.n4.nabble.com/Installing-mono-3-0-on-Ubuntu-tp4657125p4657136.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121028/3e1a699b/attachment-0001.html>


More information about the Mono-list mailing list