Free Gallery Module (VB.net) Available

Last post 08-24-2003 1:01 PM by davidbarrett. 27 replies.

Sort Posts:

  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 3:00 AM
    • Member
      40 point Member
    • jaybaxi
    • Member since 09-03-2002, 3:26 AM
    • Posts 8
    Hi David,

    I am unable to make the module work. When I click on the "Edit Gallery Settings" link, I get the following compilation error.

    Server Error in '/PortalVBVS' Application.
    --------------------------------------------------------------------------------

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30456: 'GetStyleSheet' is not a member of 'ASPNetPortal.PortalSettings'.

    Source Error:



    Line 4: <html>
    Line 5: <head>
    Line 6: <link rel="stylesheet" href='<%= ASPNetPortal.PortalSettings.GetStyleSheet() %>' type="text/css">
    Line 7: <!--<link href="<%= Request.ApplicationPath & "/Portal.css" %>" type="text/css" rel="stylesheet">-->
    Line 8: </head>


    Source File: C:\PortalVBVS\PortalVBVS\Gallery\EditGallery.aspx Line: 6

    Can you please tell me what is going wrong over here? I have been trying to make this module without any success. Your help would be greatly appreciated.

    Thanks in advance.

    Jay
  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 11:24 AM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    Jay,

    You're correct -- this is my goof. I have had mixed success in releasing code to the general public that includes code specific to my portal. I thought in my last revision that I had eliminated all the code that was specific to my portal, but I missed the style sheet declaration.

    I will correct this over lunch and release a new version, but if you can't wait until then, simply replace the <link /> tag with the one commented out below it in editgallery.aspx, cache.aspx, and viewer.aspx and you will no longer get this error.



    David
  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 1:49 PM
    • Member
      40 point Member
    • jaybaxi
    • Member since 09-03-2002, 3:26 AM
    • Posts 8
    Hi David,

    I made the changes you suggested and now the gallery module is working fine. Thanks for the timely help.

    But when I try to view in the images in the Slide Show mode, I am getting a script error. It prompts me with a dialog box saying that 'DestroyWnd' is undefined.

    Can you please tell me what changes I need to make now? Thanks in advance.

    Jay
  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 3:04 PM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    Glad to hear that worked for you, Jay.

    The install assumes you unzip the contents of the .ZIP folder to the root of your portal. So, if you did this, there should be a javascript folder under your portal.

    I.E., if your portal is at http://jaybaxi/portal, then there should be a folder http://jaybaxi/portal/javascript. If your portal is at http://jaybaxi/, then there should be a folder at http://jaybaxi/javascript.

    The gallery.ascx assumes this structure. The <script> tag has a relative link to the .js src of ../javascript/popup.js. (I normally don't like using parent paths, but in this case, I couldn't easily get around it).

    Anyway, the javascript error you are getting is because the javascript file is not where the portal page says it is. Check your directory structure and verify that the popup.js file exists in this folder. If it doesn't, either put the .js file where the page expects it or change the <script> tag to represent the location on your server.

    HTH,

    David
  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 4:26 PM
    • Member
      40 point Member
    • jaybaxi
    • Member since 09-03-2002, 3:26 AM
    • Posts 8
    Hi David,

    My portal is at http://locahost/portalvbvs so I guess I should not have needed to make any changes to the source of the javascript folder. However since it was not working, I made the following changes to the <script> tag. Instead of ../javascript/popup.js, I changed it to javascript/popup.js. This had to done because the javascript folder was already in the root folder of the website so there wasn't any need to move up one level. So with the changes I made, I don't get any script errors, but when I click on the magnifying glass icon, a new window pops up and in this new window I get a Parser error.

    This is the error I get when I click on the slide show.


    Server Error in '/PortalVBVS' Application.
    --------------------------------------------------------------------------------

    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 find file "C:\PortalVBVS\PortalVBVS\DesktopPortalFooter.ascx".

    Source Error:


    Line 1: <%@ Register TagPrefix="uc1" TagName="DesktopPortalFooter" Src="~/DesktopPortalFooter.ascx" %>
    Line 2: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="Viewer.aspx.vb" Inherits="ASPNetPortal.GalleryViewer" %>
    Line 3: <%@ Register TagPrefix="uc1" TagName="DesktopPortalBanner" Src="~/DesktopPortalBanner.ascx" %>


    Source File: C:\PortalVBVS\PortalVBVS\Gallery\Viewer.aspx Line: 1


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0

    Please let me know what might be going wrong. Please pardon me for bothering you every few hours but I am still a beginner in .NET and that is the reason I am needing so much help from expert developers like you guys.

    I appreciate all the help you have been providing me. Please inform your friend agcook, that I am missing his site (www.xcapes.com) very much. Do you have any clue as to when will it be back live? It was my most favorite sites for .NET and IBS resources.

    Jay
  • Re: Free Gallery Module (VB.net) Available

    02-18-2003, 5:56 PM
    • Member
      35 point Member
    • aashray
    • Member since 06-19-2002, 12:11 AM
    • Posts 7
    David,
    Thanks for the updated gallery. The file "DesktopPortalFooter.ascx" referenced in viewer.aspx is missing. Coud you include them in the ZIP file? Thx. :)

  • Re: Free Gallery Module (VB.net) Available

    02-19-2003, 8:58 AM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    Jay,

    You are absolutely correct. I was thinking at the time that the browser would be relative to the gallery subfolder, but it won't. It will be relative to the portal root folder. Thanks for pointing that out. I will update the file and .ZIP. Now, why it works on mine is another story....

    Aashray,

    I have forgotten what is custom and what came with the portal. I guess I forgot that the original IBS portal had no common footer. I created one for my portal -- that's the DesktopPortalFooter.ascx. You can simply delete the reference (in the page declarations and also the HTML code) to this tag on editgallery.aspx, cache.aspx, and viewer.aspx and you should be OK. I will also either update the installation docs or remove it completely on the distribution version.



    David
  • Re: Free Gallery Module (VB.net) Available

    02-19-2003, 1:11 PM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    OK, just posted the v1.1.5 update. My specific desktopportalfooter.ascx was removed and I replaced it with a galleryfooter.ascx. It's only present on the viewer.aspx page.

    It includes the version number, which I also added to help people keep track of which version they have installed (if that's an issue for you).

    If you don't like it, simply go into the viewer.aspx file and delete it.


    David
  • Re: Free Gallery Module (VB.net) Available

    08-18-2003, 5:43 PM
    • Member
      615 point Member
    • akahara
    • Member since 11-15-2002, 1:15 PM
    • Posts 123
    I just wanted to revive this thread...

    The image gallery module is very nice...a great contribution.

    However, I don't think the cache.aspx page is functioning correctly...the pictures appear for a while after the module is initally added to a page, but then the disappear after a while.

    Just curious if anyone has implemented this successfully in their portals?

    I'm not sure if the original author, David Barrett, still monitors these threads...but he has contributed his code, and I think it would be a worth while effort if we can get this module fully working, and add to it.

    Thanks,
    - akahara

  • Re: Free Gallery Module (VB.net) Available

    08-18-2003, 5:52 PM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    I have seen this happen sporadically, but it seemed to only happen to people running ASP.Net version 1.1. Unfortunately (or fortunately, depending on how you look at it), I still run version 1.0 and haven't seen this error.

    I will look back at my emails when I get home to see if anyone came up with a resolution.

    In short, I don't have a solution at the moment and don't have the runtime to be able to troubleshoot. I'll post back here with anything I find at home.



    David

    P.S. -- Thanks for the compliments. I have several miscellaneous enhancements provided by different people and have wanted to consolidate, but haven't had the time. I am thinking about upgrading my site to version 1.1 of the runtime, and when I do, I'll compile all the enhancements into one module.
  • Re: Free Gallery Module (VB.net) Available

    08-19-2003, 2:37 PM
    • Member
      615 point Member
    • akahara
    • Member since 11-15-2002, 1:15 PM
    • Posts 123
    David,

    Good to see you here...

    I had also e-mailed you, so please disregard that...better to post any solutions here, so all can benefit...

    On my development box, I'm running ASP 1.0 still...I'm almost positive my problem has something to do with the cache.aspx page. The module works for a while, but then, the images disappear. I'll be looking at it very closely this week.

    If I find a way to get the module working, I'll definately post the solution here.

    Thanks again,
    - akahara



  • Re: Free Gallery Module (VB.net) Available

    08-24-2003, 8:13 AM
    • Member
      135 point Member
    • MarekK
    • Member since 12-03-2002, 8:11 AM
    • Posts 27
    I use the C# version of the gallery.
    It seems that there is an error in the GalleryRequest.cs module. The BaseGalleryRequest method contains the following line:
    intermediatePaths = new string[] {paths.GetUpperBound(0).ToString()};
    In my opinion it should rather look like:
    intermediatePaths = new string[paths.GetUpperBound(0)];
    Otherwise, the gallery cannot display pictures in folders that are deeper than, as far as I remember, 3 or 4 levels from the root. I think that the same problem exists in VB version.
    David, can you confirm this?

    PS: I was trying to send information about this problem to David directly (from his Web site), but I was getting strange errors about his e-mail address. :-(

    Marek
  • Re: Free Gallery Module (VB.net) Available

    08-24-2003, 1:01 PM
    • Member
      155 point Member
    • davidbarrett
    • Member since 10-29-2002, 10:02 AM
    • Denver, Colorado
    • Posts 31
    Yes, Marek, someone did discover this bug and had reported it to me. I thought I had modified that, but I guess I didn't. =(

    I don't believe it affects the VB version of the code as that is what I'm running and I have several levels of images. I do remember the fix was specific to the C# version (which, I may point out, was converted by someone else.) =o

Page 2 of 2 (28 items) < Previous 1 2