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.

Add Existing MonoX pages and to the Custom Project.  (Mono Support )

Viewed 6816 time(s), 9 post(s) 5/22/2013 12:44:14 PMby mev9669
mev9669

mev9669

5/22/2013 12:44:14 PM
Hi I have created a custom Project and I want to add the Social networking and other user profiles module to the custom project? How can I do this? 

i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.

thanks for your help.
This content has not been rated yet. 
515 Reputation 67 Total posts
khorvat

khorvat

5/23/2013 9:03:42 AM
Hi,

we will provide you with a custom project setup with one page containing few social networking modules, we will post this here so you can jump start your evaluation.

When you add new pages manually in e.g. Windows Explorer or via Visual Studio you will have to access these pages directly in order for them to automatically hock into a system. If you do this through the page management screen then this will be done for you automatically.
i have created a pages folder and add the module folders to it. and when I rebuild the project, I can see pages from Pages/MonoX/Message.aspx  in the page management from the admin but not the other folders i have placed in the pages folder.
Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
mev9669

mev9669

5/23/2013 9:41:58 AM
Thanks a lot Korvat. I hope this article will someone else in the future. Also it will be great if you can add this to your documenation or manual..
This content has not been rated yet. 
515 Reputation 67 Total posts
mev9669

mev9669

5/23/2013 11:55:43 AM
Can you please also add some pages with the code behind file .aspx.cs files in the root directoty? I get below error when I add a page in the root and it inherits masterpage. Please see the error below
Unable to cast object of type 'ASP.default2_aspx' to type 'MonoSoftware.MonoX.BasePage'.


<%@ Page Title="" Language="C#" MasterPageFile="/MonoX/MasterPages/DefaultSmallHeader.master"
    AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="ProjectName.Web.Default2" %>
        

This content has not been rated yet. 
515 Reputation 67 Total posts
khorvat

khorvat

5/23/2013 12:03:03 PM
Can you let us know what project type are you using - Web Application or Web Site ?
This content has not been rated yet. 
15993 Reputation 2214 Total posts
mev9669

mev9669

5/23/2013 12:04:05 PM
Solve the second problem by : MonoSoftware.MonoX.BasePage to the code behind
This content has not been rated yet. 
515 Reputation 67 Total posts
khorvat

khorvat

5/23/2013 12:14:33 PM
Yes, you should inherit from BasePage if you want the MonoX CMS functionality to kick in.

Let us know if you need more information and we will provide you with the jump start project soon.
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Dalibor

Dalibor

5/23/2013 3:22:51 PM
Hi Mev9669,

I've attached a sample project containing one page with some web controls. I had MonoX folder in the same folder where I had the solution files, so the references are set to match that.

If you have any further questions, please let us know.

Best regards,
Dalibor
This content has not been rated yet. 
250 Reputation 19 Total posts
mev9669

mev9669

5/23/2013 4:28:42 PM
Thanks Dabilor,

I will give this a try. 
This content has not been rated yet. 
515 Reputation 67 Total posts