'Shared Files' exception error

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.
3/23/2015 9:17:48 AM
Gravatar
Total Posts 2

'Shared Files' exception error

mojoPortal Version:    2.4.0.8 MSSQL
Operating System:    Microsoft Windows NT 6.3.9600.0
ASP.NET Info:    4.0.30319.34209 Running in Full Trust

Hi -

Following a recent upgrade to the current version of mojoPortal all the 'Shared Files' features on my site now generate an exception error when a user attempts to upload a file. The file is listed in the Shared Files file browser but cannot be downloaded or linked to. No .config file is created in the SharedFiles folder. Existing files which were uploaded before the upgrade remain available and downloadable.

The site uses a skin based closely on art42-businessblue3, as supplied with mojoPortal 2.4.

Is this a known problem or is there anything I can try, such as recreating the Shared Files database? The error log generated by an attempted upload is listed below.

Many thanks and best regards -

Andrew Sidwell
British Human Power Club
www.bhpc.org.uk

2015-03-23 13:45:51,386 ERROR 128.243.7.54 - en-GB - /SharedFiles/upload.ashx?pageid=11&mid=404 - mojoPortal.Web.Global -  Referrer(http://www.bhpc.org.uk/uploads-downloads.aspx) useragent Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0
System.Configuration.ConfigurationErrorsException: Could not load type 'mojoPortal.Business.WebHelpers.IndexBuilderProvider' from assembly 'mojoPortal.Business.WebHelpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. ---> System.TypeLoadException: Could not load type 'mojoPortal.Business.WebHelpers.IndexBuilderProvider' from assembly 'mojoPortal.Business.WebHelpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
   --- End of inner exception stack trace ---

 

3/23/2015 9:30:18 AM
Gravatar
Total Posts 18439

Re: 'Shared Files' exception error

I think the error is not really coming from the Shared Files feature. The Shared Files feature is triggering the index builders as it should when a file changes or is added. But this process invokes all the index builders for all the features. I suspect editing other features such as html content feature would also result in an error since it would also trigger indexing.

I suspect you have a custom or 3rd party feature that was broken by the upgrade because the index builder framework was moved from the mojoPortal.Business.WebHelpers.dll assembly into mojoPortal.Web.dll. But some custom or third party feature still expects it in the old place. All the built in features have been updated, so the built in features cannot cause this error.

The possible solutions:

  1. re-compile the custom feature so it correctly references the new location of the index builder framework
  2. remove the index builder configuration file for the custom or 3rd party feature to unplug it so it is not invoked during indexing. The config files that plugin index builders are located under /Setup.ProviderConfig/indexbuilders. Removing the one for the bad custom or 3rd party feature from that folder and then touching web.config to clear the cache should prevent the error from happening but the custom feature will no longer be searchable.

Hope that helps,

Joe

3/23/2015 12:19:52 PM
Gravatar
Total Posts 2

Re: 'Shared Files' exception error

Hey, you're a star! Your analysis was exactly right: I used to have a 3rd-party calendar add-in which no longer works in v2.4. I'd removed all instances of the feature but the indexbuilder was still there, where you said it would be. Removing it has not only fixed my problem with Shared Files but also the server errors I used to get when editing pages, whichy you also predicted.

Many thanks for the great service.

Andrew

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