|
Hi i found you'r nice photobrowser, and used on my site, but it shows the _vti_cnf folder as a photodirectory do anyone have a suggestion to solve this minior problem ?
|
|
|
|
|
Sorry I'm not too sure what to suggest on this as I don't get this problem. You could alter the code to filter out that directory.
Nick
|
|
|
|
|
Hi,
I've just compiled your solution and i got the current error:
A generic error occurred in GDI+.
Source Error:
Line 64:
Line 65: string thumbnailPath = thumbnailDir + Path.DirectorySeparatorChar + GetFilename(imagePath);
Line 66: thumbnail.Save(thumbnailPath, ImageFormat.Jpeg);
Line 67:
Line 68: return GetFilename(imagePath);
Source File: C:\Inetpub\wwwroot\PhotoBrowserLibrary\ThumbnailUtilities.cs Line: 66
Stack Trace:
[ExternalException (0x80004005): A generic error occurred in GDI+.]
System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
System.Drawing.Image.Save(String filename, ImageFormat format)
Codefresh.PhotoBrowserLibrary.ThumbnailUtilities.CreateThumbnail(String imagePath) in C:\Inetpub\wwwroot\PhotoBrowserLibrary\ThumbnailUtilities.cs:66
Codefresh.PhotoBrowserLibrary.Photo..ctor(SessionToken token, String name, String virtualPath, DateTime dateTaken, Int64 filesize) in C:\Inetpub\wwwroot\PhotoBrowserLibrary\Photo.cs:42
Codefresh.PhotoBrowserLibrary.PhotoUtilities.GetPhotos(SessionToken token, PhotoDirectory obj) in C:\Inetpub\wwwroot\PhotoBrowserLibrary\PhotoUtilities.cs:74
Codefresh.PhotoBrowserLibrary.PhotoDirectory.GetPhotos() in C:\Inetpub\wwwroot\PhotoBrowserLibrary\PhotoDirectory.cs:93
Codefresh.PhotosBrowser.PhotoBrowser.GeneratePhotosTable(PhotoDirectory dir, Int32 pageNumber) in C:\Inetpub\wwwroot\PhotoBrowser\PhotoBrowser.ascx.cs:278
Codefresh.PhotosBrowser.PhotoBrowser.tvwMain_SelectedNodeChanged(Object sender, EventArgs e) in C:\Inetpub\wwwroot\PhotoBrowser\PhotoBrowser.ascx.cs:256
squishyWARE.WebComponents.squishyTREE.TreeView.RaisePostBackEvent(String eventArgument) in C:\Inetpub\wwwroot\squishyTREE\TreeView.cs:455
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
any idear?
thank you in advance!
MartinO
|
|
|
|
|
Hmm, haven't a clue I'm affaid. True trawling through Google
http://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=%22A+generic+error+occurred+in+GDI%2B%22+Save&btnG=Search&meta=
|
|
|
|
|
I had the same error, I solved it changing the permissions of the photo directory to write/read.
Computer Engineer
Caracas - Venezuela
|
|
|
|
|
Hey Nick,
I've added some new "features" to your code. I quote features, because of course, for my use, they are added features, but they may not be for everyone. Although I've tried to add them in such a way as to make it more useable for anyone.
Anyway, I'll put it up on my website probably tomorrow and post a link here. It's mostly ToolTip and navigation stuff. If you'd like I can send you my current version of the source and you can do a WinDiff to see what I've added.
If you don't want to look at any of the new code, I completely understand, as this is your baby, but I found your tool extremely useful, and just added some of my own customizations.
Thanks,
Trynyti.
|
|
|
|
|
Here is where the version I have updated is located:
http://www.trynyti.com/photobrowser/[^]
If you have any questions, or want me to send you the source I've got, just let me know.
Thanks,
Trynyti.
|
|
|
|
|
Hey N_1_C_K,
First off this is a great project! I was just going to start writing my own when I noticed yours, saves me a lot of time.
I am having an issue when I try and load a page (or the test.aspx). I get the above error, "Operation must use an updateable query". I haven't spent the time to go through the debugger yet, but just wanted to give you heads up. I've created the Virtual Directory and that is working fine, the page loads, but then hits this error.
I've pasted the entire stack below this message in case it helps.
Once again, great project!
Trynyti.
Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[OleDbException (0x80004005): Operation must use an updateable query.]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +92
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +65
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +112
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +66
Codefresh.PhotoBrowserLibrary.DataAccessLayer.PhotoDirectoryDB.Insert(PhotoDirectory parent, PhotoDirectory photoDirectory) +424
Codefresh.PhotoBrowserLibrary.DirectoryUtilities.GetDirectories(PhotoDirectory parent, SessionToken token, String path) +666
Codefresh.PhotoBrowserLibrary.DirectoryBrowser.GetDirectories() +25
Codefresh.PhotosBrowser.PhotoBrowser.Page_Load(Object sender, EventArgs e) +326
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750
|
|
|
|
|
Howdy Everyone,
I figured out the issue with this error. Seems if you get this error it's 99% a permissions problem. I'm testing this on a WinXP machine, so I need to grant the ASPNET account Read/Write access to the directory (and the mdb file if it's not inheriting). I restarted IIS to ensure that it got the permissions applied to it and walla, it works!
If you are using Win2k3 as your IIS server, you may need to set different permissions. Here's the link that I found the answer to my problem on, maybe it will help someone else as well:
http://www.error-bank.com/microsoft.public.dotnet.framework.adonet/84975_Thread.aspx[^]
Thanks!
Trynyti.
|
|
|
|
|
Hi,
Thanks so much for a great project.
Two suggestions for an admin page:
1. Blow away and regen the db.
2. Batch process to gen all thumbs - my personal web server is particularly slow and being able to run a batch at night would be desirable.
Oh,also. If there were some faux progress animated gif when thumbs were being gend, or directories recursed it would greatly help the UI (ala Expedia). Again, with a slow server, the first time clicking a folder is very slow w/ no user feedback.
Best,
Mark
|
|
|
|
|
Thanks for the feedback. To answer your points:
1) What's wrong with the current implementation of the DB? I purposfully had extra columns storing the size of the photos, filename etc because I had intended to extend it at some point in the future (like adding a photo title). The only other thing that is odd about it is that the command table isn't linked to the photos table by the photo ID. This is because you can wipe the photos table and then regenerate it without losing all the comments.
2) A batch process is an good idea, but my ASP.NET host is pretty nippy and so I don't have the lag that other people have. As I developed it primarily for my use, it works fine for me!
Nick
|
|
|
|
|
Hola,
Sorry, wasn't trying to give you a hard time I really appreciate the work you've done so far - it does work great for me too.
If I were to try to tackle the batch implementation, any suggestions on what method(s) to recurse and call?
Best,
Mark
|
|
|
|
|
everytime you add a album go to the new directory and get the first visit.. that will generate the thumbs you need for others
|
|
|
|
|
Hi,
I have unzipped and tried to set up the solution for the PhotoBrowser.
2 projects, PhotoBrowserLibrary and squishyTree were added but the third project, PhotoBrowser project itself cannot be added, giving the error message above.
|
|
|
|
|
You need to set up a virtual directory for the project called PhotoBrowser.
Nick
|
|
|
|
|
Hi n_1_c_k,
Tks for your reply, I have already created the virtual directory PhotoBrowser, I am able to open the solution in visual studio, but only the other 2 projects were shown in the solution explorer, the PhotoBrowser project is unavailable. It says the project file cannot be found.
|
|
|
|
|
Hi n_1_c_k,
I managed to get it running, tks for the great work!
I deleted and recreated a new virtual dir, and it all just came together, cheers
|
|
|
|
|
Hi
I searched the internet and finally find your photo gallery. I implement it on my site but unfortunately it showed nothing on the web page without sending any error. Would you please provide me my more help?
Thanks
hamed
|
|
|
|
|
i had that one... you must create a virtual directory named photobrowser and put the whole new project there (tree and photobrowserlibrary may be out)... my virtual directory included photobrowserres and the file PhotoBrowser.ascx... plus the default.aspx based on the text.aspx .. don't forget photos directory.
visit at http://aminha.tv/photobrowser
hope it helped.. in the error topic i tried to write all the steps and error i had.
|
|
|
|
|
I´m having the same problem too, blank page after compile.
Tried it several times without any luck.
Are you sure its the virtual dirctory thats causing the problem?
|
|
|
|
|
Hey nick,
Just tried out your sample website, and got the following exception error.
Cheers,
Jon
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Codefresh.PhotosBrowser.PhotoBrowser.tvwMain_SelectedNodeChanged(Object sender, EventArgs e)
squishyWARE.WebComponents.squishyTREE.TreeView.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
|
|
|
|
|
Can you tell me exactly which line is causing the error by stepping through it.
|
|
|
|
|
I have the same problem and received the follow parser error message:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="codefresh.website.Global" %>
Source File: C:\Inetpub\wwwroot\PhotoBrowser\global.asax Line: 1
|
|
|
|
|
There are plenty of tooltip scripts available on the web for free. Mine is not. It seems you are still structuring my tooltip code into your control. Even if you leave the external JavaScript files out of your download file* and instruct people to go download my files, that does not fully address the issue.
I just want to make it clear that anyone who uses my code needs to adhere to my terms of use. A license fee is required for most uses. See http://www.dyn-web.com/bus/terms.html
* My JavaScript files are still in the file I just downloaded Dec 1, so your infringement of my copyright persists. Plus you removed a copyright notice (above the doTooltip function definition in PhotoBrowser.ascx) even though the notice itself says not to remove it!
|
|
|
|
|
I have removed all references to your code in the article and source archive. The updated version has been submitted and should be on the web site in the next day or so.
|
|
|
|