[Mono-aspnet-list] ASP.NET / Mono question

James Rhodes jrhodes at redpointsoftware.com.au
Sat Jul 6 23:51:50 UTC 2013


I would not expect so; you can't compile .cs files without knowing how they
are part of a project (i.e. a .csproj to specify all the DLLs to compile).
If mod_mono even uses a csproj to compile, this would differ to the
behaviour of both fastcgi and IIS.
On 07/07/2013 6:55 AM, "Wardell Castles" <wardellcastles at yahoo.com> wrote:

> James...
>
> Why would the dll from VS be in the bin folder?   Shouldn't mod-mono
> compile the .cs files and create it's own executable?
>
> Also, when I put Web.config in the folder, Apache says that it is
> unavailable or down for service.  Weird for sure.
>
> Thanks for the input!
>
>   ------------------------------
>  *From:* James Rhodes <jrhodes at redpointsoftware.com.au>
> *To:* Wardell Castles <wardellcastles at yahoo.com>
> *Sent:* Friday, July 5, 2013 9:35 PM
> *Subject:* Re: [Mono-aspnet-list] ASP.NET / Mono question
>
> The DLL needs to be in a bin folder relative to the site root.  So your
> folder structure should look something like:
> * bin
>     * HelloWorld.dll
> * HelloWorld.aspx
> * Web.config
> Regards, James.
>  On 06/07/2013 4:40 AM, "Wardell Castles" <wardellcastles at yahoo.com>
> wrote:
>
> Is it possible to take a project with "code behind" built from VS Express
> for Web on Windows and run it on Debian Linux with Apache and Mono?
>
> I can get a basic hand coded .aspx page with no "code behind" to work
> fine.  So I know that my Debian OS, Apache, and Mono are wired up.
>
> However when I take a simple page with code behind that was built from VS
> Express for Web and try to run it, I receive the message:.
>
> *Parser Error Message: *Cannot find type HelloWorld.WebForm1
> *Source Error:*
>
> Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="/var/www/HelloWorld/WebForm1.aspx.cs" Inherits="HelloWorld.WebForm1" %>Line 2:
> Line 3: <!DOCTYPE html>
>
>
>
> (Note: HelloWorld.WebForm1 is a partial class that inherits from System.Web.UI.Page.
>
> I "assume" it is contained in the HelloWorld.dll.   All of these files are in the same directory as the aspx file )
>
>
> _______________________________________________
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20130707/03905876/attachment-0001.html>


More information about the Mono-aspnet-list mailing list