more than one version of mojoPortal.Business

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.
4/27/2010 8:27:41 AM
Gravatar
Total Posts 0

more than one version of mojoPortal.Business

I have set my project up a little differently than recommended in the developer videos.  I downloaded a copy of the deployment files and imported them into a new project.  This way I can create all my code directly in the deployment project rather than having to create my own projects and use the post build events.

I have added references in the project to DLL's in the bin directory:

AjaxControlToolkit

mojoPortal.Business

mojoPortal.Web

mojoPortal.Web.Framework

 

 

Here is a copy of my code (in VB):

Imports AjaxControlToolkit

'Imports mojoPortal.Business
Imports mojoPortal.Business
Imports mojoPortal.Web
Imports mojoPortal.Web.Framework
Imports mojoPortal.Web.UI

Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Data
Imports System.Data.SqlClient
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Configuration
Imports System.Globalization
Imports System.IO
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Public Class Users
'Inherits System.Web.UI.UserControl
Inherits SiteModuleControl

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim user1 As mojoPortal.Business.SiteUser = mojoPortal.Business.SiteUser.GetByEmail(siteSettings, "user@domain.inside")
Label1.InnerText = user1.Name
End Sub

End Class

 

 

I am receiving this error:

Error 6 The project currently contains references to more than one version of mojoPortal.Business, a direct reference to version 1.0.3754.20887 and an indirect reference (through 'mojoPortal.Web.SiteModuleControl.siteSettings') to version 1.0.3756.11841. Change the direct reference to use version 1.0.3756.11841 (or higher) of mojoPortal.Business. C:\Projects\mojoPortal\TPC\Users\Users.ascx.vb 30 93 mojoPortal
 

Any advice on how to fix this error would be greatly appreciated.

Thanks,
Adam

4/27/2010 2:23:48 PM
Gravatar
Total Posts 18439

Re: more than one version of mojoPortal.Business

Hi Adam,

I understand how this happened in retrospect but did not anticipate it ahead of time. I prepare the deployment files packages mainly with the intent that they work in production environments, though I do realize that people do try to use them also in Visual Studio and I try to avoid problems with use in VS. What happened was a few minor bugs were reported in the few days after the release and I patched the release with a new version of mojoPortal.Web.dll and maybe a few other files but not mojoPortal.Business.dll as it had no changes. While this works fine in production environments, I guess in VS the dlls may know that they were compiled against a different build of a dll than the one in the bin even if it had no changes. In the future I will keep that in mind and try to always deploy all the dlls even if they have not changed when patching one of them.

I hope to make a new release with a few bug fixes tomorrow or the next day.

Best,

Joe

4/27/2010 2:51:42 PM
Gravatar
Total Posts 0

Re: more than one version of mojoPortal.Business

Ok, Thanks for the reply Joe.  I look forward to seeing the updated version in the next day or two.

Thanks,
Adam

11/6/2011 5:18:02 AM
Gravatar
Total Posts 1

Re: more than one version of mojoPortal.Business

Interestingly, I get the same message as OP (different version numbers as I'm using v2.3.7.0 NET4 MSSQL).  I get the message when I create a custom module WebUserControl.ascx using VB language rather than C#.

When I rewrote the script block in C# (only a couple of "hello world" procedures at the moment thankfully) then the error message goes away.  I am not a competent C# programmer, and I don't have time to learn C#.  Any idea why I get the message when coding in VB?  Solution?

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