Developing mojoPortal website from source using .NET4 and C#

by Yogaraj Khanal on August 28th, 2011


This article demonstrated how we can develop sample mojoPortal website from source using C#, .NET4 and Microsoft Visual Studio 2010 Professional.


The idea behind using mojoPrortal is to use their framework as foundation for common features like security, logging, navigation and other common groundwork that is needed in all applications and just concentrate your development effort on business logic part.


This article demonstrates the steps necessary to build the latest mojoPortal software package from source code. This article doesn’t describe the all the features and options available for you to build the project. If you are interested in learning details about the features and options available to you I recommend visiting their site listed on the references section since it would be repeated work if I do it here again.

Also the choice of the version control system is up to the user. I have already used Subversion in the past so I am trying to use TortoiseHg to get source from this time. Choosing between subversion and TortoiseHg with Mercurial is already well described in the site so I recommend you read those section and make the informed decision.

I will limit the scope of this article to concentrate on the exact steps required in building a sample functional website in mojoPortal with the entire necessary configuration. I will try to present this article is checklist so that it provides the means for ease to follow the development process.

There are lot of choices and options you can do to build this project but I am concentrating on one option that works so the users can see the running applications after following these steps.

1) First step is to install the TortoiseHg from the link below. I am using the latest version 2.1.2 64bit with Mercurial 1.9.1

2) Create a folder where you want to check out the latest version of the source code. In my machine I am going to check out in the following location

3) Use this URL as repository source after you right click select TortoiseHg->Clone

4) After the code is checked out you see your folder structure as like this from bottom up and you need to click on the highlighted file to get your code in Microsoft Visual

5) After this step you will see 25 projects in solutions out of which mojoPortal.Web are the main project. If you clean and build solution and hit F5 from the main project then your application will run in browser and you can see your application like this meaning everything is ok but you have to create database for it.

6) In this step we are going C the SQL Server.There is a file named user.config that needs database name username and password created as below.You can customize this file based on your requirement.
<add key="MSSQLConnectionString" value="server=localhost&UID=mojouser&PWD=mojo123&database=mojo" />

7) Once you have dabase created you will see the mojoportal application running like this. Application below with lunch after you does rebuild for the whole solution and hit F5 on the mojoportal.Web project.


This article demonstrates how you develop a sample website using mojoPortal from source code in .NET4 and C#. Please free to send me your comments through this website. Please free to post your comments suggestions and issues regarding this article.



Profile Photo
Yogaraj Khanal
Date: August 28th, 2011


Profile Photo
Commented by Yogaraj Khanal
on August 30th, 2011 at 15:32:56 EST
I recommend you put database settings in web.config rather than user.config as per how portal works as per recommendation from creator of the portal.