<February 2023>

On this page...



Member of...

ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories



Deutsche Resourcen


Sign In

#  Friday, November 30, 2007

I have posted an updated version

Given my plans to rather sooner than later upgrade my server to IIS7, I am currently switching all applications to ASP.NET 2.0 in preparation of this move. But there was nGallery, which I used all over the place when I needed a photo gallery...

Today I decided it was about time to do something about it, and gave converting nGallery to .NET 2.0 a try (actually all the projects target .NET Framework 3.5). Turns out it took me roundabout two hours for this whole endeavour. To save everybody else time, here is my VS2008 solution tree:

nGalleryTNG.zip (2.92 MB)

What is changed compared to the original nGallery 1.6.1 for ASP.NET 1.1? Here is a somewhat complete laundry list:

  • Converted it to a Web Application project
  • Placed all third party source code in the ThirdParty folder. That way I can always change and recompile if necessary.
  • Took all static images from the \photos directories and put them into \images. No more mixing the photo handler & photo cache with the Web site's images.
  • The album handler is now being abused in Application_BeginRequest, plus it now uses RewritePath. Fixes the darn Server.Transfer errors.
  • Moved the configuration of nGallery from the data folder to App_Data. Other than that: no configuration changes.

I did not switch to ASP.NET 2.0 master pages, it still uses the old user control approach. But after all, I only needed it in a working fashion for 2.0+.

Note: I only tested the XML-based storage because that's how I use nGallery. The SQL-storage has received no testing whatsoever!

Download Web site files only: nGalleryTNG_WebSite.zip (924.39 KB)

Categories: 2 Ohhhh | 3.5 | ASP.NET | Use the source Luke
Friday, November 30, 2007 3:07:36 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [11]


Saturday, December 1, 2007 3:57:24 AM (W. Europe Standard Time, UTC+01:00)
Great Stuff. I was eventually going to do do this and phase out all 1.x code at my company. Thank you very much for making this available.
Jon B
Tuesday, December 4, 2007 3:44:04 PM (W. Europe Standard Time, UTC+01:00)
Geat!. Thanx for sharing!
Saturday, December 15, 2007 7:50:01 PM (W. Europe Standard Time, UTC+01:00)
Great work! Just downloaded and installed it now, works great. Thanks for sharing.
Friday, December 28, 2007 8:34:14 PM (W. Europe Standard Time, UTC+01:00)
I have down load your nGalleryTNG_WebSite.zip (924.39 KB)
and the nGalleryTNG.zip (2.92 MB) but I have problem building these with MS Studio 2005.
It appears to be it was build for Studio 2008.
What do you recommend?
I would like try your stuff. Thanks for help.
Saturday, December 29, 2007 2:36:55 PM (W. Europe Standard Time, UTC+01:00)
Yes, those are VS08 solution / project files, and no, those won't work with VS05. Either create VS05 projects yourself, or switch to VS08.
Tuesday, January 1, 2008 2:52:01 PM (W. Europe Standard Time, UTC+01:00)
How about running this under VWD 2008 Express?
I'd love to take advantage of all your hard work instead of trying to develop my own photogallery pages...

Kelsey Thornton
Kelsey Thornton
Tuesday, January 1, 2008 6:23:27 PM (W. Europe Standard Time, UTC+01:00)
Quite frankly I don't know whether this solution would open under VWD Express or not (I have Team Suite installed, the entirely other end of the spectrum).
Sunday, January 6, 2008 9:32:38 PM (W. Europe Standard Time, UTC+01:00)

I'm a beginner in .NET (Migrating from asp). Is there any "getting started guide" for nGallery?


Tuesday, January 8, 2008 6:50:35 PM (W. Europe Standard Time, UTC+01:00)
"Getting started guide": I don't know whether the original 1.6.1 distribution of nGallery is still hosted somewhere. But you could check out the archive of nGallery.org:


Wednesday, January 16, 2008 10:55:14 PM (W. Europe Standard Time, UTC+01:00)
Looks like the current "Website only files" requires Framework 3.5, won't work on Framework 2.0

Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Child nodes not allowed.

Source Error:

Line 82: <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
Line 83: type="Microsoft.CSharp.CSharpCodeProvider, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Line 84: <providerOption name="CompilerVersion" value="v3.5"/>
Line 85: <providerOption name="WarnAsError" value="false"/>
Line 86: </compiler>

Source File: C:\Inetpub\nGallery\web.config Line: 84

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Thursday, January 17, 2008 10:00:51 AM (W. Europe Standard Time, UTC+01:00)
Yes, this project is a VS2008 project and as such contains 3.5 settings in the web.config file.
Comments are closed.

© Copyright 2023 Christoph Wille

newtelligence dasBlog 2.3.9074.18820
Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.