PDA

View Full Version : Coolite 0.82 on Mono



helmishariff
Feb 04, 2010, 3:14 AM
Hi, I successfully run coolite 0.8 on Mono but having problem with ver. 0.82. I just got white blank page. No error, except if I put ExtraParams.



<ExtraParams>
<ext:Parameter Name="nama" Value="test"></ext:Parameter>
</ExtraParams>



Error message:


Parser Error Message: <code>Cannot add a
Coolite.Ext.Web.Parameter to System.String</code></p>

<code>
</code></p>

Update:</p>

I made some mistake. I uploaded to old mono version. Ver 0.82 running on latest Mono. Except with the ExtraParam.</p>

helmishariff
Feb 12, 2010, 3:50 PM
Updated:

It run fine using mono with Visual Studio (Mono Tools) on Windows 7, error (ExtraParams) on Linux or Mac.

BerndDA
Feb 17, 2010, 2:44 AM
Hello,

I am also very interested in running coolite on Mono.
As far as I can see using MoMa, it should work. The error is thrown at compile time, so it should not be too difficult to fix it.
Unfortunately I don't know where to look at either...


Regards


Bernd

helmishariff
Feb 17, 2010, 3:08 AM
Last time I have made some modification on ver. 0.8 source code. Not have time to look into 0.82 yet.

BerndDA
Feb 18, 2010, 2:28 AM
I can confirm that the error is still present on coolite 1.0 from SVN

Vladimir
Feb 18, 2010, 7:12 AM
Hi,

Can you point the number of line and class name where the compilation error occurs?

BerndDA
Feb 18, 2010, 7:20 AM
Hi,

sorry, my last post was a little unclear.
The error is not at compile time of the code-behind, but when the aspx pages are compiled at runtime by mono. So unfortunately there is no line number.


I may provide a screenshot of the complete message this evening.


Regards


Bernd

Vladimir
Feb 18, 2010, 7:26 AM
Hi,

Yes, please. Screenshot will be useful

BerndDA
Feb 19, 2010, 2:44 AM
Hi,

attached is a screenshot. Of the Examples running on Mono.
The debug message is as foolows:


******* DEBUG MODE MESSAGE *******
Code generation for certain virtual paths in a batch failed. Those files have be
en removed from the batch.
Since you're running in debug mode, here's some more information about the error
:
Failed file virtual path: /Code/UI/Commentswindow.ascx; Exception:
System.Web.Compilation.ParseException: Cannot add a Ext.Net.Parameter to System.
String ---> System.Web.HttpException: Cannot add a Ext.Net.Parameter to System.S
tring
at System.Web.UI.CollectionBuilder.GetChildControlTyp e (System.String tagName,
IDictionary attribs) [0x00000] in <filename unknown>:0
at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid, System.
Collections.Hashtable atts, System.Type childType, System.Web.UI.TemplateParser
parser, ILocation location) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, System.
String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype, System
.Boolean&amp; ignored) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Web.Compilation.AspGenerator.ProcessTag (ILocation location, System.
String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype, System
.Boolean&amp; ignored) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType
tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [
0x00000] in <filename unknown>:0
at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.Strin
g id, System.Web.Compilation.TagAttributes attributes) [0x00000] in <filename un
known>:0
at System.Web.Compilation.AspParser.Parse () [0x00000] in <filename unknown>:0


