an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > AskQuestion Block Container Editor
Last Post 11/13/2008 8:09:20 AM By Newmedia Design. 12 replies.
Page 1 of 2 (13 posts) << First < Prev 1 2 Next > Last >> 
11/7/2008 8:40:09 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
AskQuestion Block Container Editor
Hi Lukezy
 
When i  go to the askquestion .aspx and click on the block container advanced option i get the following error. Is there anything I can do to fix this?
 
 <PageBlockContainerData xmlns=''> was not expected.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: <PageBlockContainerData xmlns=''> was not expected.
Source Error:
Line 113:
Line 114:    private void SwitchToBlockEditor() {
Line 115:        blockContainerData = (BlockContainerData)Utils.FromXml(CurrentContainerType, Data.ToString());
Line 116:        switch (editModeParameter) {
Line 117:            case "edit":

Source File: d:\domains\development.ie\wwwroot\Controls\Blocks\BlockContainer.ascx.cs    Line: 115
Stack Trace:
[InvalidOperationException: <PageBlockContainerData xmlns=''> was not expected.]
   Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBlockContainerData.Read3_BlockContainerData() +118
[InvalidOperationException: There is an error in XML document (1, 2).]
   System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) +613
   System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) +102
   DotShoppingCart.Commercial.Core.Utils.FromXml(Type type, String xml) +60
   Controls_Blocks_BlockContainer.SwitchToBlockEditor() in d:\domains\development.ie\wwwroot\Controls\Blocks\BlockContainer.ascx.cs:115
   Controls_Blocks_BlockContainer.Page_Load(Object sender, EventArgs e) in d:\domains\development.ie\wwwroot\Controls\Blocks\BlockContainer.ascx.cs:102
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   Sys
 
11/7/2008 5:35:37 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: AskQuestion Block Container Editor
Can you tell me which block container you clicked? I think "AskQuestion" block doesn't have popup menu. And I cannot repro the issue when I clicked any other block container. Maybe you can post back the screenshot if possible.
DotShoppingCart Staff
11/11/2008 6:50:26 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: AskQuestion Block Container Editor
Hi Lukezy
 
I get this on a few pages. I have attached screen shots of the Askquestion and search pages where the error occurs.  Its <span title="Block Container 209" class="blockEditorHeaderTitle">Block Container 209 on the askquestion page and </span><span title="Block Container 300" class="blockEditorHeaderTitle">Block Container 300</span>for the search page. It happerns when i go to the advanced option as I want to edit the layout.
 
Thanks
 
<img src="http://development-ie.access.secure-ssl-servers.biz/search.jpg" alt="" />
 
<img src="http://development-ie.access.secure-ssl-servers.biz/ask.JPG" alt="" />
11/11/2008 9:11:10 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: AskQuestion Block Container Editor
Ah, it was the bug in V2.4. It was fixed in V2.5 . Which version are you using?
DotShoppingCart Staff
11/11/2008 9:27:29 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: AskQuestion Block Container Editor
Hi Lukezy
 
I am using v2.5
11/11/2008 10:50:58 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: AskQuestion Block Container Editor
 Your database certainly doesn't look like V2.5.
 
Try running the following sql script against your DB. Try the results. They should have 63 blockTypeId.
 
select blockTypeId from dbo.DSC_Block
where cast(Data as nvarchar(max)) like '%PageBlockContainer%'
 
select * from dbo.DSC_Block_Type_lkp
where blocktypeid = 63
DotShoppingCart Staff
11/11/2008 11:13:06 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: AskQuestion Block Container Editor
Hi Lukezy
 
 
Both have 63 in them. The first returned aboiut 7 refernces to 63 and the 2nd returned
63 Block Container /Controls/Blocks/PageBlockContainer.ascx
 
 
This is the folder  I downloaded
 
DotShoppingCartSuiteV2.53
11/11/2008 11:21:38 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: AskQuestion Block Container Editor
I would expect a lot more than 7 in the first query. Let's focus on the "AskQuestion" page. Would you please run the following query and post back the result?
 
select * from dbo.DSC_Block where blockid = 209
 
DotShoppingCart Staff
11/11/2008 11:42:30 AM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: AskQuestion Block Container Editor
This is the result from your query
 
209 
 
 
<PageBlockContainerData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Content>&lt;table style="width:100%;"&gt;&lt;tr&gt;&lt;td colspan="3"&gt;%%BlockRef,MainSiteMapPath%%%%PlaceHolder1%%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;%%PlaceHolder2%%&lt;/td&gt;&lt;td&gt;%%{0}%%&lt;/td&gt;&lt;td&gt;%%PlaceHolder3%%&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3"&gt;%%PlaceHolder4%%&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</Content><LeftMasterColumnDisabled>false</LeftMasterColumnDisabled>
<RightMasterColumnDisabled>false</RightMasterColumnDisabled></PageBlockContainerData>
 
 NULL 
 
Store/AskQuestion.aspx 
 
NULL
11/11/2008 12:01:38 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: AskQuestion Block Container Editor
It shows blockTypeId is 1.  It should have been 63.
 
It's contradicting to what you said to me. I asked you to run the following query and you said it returns 7 records and all of them have blockTypeId 63.
 
select * from dbo.DSC_Block
where cast(Data as nvarchar(max)) like '%PageBlockContainer%'
 
Try running the query again. If you have seen the blockTypeId is 1 then change it to 63. You should be set after you update the blockTypeId.
DotShoppingCart Staff
11/11/2008 12:06:09 PM
Newmedia Design
Posts: 65
Joined: 9/25/2008
Re: AskQuestion Block Container Editor
Hi Lukezy
 
Are are the query results
 
<img src="http://development-ie.access.secure-ssl-servers.biz/db.jpg" alt="" />
Page 1 of 2 (13 posts) << First < Prev 1 2 Next > Last >>