DLL Version error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/12/2011 7:09:46 AM
Gravatar
Total Posts 1

DLL Version error

I installed a fresh copy of MojoPortal downloaded directly from  your webiste on Dec 12, 2011.

I created a custom module and used the code at the bottom of this post to get the current userid. The page won't compile saying:

Reference required to assembly 'mojoPortalBusiness, Version=1.0.4351.27622, Culture=neutral, PublicKeyToken=null' containing the type 'mojoPortal.Business.SiteUser'. Add one to your project.

Visual Studio offers this "fix" but does nothing when you click on it:

Add reference 'mojoPortalBusiness, Version=1.0.4351.27622, Culture=neutral, PublicKeyToken=null' to project...

I installed, reinstalled, started over, wiped everything out... whatever, a dozen times and cannot get past this error.  Have spent two days trying to figure it out.

UPDATE:  I removed that code from my custom modules and built the site again... that same error above is appearing on dozens of original mojoportal pages I have not touched...

Brent

----------------------------------

Imports System.Data.SqlClient
Imports DevExpress.Web.ASPxGridView
Imports mojoPortal.Business.WebHelpers
Imports mojoPortal.Business
Imports mojoPortal.Web

Partial Class MyCustomModules_Classifieds_Manage
Inherits System.Web.UI.UserControl

Dim currentUser As SiteUser = SiteUtils.GetCurrentSiteUser()

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Session("userid") = currentUser.UserId

End Sub

12/12/2011 7:49:27 AM
Gravatar
Total Posts 18439

Re: DLL Version error

The release packages are already compiled so they don't need to be built in visual studio.

If you are using code behind for your custom feature then you need to compile that into a dll and put in the bin file. If you are using inline code (ie <script runat="server"...) you don't need to compile your code either.

I patched mojoPortal version 2.3.7.0 several times with updated dlls, so its possible that trying to rebuild it in VS would give warning about the version of the dlls, but the latest release version 2.3.7.5 has not been patched since its initial release and when I open the release files (as a web site) in VS and build the solution I get no errors. 2.3.7.5 was released on Dec 1 so I would have thought that is the version you have.

In any case as I said its already compiled and doesn't need to be built in VS and it should not have any runtime errors even if you are getting a build error. But using the latest package you should not get build errors even though building is not needed in the first place.

Make sure your "fresh copy" is being put in an empty folder rather than on top of an older version.

Generally for custom development I recommend people to work with the mojoPortal source code not the pre-compiled release files, though it can work using the approach you are using. The source code uses a web application project type whereas when you open the pre-compiled release files in VS you are opening it as a web site.

Hope that helps,

Joe

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