Fail to start mojoPortal in Visual Studio 2010

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/25/2011 4:01:20 PM
Gravatar
Total Posts 6

Fail to start mojoPortal in Visual Studio 2010

Hi,

I'm new to mojoPortal as well as ASP.NET.  I played with the demo and really like the project. First, I like to thank Joe and those who contributed their time in making all this happen. I like to learn and contribute as well but I can't understand all the codes yet.  I loaded the project in VS 2010 and ran the debug mode but it gave me this error:

"A project with an Output Type of Class Library cannot be started directly.  In order to debug this project, add an executable project to this solution which references the library project.  Set the executable project as the startup project."

I don't know which project should be the startup project, first of all.  Secondly, for development, do I need to setup a database to correspond with the project?

Thank you for your help in advanced.

7/25/2011 4:08:54 PM
Gravatar
Total Posts 6

Re: Fail to start mojoPortal in Visual Studio 2010

OK, after I posted my question and played around, I figured it out to start the mojoPortal.Web as the default project and it loaded the web browser without error.  However, once the browser hang for a bit, it gave me the error:

"File system permissions ok.  The system cannot connect to the MSSQL database. Please check your connection string..."

So I guess this answers my question as to whether or not I need to setup the databse connection. :)

Question: would it be easy for me to later move codes that read/write to database to read/write XML file instead?  Would there be a performance issue?

The reason why I'm thinking of this is because with what I'm trying to do, I have no access to the SQL database and cannot connect to it directly or via a connection string.  Everything is done through a web service.  What's the best way to use this blog engine with a web service?

Thank you again

7/25/2011 4:28:51 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Fail to start mojoPortal in Visual Studio 2010

You'll direct access to a database in order to use mojoPortal. If you can't use MS SQL, can you install or use MySQL instead?

7/25/2011 4:48:19 PM
Gravatar
Total Posts 6

Re: Fail to start mojoPortal in Visual Studio 2010

Hi Jamie,

Thank you for the reply. Right now, I'm trying to make this project work on my local machine, which I have direct access to MS SQL.  I'm still trying to get mojoPortal to work on my local machine first.

Then, I need to understand how it all works and hopefully look for ways to rewrite the codes to make it talk to a web service to connect a MS SQL.  Any suggestions?  I guess at this place, there's some security issue so they won't let me have a direct connection to the database.  Everything must talk to the web service.

7/26/2011 6:31:17 AM
Gravatar
Total Posts 18439

Re: Fail to start mojoPortal in Visual Studio 2010

sorry but we have no support for using xml for data storage and it would be a very tall order to implement it.

We also do not have a web service api for much mojoPortal functionality other than an authentication and role services that could be used in Silverlight or WPF.

Having a web app that talks directly to the database is much faster than one that talks to web services with server side code making secondary web requests. Even if there were a comprehensive web service api it would still need a connection to a database.

If your requirement is for a web service based solution I think you should look elsewhere. If you just want to eliminate the MS SQL database you could use our package for SQL CE which is a file based database and requires no server software, it performs ok for low to medium traffic sites but is not as robust as MS SQL Server.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.