at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, Sys
tem.String filename, Boolean doInitParser) [0x00000] in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x00000] i
n <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x0
0000] in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System
.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000] in <filename unknown
>:0
at System.Web.Compilation.BuildManager.GenerateAssemb ly (System.Web.Compilatio
n.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, Sys
tem.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0


******* DEBUG MODE MESSAGE *******

ZIgi
Feb 26, 2010, 3:46 AM
Hi, we have same problem with ajax parameters. Error appears during parse of aspx markup, so easy workaround is to use web deployment feature(it's not in in VS distributive, should be downloaded and istalled to Visual Studio separetly) to precompile application on Windows and then deploy binaries to Linux - seems to work fine with Coolite v 0.82 

BerndDA
Mar 01, 2010, 2:13 AM
Hi,

precompilation should work. Unfortunately this is not available on Mono 1.9 which is the latest stable version on Debian Lenny.
So it would be great if someone at coolite could have a look at the issue.


Bernd

sandeepan.kundu
Mar 17, 2010, 7:58 AM
I am also trying it for couple of days, getting similar error, using coolite version 8.0.

I need to make the application running in Linux for our client ASAP.

Can someone let me know about it. Currently i am using Suse Linux 11.2 with mono and monodevelop.

=================
Error Message
=================
<h1>Server Error in '/' Application</h1><hr style="color: silver;"><h2>Parser Error</h2>


Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.
</p>


Parser Error Message: <code>Cannot add a Coolite.Ext.Web.Parameter to System.String</code></p>

Source Error: </p>
<table summary="Source error" class="sampleCode">
<tbody><tr><td><code></code>Line 144: <Click OnEvent="btnLogin_Click">
Line 145: <ExtraParams>
Line 146: <ext:Parameter Name="ForceConfirm" Mode="Value" Value="false" Encode="false" />
Line 147: <ext:Parameter Name="ConfirmationShown" Mode="Value" Value="false" Encode="false" />
Line 148: </ExtraParams>
<code></code>
</td></tr>
</tbody></table>



Source File: /home/XXXXXX/XXXXXXXXXXXX/XXXXXXXXXXXX/XXXX/Login.aspx Lines: 146, 146</p><hr style="color: silver;">Version information: Mono Runtime Version: <tt>2.6.1 (tarball Thu Dec 17 17:24:22 UTC 2009)</tt>; ASP.NET Version: <tt>2.0.50727.1433</tt>

sandeepan.kundu
Mar 17, 2010, 8:17 AM
Updated the version to available commercial download 0.82.

But the issue persists.

helmishariff
Mar 22, 2010, 7:20 AM
Is this problem exist in ver. 1?

sandeepan.kundu
Mar 22, 2010, 9:33 AM
Havn't checked with version 1.

Do I need to download version 1 from SVN?


can someone help me there also ?

helmishariff
Mar 22, 2010, 9:40 AM
Yes.

sandeepan.kundu
Mar 22, 2010, 1:39 PM
I guess the svn /trunk/ contains only the 0.82 build.

Where can i get version 1.0 ?

geoffrey.mcgill
Mar 22, 2010, 2:04 PM
The v1.0 source is contained in the /branches/ directory, instead of the /trunk/.

http://forums.ext.net/showthread.php?threadid=15523-12-1.aspx

helmishariff
Mar 23, 2010, 9:50 AM
I'm able to run fine using mono on Windows pc but error on Linux and MacOS. Are there any OS specific function required?

*Run the project from Monodevelop and Visual Studio with mono plugin.

helmishariff
Mar 24, 2010, 12:13 AM
sandeepan.kundu, can you confirm it is working on latest ver. 1.0? Thanks. <meta charset="utf-8"><h2 style="margin-top: 6px !important; margin-right: 0px !important; margin-bottom: -12px !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: inherit; font-size: 1.5em; font-family: Arial, Verdana, Arial, Helvetica, Helvetica, sans-serif; vertical-align: baseline; text-transform: none; color: rgb(14, 159, 163); ">
</h2>

sandeepan.kundu
Mar 24, 2010, 4:29 AM
<h2 style="margin-top: 6px !important; margin-right: 0px !important; margin-bottom: -12px !important; margin-left: 0px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: bold; font-style: inherit; font-size: 1.5em; font-family: Arial, Verdana, Arial, Helvetica, Helvetica, sans-serif; vertical-align: baseline; text-transform: none; color: rgb(14, 159, 163); "><div id="ctl10_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl14 _smAuthorName_SimpleMenuDivLayer" &#111;nclick="InstantASP_OpenMenu('ctl10_ctlTopic_ctlPanelBar_ct lTopicsRepeater_ctl14_smAuthorName','ctl10_ctlTopi c_ctlPanelBar_ctlTopicsRepeater_ctl14_smAuthorName _SimpleMenuDivLayer','<table class=forum-menu><tr><td><table><tr><td class=forum-menuitem><a href=UserInfo496.aspx class=\'\' title=\'View Member\s Profile\'>View Member\'s Profile</a></tr><tr><td class=forum-menuitem><a href=BuddyIgnoreList1.aspx?Username=helmishariff class=\'\' title=\'Add to Buddy List\'>Add to Buddy List</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendPrivateMessage\',\'496\ '); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Private Message\'>Send Private Message</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendEmail\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Email To Member\'>Send Email To Member</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butShowMemberPosts\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Find All Member\s Posts\'>Find All Member\'s Posts</a></tr></td></tr></table></td></tr></table>','165px');" &#111;nmouseover="InstantASP_OpenMenuMouseOver('ctl10_ctlTopic_ctlPa nelBar_ctlTopicsRepeater_ctl14_smAuthorName','ctl1 0_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl14_smA uthorName_SimpleMenuDivLayer','<table class=forum-menu><tr><td><table><tr><td class=forum-menuitem><a href=UserInfo496.aspx class=\'\' title=\'View Member\s Profile\'>View Member\'s Profile</a></tr><tr><td class=forum-menuitem><a href=BuddyIgnoreList1.aspx?Username=helmishariff class=\'\' title=\'Add to Buddy List\'>Add to Buddy List</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendPrivateMessage\',\'496\ '); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Private Message\'>Send Private Message</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendEmail\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Email To Member\'>Send Email To Member</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butShowMemberPosts\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Find All Member\s Posts\'>Find All Member\'s Posts</a></tr></td></tr></table></td></tr></table>','165px');" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 17px; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); display: inline; ">@helmishariff (void('');),
<div id="ctl10_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl14 _smAuthorName_SimpleMenuDivLayer" &#111;nclick="InstantASP_OpenMenu('ctl10_ctlTopic_ctlPanelBar_ct lTopicsRepeater_ctl14_smAuthorName','ctl10_ctlTopi c_ctlPanelBar_ctlTopicsRepeater_ctl14_smAuthorName _SimpleMenuDivLayer','<table class=forum-menu><tr><td><table><tr><td class=forum-menuitem><a href=UserInfo496.aspx class=\'\' title=\'View Member\s Profile\'>View Member\'s Profile</a></tr><tr><td class=forum-menuitem><a href=BuddyIgnoreList1.aspx?Username=helmishariff class=\'\' title=\'Add to Buddy List\'>Add to Buddy List</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendPrivateMessage\',\'496\ '); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Private Message\'>Send Private Message</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendEmail\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Email To Member\'>Send Email To Member</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butShowMemberPosts\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Find All Member\s Posts\'>Find All Member\'s Posts</a></tr></td></tr></table></td></tr></table>','165px');" &#111;nmouseover="InstantASP_OpenMenuMouseOver('ctl10_ctlTopic_ctlPa nelBar_ctlTopicsRepeater_ctl14_smAuthorName','ctl1 0_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl14_smA uthorName_SimpleMenuDivLayer','<table class=forum-menu><tr><td><table><tr><td class=forum-menuitem><a href=UserInfo496.aspx class=\'\' title=\'View Member\s Profile\'>View Member\'s Profile</a></tr><tr><td class=forum-menuitem><a href=BuddyIgnoreList1.aspx?Username=helmishariff class=\'\' title=\'Add to Buddy List\'>Add to Buddy List</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendPrivateMessage\',\'496\ '); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Private Message\'>Send Private Message</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butSendEmail\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Send Email To Member\'>Send Email To Member</a></tr><tr><td class=forum-menuitem><a href=__doPostBack(\'butShowMemberPosts\',\'496\'); &#111;nmouseover=\'window.status=window.location;re turn true;\'; &#111;nmouseout=window.status=\'\';return true; class=\'\' title=\'Find All Member\s Posts\'>Find All Member\'s Posts</a></tr></td></tr></table></td></tr></table>','165px');" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-style: inherit; font-family: inherit; vertical-align: baseline; color: rgb(51, 51, 51); display: inline; ">still didn't tried it since the assembly name has changed to Ext.Net. And multiple places changing is required which is currently difficult. Waiting for client's confirmation for the required changes.
</h2>

helmishariff
Mar 24, 2010, 9:30 AM
Can you try some basic Coolite samples with version 1 since I don't have access to SVN. Thanks.

sandeepan.kundu
Mar 31, 2010, 10:00 AM
Still the error exits in Ext.Net 1.0 as well.

The issue is not yet solved.

Vladimir
Mar 31, 2010, 10:04 AM
Hi,

I think it is Mono problem under the Linux (incorrect parsing). I am doubt that we can fix the problem on our side.
Did you try to use Parameter in the code behind instead markup?

helmishariff
Mar 31, 2010, 12:00 PM
It's happen on MacOS too. May I know which file I can look into? I can try to recompile source using Mono. Thanks

helmishariff
Apr 06, 2010, 9:28 AM
As suggested by <meta charset="utf-8">Vladimir, it working fine in code behind.

reverseblade
Apr 13, 2010, 7:19 AM
Did you try Mono 2.6.

sandeepan.kundu
Apr 13, 2010, 7:48 AM
Yes. i tried with Mono 2.6.
As said by vladimir ("") i tried with code behind and bingo it worked.

reverseblade
Apr 13, 2010, 9:42 AM
sorry my post was wrong. I meant Did you try Mono 2.6.3 not 2.6. Mono devs say this should have been fixed in mono 2.6.3

helmishariff
Apr 14, 2010, 4:07 AM
Still same result with latest mono. I'm always update my mono version on my Mac &amp; Opensuse.

mono --version
Mono JIT compiler version 2.6.3 (tarball Wed Mar 10 18:18:12 MST 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none

reverseblade
Apr 14, 2010, 4:20 AM
See this post. The guy made working coolite 1.0 on mono

http://forums.ext.net/showthread.php?threadid=31022-16-2.aspx#bm31088

helmishariff
Apr 14, 2010, 8:14 AM
I don't have access to SVN. I download the JSON.net project from here http://ext.net/download/1-0-0/Json.NET.zip and compiled using monodevelop. Use the dll file in asp.net ver 1 preview sample but still get same error. I will ask him to provide project file.

angel colmenares
Apr 26, 2010, 1:46 PM
could you say how to move:

<ExtraParams>
<ext:Parameter Name="values" Value="#{FormPanel1}.getForm().getValues()" Mode="Raw" />
</ExtraParams>
from xml markup to codebehind?

i'am testing Form-CompositeField-Overview in mono

r_honey
May 01, 2010, 3:01 PM
Hi Angel, suppose the ExtraParams have been specified for control with Id ctl1. Then use the following:



ctl1.ExtraParams.Add(new Ext.Net.Parameter(){Name="values", Value="#{FormPanel1}.getForm().getValues()", Mode="Raw"});


Change Ext.Net.Parameter to Coolite.Ext.Web.Parameter if you are on a version previous than 1.0.

angel colmenares
May 01, 2010, 4:21 PM
thanks , your code works fine !

Timur.Akhmerov
May 05, 2010, 8:44 AM
This bug is now fixed in Mono trunk (see https://bugzilla.novell.com/show_bug.cgi?id=601290) and the fix will be in Mono-2.6.5.

angel colmenares
May 05, 2010, 1:52 PM
it seems that works well.

I applied the patch to my mono-2.6.4 on ubuntu 10.04,
downloaded code from example "Desktop" ( Coolite 1.0)
and ran perfectly on my machine without any change

I tested other examples like :
"ListView/Basic/Overview /"
"GridPanel/Miscellaneous/Submit_Two_Grids /"
"TreePanel/Advanced/TreeGrid"
"Keys/Panel_Keys/Grid_Rows_Delete"
"Form/FormPanel/Basic/"
"Form/FormPanel/Validation"
"GridPanel/System.Data/DataTable/"
and they all run fine.


but when I run the example "TreePanel / Advanced / ColumnTree" this exception occurs:

<h1>Server Error in '/' Application</h1><hr style="color: silver;"><h2>Literal
content not allowed for Ext.Net.TreeNodeUIProviders</h2>


Description: HTTP 500. Error processing request.</p>


Stack Trace: </p><table summary="Stack Trace" class="sampleCode">
<tbody><tr><td>System.Web.HttpException: Literal content not allowed for Ext.Net.TreeNodeUIProviders
at System.Web.UI.CollectionBuilder.AppendLiteralStrin g (System.String s) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.FlushText (Boolean ignoreEmptyString) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.TextParsed (ILocation location, System.String text) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspParser.Parse () [0x00000] in <filename unknown>:0
at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00000] in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x00000] in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] in <filename unknown>:0
at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000] in <filename unknown>:0
at System.Web.Compilation.BuildManager.GenerateAssemb ly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 </td></tr>
</tbody></table>
<hr style="color: silver;">Version information: Mono
Runtime Version: <tt>2.6.4 (tarball sáb may 1 14:50:33 COT 2010)</tt>;
ASP.NET Version: <tt>2.0.50727.1433</tt>

helmishariff
Jun 01, 2010, 12:18 PM
Version 1.0 preview run fine on Mono 2.6.5. Mac &amp; Opensuse.