Error adding content to child site

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/4/2009 4:35:06 PM
Gravatar
Total Posts 38

Error adding content to child site

 Hi,

I tried to create multiple sites based on folder names. I set the following Web.config values:

<add key="UseRelatedSiteMode" value="true"/>

<add key="RelatedSiteModeHideRoleManagerInChildSites" value="false"/>

<add key="AllowMultipleSites" value="true" />

<add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="true" />

I created a child site through "new site" in "site settings", I added "myfolder" to "Folder site mapping" and created the http://my-domain/myfolder/Default.aspx empty file. If I try to add, for example, "Html Content" through the "Features" tab, server log says:

ERROR mojoPortal.Web.Global - 192.168.74.1-it-IT - /Admin/SiteSettings.aspx?SiteID=2
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Npgsql.NpgsqlException:
column "__siteguid" does not exist
Severity: ERROR
Code: 42703
at Npgsql.NpgsqlState+<ProcessBackendResponses_Ver_3>c__Iterator1.MoveNext () [0x00000]
at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject () [0x00000]
--- End of inner exception stack trace ---
at System.Web.UI.Page.ProcessException (System.Exception e) [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000]
at System.Web.HttpApplication.Tick () [0x00000]

Furthermore, if I visit http://my-domain/myfolder, server returns blank page. How could I fix?

Thanks,

LB

1/5/2009 7:02:12 AM
Gravatar
Total Posts 18439

Re: Error adding content to child site

I confirm this as a bug in the pgsql version of mojoPortal. I've fixed it in my local copy so it will be fixed in svn trunk within a few days and will be fixed in the next release coming soon.

Best,

Joe

1/5/2009 7:29:49 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Thanks Joe,

and viewing a blank page visiting http://my-domain/myfolder depends on this bug?

1/5/2009 7:31:39 AM
Gravatar
Total Posts 18439

Re: Error adding content to child site

Yes, if the child site has no features all you will have is a blank page.

1/6/2009 3:02:29 PM
Gravatar
Total Posts 38

Re: Error adding content to child site

I see you released 2-2-8-2 version. Does it contain the fix yet?

1/6/2009 3:08:08 PM
Gravatar
Total Posts 18439

Re: Error adding content to child site

It does, but not for Mono. It will be another day or 2 before I can produce a package for Mono due to problems with my machine.

Best,

Joe

1/7/2009 12:31:23 PM
Gravatar
Total Posts 18439

Re: Error adding content to child site

I finally uploaded the package for Mono, but I'm not 100% sure if it works using Mono 2.0.1, it does work using Mono built from svn and should work with the upcoming 2.2 release of Mono.

Best,

Joe

1/9/2009 4:09:38 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

Thanks Joe,

I tried to upgrade to 2-2-8-2 (from mojoportal-2-2-8-1-pgsqlreleasefiles-for-mono to mojoportal-2-2-8-2-pgsqlreleasefiles-for-mono) with Mono 2.0.1. It upgraded successfully, but visiting portal home, I get

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: CS0029: Cannot implicitly convert type `System.Web.UI.ScriptManager' to `System.Web.UI.ScriptManager'

Source Error:

Line 20: <asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
Line 21: <asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />
Line 22: <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" />
Line 23: <div id="wrapwebsite">
Line 24: <div id="wrapheader">


Source File: /var/www/html/mojoportal/App_MasterPages/layout.Master Line: 22

Show Detailed Compiler Output:

