Compiling Mojoportal Without VS

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.
6/20/2006 8:47:13 AM
Gravatar
Total Posts 4

Re: Compiling Mojoportal Without VS

Hi all,

I have installed VS Studio 2005 express edition, i have downloaded the .NET sdk, how can i compile the Mojoportal SVN from command line? and then add a module using vs 2005 express edition?

Thank you for your help

Carlos Kassab
6/20/2006 9:58:52 AM
Gravatar
Total Posts 18439

Re: Compiling Mojoportal Without VS

I think you can compile the Solution with MSBuild:
http://msdn2.microsoft.com/en-us/ms164311.aspx

I don't know if you can use VS Studio 2005 Express or not, but I guess if you can't build the solution with it then you can't use it to develop your own modules.

Joe
6/22/2006 10:46:26 PM
Gravatar
Total Posts 18439

Re: Compiling Mojoportal Without VS

Thank you you for your recomendation, but i do not find msbuild in my installation so what i did was the next:

I opened the solution with Visual C# developer express edition and i built the solution, everything was built but not the mojoportal.web.csproj, i installed sharpdevelop and i opened the solution again and i built the solution and everything was built, a note here is that i can not to build the solution with sharpdevelop without using visual C# developer express edition before.

I have installed Mysql 4.1, i created the database mojoportal and the user mojo and pass mojo and i created the tables with the script provided with mojoportal.

My operating system is Windows XP Professional, service pack 2

I edited web.config and set the culture and database settings
        <add        name="MySQLConnectionString"
                    connectionString="server=localhost;Database=mojoportal;User ID=mojo;Password=mojo"
                    providerName="MySql.Data.MySqlClient" />


The problem begins when i try to open the address http://localhost/mojoportal, i get the error:

Server Error in '/mojoportal' Application.

Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'.

Source Error:

Line 100:
Line 101: if ( serverProps.Contains( "max_allowed_packet" ))
Line 102: maxPacketSize = Convert.ToInt64( serverProps["max_allowed_packet"] );
Line 103: }
Line 104:

Source File: e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLConnector\mysqlclient\nativedriver.cs    Line: 102

Stack Trace:

[InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'.]
System.Convert.ToInt64(Object value) +15
MySql.Data.MySqlClient.NativeDriver.Configure(MySqlConnection connection) in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLConnector\mysqlclient\nativedriver.cs:102
MySql.Data.MySqlClient.MySqlConnection.Open() in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLConnector\mysqlclient\Connection.cs:300
MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(String connectionString, String commandText, MySqlParameter[] commandParameters) in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLConnector\mysqlclient\MySqlHelper.cs:272
MySql.Data.MySqlClient.MySqlHelper.ExecuteReader(String connectionString, String commandText) in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLConnector\mysqlclient\MySqlHelper.cs:258
mojoPortal.Data.dbPortal.SiteSettings_GetSiteList() in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\MySQLData\dbPortal.cs:2044
mojoPortal.Business.SiteSettings.SiteCount() in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Business\SiteSettings.cs:1014
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\Global.asax.cs:133


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Well, what i did here was to comment the line because i set a value to the variable max_allowed_packet but i got the same error, i do not know if is there something to fix in the mysql driver?, i thought it could be interesting for you.

After this, now i have my new mojoportal working, but i do not have tested the functionality still.

6/23/2006 2:50:24 AM
Gravatar
Total Posts 18439

Re: Compiling Mojoportal Without VS

MSBuild is included with the .NET SDK. I think if you read up on MSBuild that will be the best way to compile since you don't have the full version of VS 2005.

I think the reason the web project would not compile is because we use the new Web Application project type from here:
http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
You could try to install it but it does not list the express products as being supported.

I'm not sure why you are getting that MySQL error but maybe you could try a newer version of MySQL.

Hope it helps,

Joe
6/23/2006 5:33:05 AM
Gravatar
Total Posts 2

Re: Compiling Mojoportal Without VS

Thank you Joe for your response.

I downloaded the Web Application project but when i try to install i get the message that i need visual studio 2005 standard or above, but i do not have problem to do the step of compiling with sharpdevelop since i do not find the msbuild.exe file in my system and i have the sdk 2.0 installed.

About mysql, i will update to 5.0.22 and i will post here the results.

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