MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Error building MonoXProfileSample.aspx page  (Mono Support )

Viewed 12361 time(s), 10 post(s) 1/19/2012 7:02:46 AMby grant.stone007
grant-stone007

grant.stone007

1/19/2012 7:02:47 AM
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.
This content has not been rated yet. 
647 Reputation 69 Total posts
khorvat

khorvat

1/20/2012 8:13:36 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

1/21/2012 3:37:27 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

1/24/2012 12:45:23 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
shawndg

shawndg

1/26/2012 4:20:18 PM
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>
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

1/26/2012 4:43:08 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
shawndg

shawndg

1/26/2012 5:41:51 PM
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
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

1/26/2012 6:04:20 PM
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. =/
This content has not been rated yet. 
1871 Reputation 252 Total posts
shawndg

shawndg

1/26/2012 6:29:00 PM
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.
This content has not been rated yet. 
1871 Reputation 252 Total posts
khorvat

khorvat

1/30/2012 8:42:01 AM
Hi,

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

Thanks
This content has not been rated yet. 
15993 Reputation 2214 Total posts