gmcs /target:library /debug- /optimize+ /warn:0 /out:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_13f1823d.dll" /r:"/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll" /r:"/usr/local/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll" /r:"/usr/local/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll" /r:"/usr/local/lib/mono/gac/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll" /r:"/usr/local/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll" /r:"/usr/local/lib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll" /r:"/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll" /r:"/usr/local/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll" /r:"/usr/local/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll" /r:"/usr/local/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll" /r:"/usr/local/lib/mono/gac/System.Data.DataSetExtensions/3.5.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/935cd5f7/fa18f655_694423a2_00000001/AjaxControlToolkit.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/30e53d1a/59a11eb8_694423a2_00000001/Argotic.Common.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/27ba230e/4efe00ac_694423a2_00000001/Argotic.Core.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/74333e43/1d771de1_694423a2_00000001/Argotic.Extensions.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/c3503985/aa141a27_694423a2_00000001/Brettle.Web.NeatHtml.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/13d30802/7a972ba0_694423a2_00000001/Brettle.Web.NeatHtmlTools.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/d48d5bdb/bdc97879_694423a2_00000001/Brettle.Web.NeatUpload.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/3915a6a4/50518506_694423a2_00000001/CSSFriendly.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/af03f082/c647d320_694423a2_00000001/CookComputing.XmlRpcV2.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/df8c9b4f/b6c8b8ed_694423a2_00000001/DotNetOpenId.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/94a76e6b/fde34dc9_694423a2_00000001/DotNetOpenMail.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/873fca23/ee7be981_694423a2_00000001/GCheckout.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/7002b0a5/19469307_694423a2_00000001/Jayrock.Json.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/8f4bb2dd/e60f917f_694423a2_00000001/Jayrock.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/b9a45dc7/d0e07e65_694423a2_00000001/Lucene.Net.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/4637b2eb/2f739149_694423a2_00000001/MetaDataExtractor.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/b23ad261/db7ef1c3_694423a2_00000001/Mono.Security.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/a19d874f/c8d9a4ed_694423a2_00000001/Newtonsoft.Json.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/58f4fd9c/31b0de3e_694423a2_00000001/Novell.Directory.Ldap.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/a232aa5f/cb7689fd_694423a2_00000001/Npgsql.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/07b4ddfd/6ef0fe5f_694423a2_00000001/OpenPOP.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/c8ba1aa7/a1fe3905_694423a2_00000001/Org.Mentalis.Security.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/3a519137/5315b295_694423a2_00000001/RSS.NET.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/d89190d3/b1d5b371_694423a2_00000001/SharpMimeTools.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/5ed434e1/37901743_694423a2_00000001/SiteOffice.Business.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/cae0ad4b/a3a48ee9_694423a2_00000001/SiteOffice.Data.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/a867e6c3/c123c561_694423a2_00000001/SiteOffice.ExternalMail.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/191c85d5/7058a677_694423a2_00000001/SiteOffice.UI.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/a5fcdb7d/ccb8f8df_694423a2_00000001/Subkismet.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/3ba86172/52ec42d0_694423a2_00000001/TimelineNet.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/59f43417/30b017b5_694423a2_00000001/WebStore.Business.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/341cb781/5d589423_694423a2_00000001/WebStore.Data.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/ef21a58b/86658629_694423a2_00000001/WebStore.UI.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/6c0d8891/0549ab33_694423a2_00000001/ZedGraph.Web.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/10cad1cb/798ef269_694423a2_00000001/ZedGraph.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/eb593da3/821d1e01_694423a2_00000001/log4net.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/c0f4d6ba/a9b0f518_694423a2_00000001/mojoPortal.Business.WebHelpers.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/46b8e231/2ffcc193_694423a2_00000001/mojoPortal.Business.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/4450829b/2d14a139_694423a2_00000001/mojoPortal.Data.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/d496b9cc/bdd29a6e_694423a2_00000001/mojoPortal.Features.Business.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/49e85fb6/20ac7c14_694423a2_00000001/mojoPortal.Features.Data.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/20b3d700/49f7f4a2_694423a2_00000001/mojoPortal.Features.UI.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/854a4bb8/ec0e681a_694423a2_00000001/mojoPortal.Net.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/bc990521/d5dd2683_694423a2_00000001/mojoPortal.Web.Controls.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/29300598/4074263a_694423a2_00000001/mojoPortal.Web.Editor.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/d357041f/ba1327bd_694423a2_00000001/mojoPortal.Web.Framework.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/assembly/shadow/6064b9ef/09209a4d_694423a2_00000001/mojoPortal.Web.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_global.asax.7b58e50.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_GlobalResources.1182ffd.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_48621bbf.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_5bd0cdba.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_4896fc43.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_309bb11d.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_71b2579d.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_52fd264b.dll" /r:"/tmp/apache-temp-aspnet-0/4dec321/App_Web_7b24a098.dll" -- "/tmp/apache-temp-aspnet-0/4dec321/App_Web_13f1823d_0.cs"

