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

William Ivanski william.ivanski at gmail.com
Sat Jul 6 02:26:31 UTC 2013


Good time of the day, Wardell,

Yes, it is possible.

If you were using XSP, all you need is run XSP with the "--root" option 
set to "/var/www/HelloWorld".
Thus, it is expected that all .aspx and .aspx.cs files are in this folder.

But, with Apache mod_mono, you will need to configure HelloWorld to be 
an application. More info on [1].

[1] http://gonzalo.name/blog/files/mod_mono.html

--
William Ivanski

On 05-07-2013 15:40, Wardell Castles 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/20130705/a8a48fa0/attachment.html>


More information about the Mono-aspnet-list mailing list