The text of this article is not in this database — only its details are. Read it on the old site: Creating ASP.NET Photo Album using FileSystem as Data
16 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

HydeeditedPosted Nov 6, 2008, 12:15 PMEdited Nov 6, 2008, 12:17 PM
Hi Tried the above and I got a series of errors which I've been correcting with other web resources. But I'm stuck on this one... [code]Server Error in '/TheHyde' 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: Line 22: Line 23: // add path to current context. Line 24: Context.Items["Path"] = settings.UrlFormatter.Decrypt(path); Line 25: Line 26: // set culture info Source File: d:\shares\Photos\TheHyde\Global.asax Line: 24 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in d:\shares\Photos\TheHyde\Global.asax:24 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64 ________________________________________ Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 [/code] It was suggested elsewhere to edit a line in settings.cs to be [localhost] rather than [localHeader], but that just spawned another server error. Any ideas? Cheers Hyde
mehalaPosted Oct 7, 2008, 3:18 AM
Could not find a part of the path 'C:\albums\ftp\memories'.
mehalaPosted Oct 7, 2008, 3:18 AM
Could not find a part of the path 'C:\albums\ftp\memories'.
mehalaPosted Oct 7, 2008, 3:18 AM
Could not find a part of the path 'C:\albums\ftp\memories'.
Chris MeyfartheditedPosted Jul 27, 2006, 5:06 PMEdited Aug 18, 2006, 10:22 PM
.....is it possable to set up the photo path to be a non phisical path? i tried ~/pics. however generated the following error Could not find a part of the path 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\~\pics'. 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.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\~\pics'. Source Error: Line 187: folder.RelativePath = RelativePath(settings, folder.FullName); Line 188: Line 189: foreach (System.IO.FileInfo fileInfo in dirInfo.GetFiles()) Line 190: { Line 191: if (fileInfo.Name.ToLower().EndsWith(settings.DescriptionFile.ToLower()) ) Source File: c:\Documents and Settings\cmeyfarth\My Documents\Visual Studio 2005\WebSites\MemoriesSourceTree\App_Code\CachedFolder.cs Line: 189