Could not load type mojoportal.business.webhelpers.indexhelper

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/17/2011 4:25:49 PM
Gravatar
Total Posts 8

Could not load type mojoportal.business.webhelpers.indexhelper

After deploying the latest from Source code - 2.3.6.8 I have received the message - "Could not Load Type mojoPortal.Business.WebHelpers.IndexHelper"

I was trying to re-build the Index for Search. It errored out so much it disabled the App Pool I was using and resulted in a "service Unavailable" page.

I re-updated my Source code today to see if it was missing file but nothing changed and it could not index on my compiled source version either.

I have my site pages working without page index at this time.

Bryan

8/18/2011 6:50:22 AM
Gravatar
Total Posts 18439

Re: Could not load type mojoportal.business.webhelpers.indexhelper

Hi Bryan,

If you are calling IndexHelper from custom code then you need to add a reference to the mojoPortal.Web project because the IndexHelper.cs was moved from the mojoPortal.Business.WebHelpers project into the mojoPortal.Web project but kept the same namespace for compatibility.

Hope that helps,

Joe

8/18/2011 8:44:17 AM
Gravatar
Total Posts 8

Re: Could not load type mojoportal.business.webhelpers.indexhelper

I am not calling this from custom code. I was only trying to re-index the site using the built-in search and re-index web pages.

I re-pulled the source from the Default branch yesterday but that did not solve it.

The site runs on asp.net 4 IIS 6 Win Server 2003.

Dev computer  Win7 x64 VS Web Dev 2010. I usually let the HG update process Discard any local changes in case I have inadvertently changed some source code when I was looking at the code.

 

8/18/2011 10:16:38 AM
Gravatar
Total Posts 18439

Re: Could not load type mojoportal.business.webhelpers.indexhelper

after you pull changes from the repository you need to do HG Update to apply those changes to your working copy then you need to rebuild the solution.

I'm running the latest code on this site and our demo site both updated yesterday as well as on my local machine and it is all working fine including rebuilding the index.

your error sounds like mojoPortal.Business.WebHelpers.IndexHelper is not compiled into your mojoPortal.Web.dll as it should be if you have the latest code.

8/18/2011 10:41:23 AM
Gravatar
Total Posts 8

Re: Could not load type mojoportal.business.webhelpers.indexhelper

I decided to re-clone the code which did the trick. maybe some part did not replace the code or I did not recompile the solution in the proper sequence as I have done before (ie not compiling the Sql and Business before compiling the Web).

I am in the process of re-setting up my projects to point the the new folder of the latest mojoPortal.

Thanks for the help on pointers.

 

Bryan

8/18/2011 1:36:36 PM
Gravatar
Total Posts 8

Re: Could not load type mojoportal.business.webhelpers.indexhelper

I just tried to run the Re-Build Index on the Production site - Win server 2003 sp1 .net 4 IIS 6

This error was posted in the Windows Application Error log -

Message: Could not load type 'mojoPortal.Business.WebHelpers.IndexHelper' from
assembly 'mojoPortal.Business.WebHelpers, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'.

IIS Disables the Web pool that is being used by the web site after several such errors.
I can re-start the pool so the web site is up again but if the index/search is run again it will fail.

Works fine on dev computer - Win 7 x64 .net 4.
I copied only the DLL's to the web site as the newer .aspx/ascx files were copied yesterday when I updated the site.

Any ideas?

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