[Mono-dev] Can I use mod_mono with xsp2

Joe Audette joe_audette at yahoo.com
Sun Nov 20 16:42:30 EST 2005


Since I couldn't get mojoportal working with the 2.0 xsp I tried a simple web project in VS 2005 and still get an error.
 
 All it is is a single page with a TextBox, in the page load I set the .Text = "Hello Web";
 I build and publish it in VS 2005 and deploy the results on Suse 10 with mono compiled from svn r53282
 
 and I get this error which you can see at http://demo3.mojoportal.com
 
 Compilation Error
 Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
 
 Error message: /tmp/wwwrun-temp-aspnet-0/864fec59/25962.0.cs(26,26) : error CS8025: Parsing error
 
 File name: /webshare/test20/Default.aspx
 
 Source File: /tmp/wwwrun-temp-aspnet-0/864fec59/25962.0.cs
 
 Line 1: // ------------------------------------------------------------------------------
 Line 2: //  <autogenerated>
 Line 3: //      This code was generated by a tool.
 Line 4: //      Mono Runtime Version: 2.0.50727.42
 Line 5: // 
 Line 6: //      Changes to this file may cause incorrect behavior and will be lost if 
 Line 7: //      the code is regenerated.
 Line 8: //  </autogenerated>
 Line 9: // ------------------------------------------------------------------------------
 Line 10: 
 Line 11: namespace ASP {
 Line 12:     using System;
 Line 13:     using System.Collections;
 Line 14:     using System.Collections.Specialized;
 Line 15:     using System.Configuration;
 Line 16:     using System.Text;
 Line 17:     using System.Text.RegularExpressions;
 Line 18:     using System.Web;
 Line 19:     using System.Web.Caching;
 Line 20:     using System.Web.Security;
 Line 21:     using System.Web.SessionState;
 Line 22:     using System.Web.UI;
 Line 23:     using System.Web.UI.WebControls;
 Line 24:     using System.Web.UI.HtmlControls;
 Line 25:     
 Line 26:     public class _Default, App_Web_default.aspx.cdcab7d2 : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {
 Line 27:         
 Line 28:         private static bool __intialized = false;
 Line 29:         
 Line 30:         private static int __autoHandlers;
 Line 31:         
 Line 32:         protected System.Web.UI.HtmlControls.HtmlHead _bctrl_1;
 Line 33:         
 Line 34:         protected System.Web.UI.HtmlControls.HtmlTitle _bctrl_2;
 Line 35:         
 Line 36:         protected System.Web.UI.WebControls.TextBox txtHelloWorld;
 Line 37:         
 Line 38:         protected string _bctrl_3;
 Line 39:         
 Line 40:         protected System.Web.UI.HtmlControls.HtmlForm form1;
 Line 41:         
 Line 42:         public _Default, App_Web_default.aspx.cdcab7d2() {
 Line 43:             if ((ASP._Default, App_Web_default.aspx.cdcab7d2.__intialized == false)) {
 Line 44:                 ASP._Default, App_Web_default.aspx.cdcab7d2.__intialized = true;
 Line 45:             }
 Line 46:         }
 Line 47:         
 Line 48:         protected override int AutoHandlers {
 Line 49:             get {
 Line 50:                 return ASP._Default, App_Web_default.aspx.cdcab7d2.__autoHandlers;
 Line 51:             }
 Line 52:             set {
 Line 53:                 ASP._Default, App_Web_default.aspx.cdcab7d2.__autoHandlers = value;
 Line 54:             }
 Line 55:         }
 Line 56:         
 Line 57:         protected System.Web.HttpApplication ApplicationInstance {
 Line 58:             get {
 Line 59:                 return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
 Line 60:             }
 Line 61:         }
 Line 62:         
 Line 63:         public override string TemplateSourceDirectory {
 Line 64:             get {
 Line 65:                 return "/";
 Line 66:             }
 Line 67:         }
 Line 68:         
 Line 69:         private void __BuildControlTree(System.Web.UI.Control __ctrl) {
 Line 70:             System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
 Line 71:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" >\n"));
 Line 72:             this.__BuildControl__bctrl_1();
 Line 73:             __parser.AddParsedSubObject(this._bctrl_1);
 Line 74:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n"));
 Line 75:             this.__BuildControl_txtHelloWorld();
 Line 76:             __parser.AddParsedSubObject(this.txtHelloWorld);
 Line 77:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n<body>\n    "));
 Line 78:             this.__BuildControl_form1();
 Line 79:             __parser.AddParsedSubObject(this.form1);
 Line 80:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n</body>\n</html>\n"));
 Line 81:         }
 Line 82:         
 Line 83:         private System.Web.UI.Control __BuildControl__bctrl_1() {
 Line 84:             System.Web.UI.HtmlControls.HtmlHead __ctrl;
 Line 85:             __ctrl = new System.Web.UI.HtmlControls.HtmlHead("head");
 Line 86:             this._bctrl_1 = __ctrl;
 Line 87:             this.__BuildControl__bctrl_2();
 Line 88:             System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
 Line 89:             __parser.AddParsedSubObject(this._bctrl_2);
 Line 90:             return __ctrl;
 Line 91:         }
 Line 92:         
 Line 93:         private System.Web.UI.Control __BuildControl__bctrl_2() {
 Line 94:             System.Web.UI.HtmlControls.HtmlTitle __ctrl;
 Line 95:             __ctrl = new System.Web.UI.HtmlControls.HtmlTitle();
 Line 96:             this._bctrl_2 = __ctrl;
 Line 97:             System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
 Line 98:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("Untitled Page"));
 Line 99:             return __ctrl;
 Line 100:         }
 Line 101:         
 Line 102:         private System.Web.UI.Control __BuildControl_txtHelloWorld() {
 Line 103:             System.Web.UI.WebControls.TextBox __ctrl;
 Line 104:             __ctrl = new System.Web.UI.WebControls.TextBox();
 Line 105:             this.txtHelloWorld = __ctrl;
 Line 106:             __ctrl.ID = "txtHelloWorld";
 Line 107:             this.__BuildControl__bctrl_3(__ctrl.Text);
 Line 108:             return __ctrl;
 Line 109:         }
 Line 110:         
 Line 111:         private void __BuildControl__bctrl_3(string __ctrl) {
 Line 112:         }
 Line 113:         
 Line 114:         private System.Web.UI.Control __BuildControl_form1() {
 Line 115:             System.Web.UI.HtmlControls.HtmlForm __ctrl;
 Line 116:             __ctrl = new System.Web.UI.HtmlControls.HtmlForm();
 Line 117:             this.form1 = __ctrl;
 Line 118:             __ctrl.ID = "form1";
 Line 119:             System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
 Line 120:             __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n    <div>\n    \n    </div>\n    "));
 Line 121:             return __ctrl;
 Line 122:         }
 Line 123:         
 Line 124:         protected override void FrameworkInitialize() {
 Line 125:             this.TraceModeValue = System.Web.TraceMode.SortByTime;
 Line 126:             this.Request.ValidateInput();
 Line 127:             this.__BuildControlTree(this);
 Line 128:         }
 Line 129:         
 Line 130:         public override int GetTypeHashCode() {
 Line 131:             return 390505215;
 Line 132:         }
 Line 133:     }
 Line 134:     
 Line 135: }
 
 

Elliott Draper <el at eldiablo.co.uk> wrote: Joe Audette wrote:

> doh! nevermind I found them. On my machine its
> /usr/lib/xsp/1.0/mod-mono-server.exe
> and
> /usr/lib/xsp/2.0/mod-mono-server2.exe
>
> Thanks Again!

No problems, glad you found them; I must have installed Mono and XSP 
into the same folders on my box.

Let me know how you get on porting MojoPortal to Mono 2.0 / VS2005, I'd 
be quite interested to hear your experiences of moving a fairly big web 
app like that across to the 2.0 profile :-)

>
> Joe

Cheers,
-= El =-
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list




joe_audette [at] yahoo dotcom
http://www.joeaudette.com
http://www.mojoportal.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051120/168bb947/attachment.html 


More information about the Mono-devel-list mailing list