NeatUpload GAC Version problem

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.
10/24/2009 4:32:40 AM
Gravatar
Total Posts 4

NeatUpload GAC Version problem

Hi,

I am trying to get the bulk fileupload running in a medium trust environment.

I requested my hoster to install the with mojoportal included Brettle.Web.NeatUpload version: 1.3.3520.16252 in the GAC.
My hosting-company refused to installl that version, but installed the version which is recommended on the Brettle Development website (1.3.3519.18793). He says he can install only officially released version in the GAC...

My questions:

  1. What is the difference between those versions?
  2. Is 1.3.3520.16252 going to be official released in a short time?
  3. If not, how do I solve this?

Thanks,

Niek

Mojoportal version : 2.3.1.9
Db-platform: MySQL
OS: win 2003 with IIS 6

 

 

10/24/2009 8:14:50 AM
Gravatar
Total Posts 18439

Re: NeatUpload GAC Version problem

Hi Niek,

Your host is correct that he must install the official version in the GAC. It "should" work from the GAC but you will need to uncomment this part in Web.config:

 

<!-- if using Medium trust and you can install NeatUpload in the GAC then un-comment this and comment out the one above -->
      <!--
<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload, Version=1.3.3284.14313, Culture=neutral, PublicKeyToken=c95290d92c5893c8" />
-->

<!-- if using Medium trust and you can install NeatUpload in the GAC then un-comment this and comment out the one above -->      <!-- <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload, Version=1.3.3284.14313, Culture=neutral, PublicKeyToken=c95290d92c5893c8" /> -->

and then you will need to update the type attribute to the correct info for the latest version as discussed in the NeatUpload documentation.

To install a dll in the GAC, it must be signed with a strong name key, the official version is signed and the version that I ship with mojoPortal is one I compiled myself that is not signed. The only reason I compile my own build of NeatUpload instead of using the official dll is because the official version includes a "Powered By NeatUpload" message and I am able to remove this when I compile it myself.

Hope it helps,

Joe

 

10/24/2009 8:59:07 AM
Gravatar
Total Posts 4

Re: NeatUpload GAC Version problem

Hi Joe,

thanks for the quick response!

I think I followed all the medium trust guidelines. I can reproduce the errors om my local system also:

It appears as if some components are bound to your version of neatupload.
When I remove your dll from the bin folder to force the server to get the GAC version
and try to start the bulk upload i get this message (sorry for the dutch stuff, but it indicates that it needs version 3520):

Parser-foutbericht: Kan bestand of assembly Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=null of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.

Fout in bron:


Regel 1:  <%@ Page AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master" CodeBehind="BulkUpload.aspx.cs" Inherits="mojoPortal.Web.GalleryUI.BulkUploadPage" %>
Regel 2: 
Regel 3:  <asp:Content ContentPlaceHolderID="leftContent" runat="server" />
 

Bronbestand: /mojoPortal/ImageGallery/BulkUpload.aspx    Regel: 1

 

 

10/24/2009 11:15:30 AM
Gravatar
Total Posts 18439

Re: NeatUpload GAC Version problem

Hi Niek,

There are actually 3 places  in Web.config where you may need to specify the correct NeatUpload Assembly.

In the <system.web> <httpModules> you would need to add this:

<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=c95290d92c5893c8" />

In the <system.web> <compilation ...><assemblies> section you would need this:

<add assembly="Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=c95290d92c5893c8"/>

If hosted in IIS 7 then you may need this in the <system.webserver><modules> section:

<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule,Brettle.Web.NeatUpload,Version=1.3.3520.16252,Culture=neutral,PublicKeyToken=C95290D92C5893C8" preCondition="managedHandler" />

Hope it helps,

Joe

 

10/24/2009 3:44:25 PM
Gravatar
Total Posts 4

Re: NeatUpload GAC Version problem

Joe,

it does help somewhat but i still get errormessages from FileManager.aspx which needs the 3520 version instead of the 3519 one

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 1: <%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master" CodeBehind="BulkUpload.aspx.cs" Inherits="mojoPortal.Web.GalleryUI.BulkUploadPage" %>

Line 2:

Line 3: <asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />

 

Source File: /ImageGallery/BulkUpload.aspx Line: 1

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Brettle.Web.NeatUpload, Version=1.3.3520.16252, Culture=neutral, PublicKeyToken=null' could not be loaded.

10/25/2009 4:11:41 PM
Gravatar
Total Posts 18439

Re: NeatUpload GAC Version problem

I have been investigating this problem today and sadly it seems mojoPortal would have to be compiled against the strongly named version of NeatUpload for it to work, so it would require a special build of mojoPortal just for this scenario.

10/26/2009 4:31:49 AM
Gravatar
Total Posts 4

Re: NeatUpload GAC Version problem

Joe,

I already tried to do this myself by getting the latest version en trying to compile this in VS2008.

I ran into several problems including a missing page (Archive.aspx(.cs) which I had to remove from the project to get it compiled) and not being able to debug (I am getting a strange regex error).
So I 'm not getting any further here.

Are you going to make that special build,
or should I abandon the bulk-upload?

Thanks,
Niek

10/26/2009 7:48:09 AM
Gravatar
Total Posts 18439

Re: NeatUpload GAC Version problem

Hi Niek,

No it will be too much of a problem to make a build like this. It requires the developers using mojoPortal source code to have NeatUpload in the GAC on their machines. Its not easy to go back and forth. Also it would either require me removing the option for the GreyBoxProgressBar or it would also have to be in the GAC or reference the same version of NeatUpload in the GAC.

I'm going to have to update our documentation to say its not possible to use NeatUpload in Medium Trust with mojoPortal. As far as I know you are the first one who has ever convinced your host to install it in the GAC to try to solve this. Its unfortunate that its this difficult.

Something must have gone wrong with my merge to trunk and that Archive.aspx was missing. I have corrected this if, you do svn update it will get the missing files.

Best,

Joe

11/18/2009 2:09:47 PM
Gravatar
Total Posts 12

Re: NeatUpload GAC Version problem

Joe,

  I would like to compile my own version of NeatUpload, and remove the branding.  I opened the source code in Visual Studio but can't seem to find where the powered by neatupload is located.  Could you point me in the right direction?  Thanks,

--Angela

11/18/2009 2:36:26 PM
Gravatar
Total Posts 18439

Re: NeatUpload GAC Version problem

Hi Angela,

Dean Brettle, the author of NeatUpload is a friend of mine so I don't really want to divulge the secret to remove his branding. I've probably said too much already by indicating it can be removed.

Best,

Joe

11/18/2009 3:05:43 PM
Gravatar
Total Posts 12

Re: NeatUpload GAC Version problem

Thanks for the reply anyway.  I knew it could be removed from reading on his website, just wasn't sure how.  Nice bit of programming for mojoPortal!  I've had fun playing around with it!

--Angela

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