Problem with Config

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/27/2012 11:12:34 AM
Gravatar
Total Posts 4

Problem with Config

Hi

I have installed Mojoportal with the last version of Matrix 2.0. It works fine, but when I want to start the site from Visual Studio I get problem with the Config.

Visual Studio complains that the site is configured to run on an older   version of the .Net Framework.  It asks me if I want to upgrade the site to the version .Net Framework 4.0

Whether I answer yes or no, I get problems with the Config.

On my computer I have:

Windows Vista + sp2 + IIS 6

Visual Studio 2010 + Framework 4.0

Mojoportal  v.  2.3.8.5 SQL + Asp. Net  v.  4.0

How can I solve this problem?

Thanks

9/27/2012 2:23:38 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Problem with Config

If you are wanting to work with mojo in Visual Studio you should get the source code from the CodePlex repository. You can find those instructions here.

I have not worked with Web Matrix, but I think it might use the compiled code for deployment and not the actual mojoPortal source code.

9/27/2012 2:33:17 PM
Gravatar
Total Posts 18439

Re: Problem with Config

Sounds like you downloaded the mojoPortal package for .NET 3.5

If you download the package for .NET 4 it should not prompt to upgrade to .NET 4

The 9th and 10th items in our FAQ also have some information about this problem.

Though as Aaron said for real development its best to work with the actual source code in Visual Studio, not with the pre-compiled packages. See also our article Understanding the Differences Between Deployment File and Source Code

Hope that helps,

Joe

9/28/2012 10:50:20 AM
Gravatar
Total Posts 4

Re: Problem with Config

Thanks for the help. With older version of the WebMatrix it worked well to move to Visual Studio. Now I have tried with TortoiseHG and I have problem with the database.

Item 3 in the instruction is as following:

3 choose the build profile for your chosen database platform. Release and Debug are for MS SQL, for other databases there are Debug - MySql, Release -MySql, etc

I don't know if I did it right here. I use SQL Express and I feel a little unsure about how to choose the build profile for SQL in Visual Studio. Maybe someone can explain a little better how to do?

Thanks

9/28/2012 12:36:12 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Problem with Config

Since you are using SQL Express you would use the builds for MSSQL. If want to step through the code and see what is going on user Debug. It will allow you to set break points and view variables. Release would be use if you were building a custom feature that is done with development and testing and is ready to be released.

10/2/2012 12:55:56 PM
Gravatar
Total Posts 4

Re: Problem with Config

Thanks for the reply. Yes I know that I have to use the SQL builder, but my question was HOW to do it? Must I use the Configuration Manager in Visual Studio? I have tried it, but I don't know if it is right. How to deal with build profiles for database platform in VS? So I will appreciate very much for this help.

Thanks

 

10/5/2012 9:24:06 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Problem with Config

Unless you are using another db platform you should not have to do anything inside VS. If you were using another platform you would just select the appropriate option from the Solution Configuration dropdown next to the Start Debugging icon on you standard toolbar. You could also choose the same options in the Configuration Manager under the Active solution configuration dropdown.

 

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