/var/www/html/mojoportal/App_MasterPages/layout.Master(22,18): error CS0029: Cannot implicitly convert type `System.Web.UI.ScriptManager' to `System.Web.UI.ScriptManager'
/var/www/html/mojoportal/App_MasterPages/layout.Master(22,18): The type `System.Web.UI.ScriptManager' has two conflicting definitions, one comes from `System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and the other from `System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' (in the previous error)


Show Complete Compilation Source:

Line 1: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="~/App_MasterPages/layout.Master.cs" Inherits="mojoPortal.Web.layout" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 4:
Line 5: <html xmlns="http://www.w3.org/1999/xhtml" >
Line 6: <head id="Head1" runat="server"><title></title>
Line 7: <link href="../App_DesignTimeStyle/style.css" type='text/css' rel='stylesheet' />
Line 8: <link href="../App_DesignTimeStyle/blogmodule.css" type='text/css' rel='stylesheet' />
Line 9: <link href="../App_DesignTimeStyle/aspcalendar.css" type='text/css' rel='stylesheet' />
Line 10: <link href="../App_DesignTimeStyle/stylemenu.css" type='text/css' rel='stylesheet' />
Line 11: <link href="../App_DesignTimeStyle/styletreeview.css" type='text/css' rel='stylesheet' />
Line 12: <portal:StyleSheet id="StyleSheet" runat="server" />
Line 13: <portal:IEStyleIncludes id="IEStyleIncludes1" runat="server" />
Line 14: <portal:MetaContent id="MetaContent" runat="server" />
Line 15: <portal:Favicon id="Favicon1" runat="server" />
Line 16: </head>
Line 17: <body class="pagebody">
Line 18: <form id="frmMain" runat="server">
Line 19: <asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />
Line 20: <asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />
Line 21: <asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />
Line 22: <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" />
Line 23: <div id="wrapwebsite">
Line 24: <div id="wrapheader">
Line 25: <portal:SiteTitle id="SiteTitle" runat="server"></portal:SiteTitle>
Line 26: <portal:SkipLink id="SkipLink1" runat="server" />
Line 27: <portal:SiteMenu id="SiteMenu1" runat="server"
Line 28: UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
Line 29: Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>
Line 30: <div class="topnav">
Line 31: <ul>
Line 32: <portal:WelcomeMessage id="WelcomeMessage" runat="server" RenderAsListItem="true" ListItemCSS="firstnav" />
Line 33: <portal:HomeLink id="HomeLink" runat="server" RenderAsListItem="true" />
Line 34: <portal:SiteMapLink id="SiteMapLink2" runat="server" CssClass="sitelink" RenderAsListItem="true" />
Line 35: <portal:MyPageLink id="MyPageLink1" runat="server" RenderAsListItem="true" />
Line 36: <portal:UserProfileLink id="UserProfileLink" runat="server" RenderAsListItem="true" />
Line 37: <portal:MailboxLink id="MailboxLink1" runat="server" RenderAsListItem="true" />
Line 38: <portal:MemberListLink id="MemberListLink" runat="server" RenderAsListItem="true" />
Line 39: <portal:RegisterLink id="RegisterLink" runat="server" RenderAsListItem="true" />
Line 40: <portal:SearchInput id="SearchInput1" LinkOnly="True" RenderAsListItem="true" runat="server" />
Line 41: <portal:LoginLink id="LoginLink" runat="server" RenderAsListItem="true" />
Line 42: <portal:LogoutLink id="LogoutLink" runat="server" RenderAsListItem="true" />
Line 43: </ul>
Line 44: </div>
Line 45: <div class="editpanel">
Line 46: <asp:contentplaceholder ID="pageEditContent" runat="server"></asp:contentplaceholder>
Line 47: </div>
Line 48: </div>
Line 49: <div id="wrapcenter">
Line 50: <asp:Panel id="divLeft" runat="server" cssclass="leftside" visible="True" SkinID="pnlPlain">
Line 51: <portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="true" />
Line 52: <a id="startcontent"></a>
Line 53: <asp:contentplaceholder ID="leftContent" runat="server"></asp:contentplaceholder>
Line 54: </asp:Panel>
Line 55: <asp:Panel id="divCenter" runat="server" visible="True" cssclass="center-rightandleftmargins" SkinID="pnlPlain">
Line 56: <portal:Breadcrumbs id="Breadcrumbs" runat="server"></portal:Breadcrumbs>
Line 57: <portal:ChildPageMenu id="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>
Line 58: <asp:ContentPlaceHolder ID="mainContent" runat="server"></asp:ContentPlaceHolder>
Line 59: </asp:Panel>
Line 60: <asp:Panel id="divRight" runat="server" visible="True" cssclass="rightside" SkinID="pnlPlain">
Line 61: <asp:contentplaceholder ID="rightContent" runat="server"></asp:contentplaceholder>
Line 62: </asp:Panel>
Line 63: </div>
Line 64: <div id="wrapfooter">
Line 65: <br class="clear" />
Line 66: <portal:SiteMapLink id="SiteMapLink1" runat="server" CssClass="sitemaplink" /> |
Line 67: <portal:SkinPreview id="SkinPreview1" runat="server"></portal:SkinPreview><br /><br />
Line 68: <portal:mojoPortalLink id="lnkmojoportal" UseImage="false" runat="server" /> |
Line 69: <portal:XhtmlValidatorLink id="lnkw3cValidator" UseImage="false" runat="server" /> |
Line 70: <portal:CSSValidatorLink id="lnkCSSVal1" UseImage="false" runat="server" /> |
Line 71: <a title="Visit the web site of the designer" href="http://www.styleshout.com/">Design by styleshout</a>
Line 72: </div>
Line 73: </div>
Line 74:
Line 75: </form>
Line 76: </body>
Line 77: </html>

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

Should I remove one System.Web.Extensions.dll? Which one?

Thanks,

LB

1/9/2009 6:07:56 AM
Gravatar
Total Posts 18439

Re: Error adding content to child site

If there is a System.Web.Extensions.dll in the big folder delete it, there should not be one as none is included in tha package. It should use the one in the GAC. I think the Mono 2.0.1 release must have some problems, they are very close to shipping 2.2, maybe that will be better, though at the  moment I'm also getting a different error (but still related to scriptmanager) using Mono built from svn as mentioned in this thread.

Best,

Joe

1/9/2009 8:14:03 AM
Gravatar
Total Posts 38

Re: Error adding content to child site

There are two System.Web.Extensions.dll in GAC:

[root@localhost ~]# gacutil -l System.Web.Extensions
The following assemblies are installed into the GAC:
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Number of items = 2

that seem to conflict. Are both of them needed by mojoPortal? I see line referencing to version 1 in web.config:

<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

1/9/2009 8:23:06 AM
Gravatar
Total Posts 18439

Re: Error adding content to child site

Try commenting out the web.config reference to 1.0 version and see if it helps or not.

Best,

Joe

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