Mono Support Error building MonoXProfileSample.aspx page 

Viewed 13516 time(s), 10 post(s), 1/19/2012 7:02:46 AM - by grant.stone007
1/19/2012 7:02:47 AM
647 Reputation 69 Total posts

I am attempting to use the sample Extended MonoX profile. I am getting the error shown below when I build page and I have the <MainContentTemplate> tag.

Error 10 Template property 'MainContentTemplate' has a TemplateContainer attribute set to 'System.Web.UI.Control', but that type does not implement INamingContainer.

I am not sure how to correct this. Please advise.

1
1/20/2012 8:13:36 AM
15993 Reputation 2214 Total posts

Hi,

we are currently upgrading the sample project to .NET 4.0 and latest version of MonoX so please be patient and we will provide you with the updated version of the sample project.

Regards

2
1/21/2012 3:37:27 PM
15993 Reputation 2214 Total posts

Hi,

I have updated sample solution to be compatible with latest MonoX version 4.7.33xxx. We will provide you with the new MonoX version soon, and new version of the profile sample can be download here.

Regards

3
1/24/2012 12:45:23 PM
15993 Reputation 2214 Total posts

Hi,

please download the MonoX version that we have sent you and this sample should work. Get back to us if you find any issues.

Regards

4
1/26/2012 4:20:18 PM
1871 Reputation 252 Total posts

Hi Guys,

Ok well I am having this same problem..

Although, I am not using a sample and have coded a bunch of code already so simply replacing the files is not a option for me..
Ok.. well I tried to compare the code and I cant find the change that is breaking my project..

Any way for you to point out what needs changed to make my code work in the new MonoX version..
I cant figure it out, all the code looks pretty much the same...

Below is the error

Parser Error Description:
An error occurred during the parsing of a resource required to service this
request. Please review the following specific parse error details and modify
your source file appropriately.

Parser Error Message: Template
property 'MainContentTemplate' has a TemplateContainer attribute set to
'System.Web.UI.Control', but that type does not implement
INamingContainer.

Source Error:
Line 31: <TheScene:MusicMainContentTemplate id="MusicmainContentTemplate" runat="server">
Line 32: </TheScene:MusicMainContentTemplate>
Line 33: </MainContentTemplate>
Line 34:
Line 35: <SideBarTemplate>

5
1/26/2012 4:43:08 PM
15993 Reputation 2214 Total posts

Hi Shawndg,

I have send you an URL with new unofficial version of MonoX so please try to upgrade and get back to us if you have any issues.

Regards

6
1/26/2012 5:41:51 PM
1871 Reputation 252 Total posts

Hi Kristijan,

I tried updating my Monox using the pack you sent me but now things are even more broken..

I cant even navigate to my main default.aspx any more without getting a error..


Server Error in '/' Application.


Parser Error Description:
An error occurred during the parsing of a resource required to service this
request. Please review the following specific parse error details and modify
your source file appropriately.

Parser Error Message: Unknown
server tag 'MonoX:StyledButton'.

Source Error:
Line 24: </asp:Panel>
Line 25: <asp:Literal ID="lblText" runat="server"></asp:Literal>
Line 26: <MonoX:StyledButton ID="btnEdit" CommandName="Login" runat="server" EnableNativeButtonMode="true" Visible="false"></MonoX:StyledButton>
Line 27: <asp:Panel ID="pnlButtonHolder" runat="server">
Line 28: <asp:Button id="btnMonoXHtmlEditor" runat="server" Text="Save" UseSubmitBehavior="false"></asp:Button>
Source
File: /MonoX/ModuleGallery/MonoXHtmlEditor.ascx Line: 26

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.237

7
1/26/2012 6:04:20 PM
1871 Reputation 252 Total posts

Ok found the above issue..
Looks like the control was moved into the web.config..

Need to update this part..
<pages validateRequest="false" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="MonoX" tagName="StyledButton" src="/MonoX/controls/StyledButton.ascx" />
</controls>
<!--<namespaces />-->
</pages>

Needed to add the controls tag... i remed out namespaces.. not sure why,, but I did not see it in the code you sent me.

Now, a new problem.. I did not copy over my theme pages..
But they are all messed up for some reason. =/

8
1/26/2012 6:29:00 PM
1871 Reputation 252 Total posts

Ok, profile works with fix.. Good news!

Bad news, looks like many other custom parts and configured parts are broken..
going to see if I can figure them out, and fix them.. I will let you guys know the outcome.

9
1/30/2012 8:42:01 AM
15993 Reputation 2214 Total posts

Hi,

can you please open a new topic for every issue that you have so we can address them properly.

Thanks

10
This is a demo site for MonoX. Please visit Mono Software for more info.