 |
|
|
 |
|
|
 |
|
|
Error 1 'TreeNode' is an ambiguous reference between 'System.Web.UI.WebControls.TreeNode' and 'squishyWARE.WebComponents.squishyTREE.TreeNode' C:\tmp\PhotoBrowser\PhotoBrowser.ascx.cs 174
Error 2 'TreeNode' is an ambiguous reference between 'System.Web.UI.WebControls.TreeNode' and 'squishyWARE.WebComponents.squishyTREE.TreeNode' C:\tmp\PhotoBrowser\PhotoBrowser.ascx.cs 191
Can you help me?
|
| Sign In·View Thread·PermaLink | 1.86/5 (4 votes) |
|
|
|
 |
|
|
This works for me in Firefox but in IE I get an error
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:
Line 252: // unique ID Line 253: Hashtable directoryLookup = (Hashtable) Context.Session["DirectoryLookup"]; Line 254: PhotoDirectory dir = (PhotoDirectory) directoryLookup[Int32.Parse(node.Key)]; Line 255: Line 256: GeneratePhotosTable(dir, 1);
Source File: c:\inetpub\wwwroot\PhotoBrowser\PhotoBrowser.ascx.cs Line: 254
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Codefresh.PhotosBrowser.PhotoBrowser.tvwMain_SelectedNodeChanged(Object sender, EventArgs e) in c:\inetpub\wwwroot\PhotoBrowser\PhotoBrowser.ascx.cs:254 squishyWARE.WebComponents.squishyTREE.TreeView.RaisePostBackEvent(String eventArgument) in C:\Inetpub\wwwroot\PhotoBrowser\squishyTREE\TreeView.cs:455 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Chris
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I'm not familiar with adding references. In Visual STudio, i see where to add the references, but where do i get the squishyTree & photovrowser dlls to refer to? i don't see them in the code download.
|
| Sign In·View Thread·PermaLink | 3.00/5 (4 votes) |
|
|
|
 |
|
|
Here is the error message:
[OleDbException (0x80004005): Could not use ''; file already in use.] System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20 System.Data.OleDb.OleDbConnection.InitializeProvider() +57 System.Data.OleDb.OleDbConnection.Open() +203 Codefresh.PhotoBrowserLibrary.DirectoryBrowser.OpenDatabaseConnection(String photosPhysicalPath) +87 Codefresh.PhotoBrowserLibrary.DirectoryBrowser..ctor(String photosPhysicalPath) +28 Codefresh.PhotosBrowser.PhotoBrowser.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\PhotoBrowser.ascx.cs:89 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
this happens when you view the page once, then close the browser and go to the page again.
how do i go about resolving this? is anyone else have this issue? also to note, the photobrowser application is pointing to the C:\ drive. However, I have moved the website to my G:\ drive. Is this causing the problem?
-- modified at 10:34 Thursday 7th December, 2006
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
that's the thing. i am not opening it with Access. it seems that when one person opens the DB, another attempt to open the db fails and retuns the error message "file already in use"
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
i did some research on this and found out that it was a permissions issue. thanks for the response and thanks for the wonderful asp control.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
When I tried to run the project, there's no display on my screen and I couldn't add to the database. What should I do to make it appear in my screen? Thanks!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
When ever I try to access the Photo Album, I got the following problem:
Error Message:
Server Error in '/PhotoBrowser' Application. Could not use ''; file already in use ( By '' means PhotoServer.mdb file). 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: Could not use ''; file already in use.
Source Error:
Line 87: string mappedPhotosPath = request.MapPath(photosPath) + "photos"; Line 88: Line 89: dirBrowser = new DirectoryBrowser(mappedPhotosPath); Line 90: Line 91: }
Source File: c:\inetpub\wwwroot\photobrowser\photobrowser.ascx.cs Line: 89
Stack Trace:
[OleDbException (0x80004005): Could not use ''; file already in use.] System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) System.Data.OleDb.OleDbConnection.InitializeProvider() System.Data.OleDb.OleDbConnection.Open() Codefresh.PhotoBrowserLibrary.DirectoryBrowser.OpenDatabaseConnection(String photosPhysicalPath) Codefresh.PhotoBrowserLibrary.DirectoryBrowser..ctor(String photosPhysicalPath) Codefresh.PhotosBrowser.PhotoBrowser.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\photobrowser\photobrowser.ascx.cs:89 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Control.LoadRecursive() System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain()
Error Message End:
I think it is due to fact that Connection is open only once and not closed and when other user try to access it, Photoalbum throws error that data is already in use.
Please help me out of this problem
Thanks. Ejaz
-- modified at 20:27 Tuesday 2nd May, 2006
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
I get a error: Operation must be performed on a query which can be updated. Exception Details: System.Data.OleDb.OleDbException: Source Error: Line 81: cmd.Parameters.Add(CreateStringParam("VirtualPath", photoDirectory.VirtualPath)); Line 82: Line 83: cmd.ExecuteNonQuery(); Source File: F:\Download\fotoalbum\PhotoBrowser\PhotoBrowserLibrary\PhotoDirectoryDB.cs Line: 83 What does it mean? (PhotosServer.mdb is empty???)
F. Douven
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
This usually means the PhotoServer.mdb file is read only. Clear this flag and it should work fine.
Edit: You might like to see this post as well
Nick
-- modified at 8:33 Friday 24th March, 2006
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |
|
|
I too am interested in a VS 2005 release. Or at least a version that can be converted. Any idea when this might happen?
epf
-- modified at 13:26 Wednesday 25th January, 2006
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
|
Sorry but I don't have the time to convert it. I have actually done the conversion for my private site and it wasn't that difficult.
Nick
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Sorry I don't have it in a fit state at the moment. I will try to in the futute but no promises.
Nick
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
Hi,
After making some corrections for ambiguous names of the tree node control and adding (decimal) in the math.floor statement, I got the project compiled without any errors.
Now, every time I click a thumbnail to view the picture I get the error:
Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.
Line 520: Photo photo = (Photo) photos[id]; Line 522: photo.IncrementViewed(); Line 524: imgPhoto.ImageUrl = "photos" + photo.FullVirtualPath.Replace(@"\", "/");
This same kind of error I get when I add a new directory.
Has this anything to do with the new dotnet version?
Thanks,
Martijn
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
Sorry,
Had nothing to do with .net 2.0
chrisbal already wrote: 'I had to give the ASPNET account full access to the ./photos directory.'
That worked for me.
Martijn
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
I also got rid of the abmiguous error. Now I get error in int totalNoOfPages = (int) Math.Floor(photos.Count / photosPerPage);. Since I am not a C# guy, I don't know how to solve this. Can you help?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |