Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/10/2006 5:48:08 AM
Gravatar
Total Posts 23

Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

I am trying to get mp W3C conform and therefore I am working with the current 794 revision from svn. Hence I must change several *.ascx.cs files (MetaContent.ascx.cs etc.) I must also recompile the DLL files in the bin dir. Though I can not build mp with Monodevelop without commenting out some mojoSetup.* methods because the compiler reports

[Task:File=/var/www/mojoportal/trunk/Web/Global.asax.cs, Line=97, Column=5, Type=Error, Description=The name `mojoSetup' does not exist in the context of `mojoPortal.Web.Global'(CS0103)

If I comment out this lines, I can build mp. Afterwards I copy the DLLs from /mojoportal/trunk/Web/bin to my current working bin dir. But when I restart xsp after it, xsp reports:

################Error msg
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:
System.Exception: Unhandled Exception while processing NeatUpload child request ---> System.ArgumentOutOfRangeException: Field name not found
Parameter name: fieldName
LdapUserDNKey
in <0x0021b> Npgsql.NpgsqlRowDescription:FieldIndex (System.String fieldName)
in <0x00037> Npgsql.NpgsqlDataReader:get_Item (System.String name)
in <0x0180c> mojoPortal.Business.SiteSettings:GetSiteSettings (System.String hostName, Int32 pageIndex, Int32 pageID)
in <0x000a6> mojoPortal.Business.SiteSettings:.ctor (System.String hostName, Int32 pageIndex, Int32 pageID)
in <0x00286> mojoPortal.Web.Global:GetSiteSettings ()--- End of inner exception stack trace ---

in <0x0056a> Brettle.Web.NeatUpload.UploadHttpModule:Application_BeginRequest (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0046f> System.Web.HttpApplication+<RunHooks>__0:MoveNext ()
################/Error msg

So I must overwrite the new files with the bin files from the mp ZIP file to start the portal.
2/10/2006 6:15:08 AM
Gravatar
Total Posts 18439

Re: Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

That file was added recently to the vs solution and is in svn. it just needs to be added to the MD project so MD sees it.

That said. I think it is a waste of effort myself to try and get the 1.x branch of mojoportal to w3c conformity because it is not possible given that the underlying framework does not emit compliant markup, you will not be able to get all the way there.

I can't promise that I am willing to integrate patches for that for you in the 1.x branch as I am busy working on the same goal in the 2.1 branch. Maybe Dean will think different and be willing to coordinate with you to apply patches for that in the 1.x branch.

I wish it were possible to work on the 2.1 branch on linux so we could divide and conquer but I donj't think that is possible at this time.
2/10/2006 7:08:59 AM
Gravatar
Total Posts 23

Re: Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

What`s about the 1.0 branch? It`s buildable without errors and I could modify the *.ascs.cs files and use the built DLLs - everything went well. Are there any security relevant bugs?

I will use the 1.0 branch for further Mono related development or shouldn`t I do that?
2/10/2006 8:03:16 AM
Gravatar
Total Posts 18439

Re: Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

The 1.0 branch is not meant for general development. Its purpose is for if there were any major bugs or security issues to fix if we were not ready to release the next 1.x version from trunk.

trunk is the correct branch for 1.x development. Have you tried adding the missing file to MonoDevelop that was causing your previous build error? Normally Dean adds new files to MD and I'm sure he will get to it when he has a chance, but you should be able to add it yourself and get past the build error. The file is mojoSetup.cs and it should be on disk in the business layer project because it was commited to svn. It just needs to be included in the Business project for MD

The error about the missing field named ldapuserdnkey can be overcome by running the postgre-upgradefrom1-0tonext.sql file to add the missing column
2/10/2006 11:30:20 AM
Gravatar
Total Posts 23

Re: Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

After I've added mojoSetup.cs to mojoPortal.Business the compilation were performed without any errors. Afterwards I've run the script postgre-upgradefrom1-0tonext.sql, which was exectuted successful for the first time. But I still get the following error:

#######################Error
System.Exception: Unhandled Exception while processing NeatUpload child request ---> System.ArgumentOutOfRangeException: Field name not found
Parameter name: fieldName
LdapUserDNKey
in <0x0021b> Npgsql.NpgsqlRowDescription:FieldIndex (System.String fieldName)
in <0x00037> Npgsql.NpgsqlDataReader:get_Item (System.String name)
in <0x0180c> mojoPortal.Business.SiteSettings:GetSiteSettings (System.String hostName, Int32 pageIndex, Int32 pageID)
in <0x000a6> mojoPortal.Business.SiteSettings:.ctor (System.String hostName, Int32 pageIndex, Int32 pageID)
in <0x00286> mojoPortal.Web.Global:GetSiteSettings ()--- End of inner exception stack trace ---

in <0x0056a> Brettle.Web.NeatUpload.UploadHttpModule:Application_BeginRequest (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0046f> System.Web.HttpApplication+<RunHooks>__0:MoveNext ()
#######################/Error
2/10/2006 4:14:54 PM
Gravatar
Total Posts 18439

Re: Making mp W3C conform...: Building mp with Monodevelop on Linux from svn src

oh I forgot, you also need to re-run the sql file to re-create all the stored procedures as they were also modified to include the new field.

Sorry it took so long to get back to you. I just got home from visiting some family.

Cheers,

Joe
You must sign in to post in the forums. This thread is closed to new posts.