<2017 November>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

On this page...

Search

Links

Member of...


ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories

Microsoft

Blogroll

Deutsche Resourcen

Management

Sign In
 

#  Friday, 30 November 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, 30 November 2007 15:07:36 (W. Europe Standard Time, UTC+01:00)  #    Comments [11]

 



Saturday, 01 December 2007 03:57:24 (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, 04 December 2007 15:44:04 (W. Europe Standard Time, UTC+01:00)
Geat!. Thanx for sharing!
Thorsten
Saturday, 15 December 2007 19:50:01 (W. Europe Standard Time, UTC+01:00)
Great work! Just downloaded and installed it now, works great. Thanks for sharing.
Friday, 28 December 2007 20:34:14 (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.
Kumar
Saturday, 29 December 2007 14:36:55 (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.
Chris
Tuesday, 01 January 2008 14:52:01 (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, 01 January 2008 18:23:27 (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).
Chris
Sunday, 06 January 2008 21:32:38 (W. Europe Standard Time, UTC+01:00)
Hi,

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

Thanks

Ali
Ali
Tuesday, 08 January 2008 18:50:35 (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:

http://web.archive.org/web/20051124023617/http://www.ngallery.org/

Chris
Chris
Wednesday, 16 January 2008 22:55:14 (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=2.0.0.0, 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, 17 January 2008 10:00:51 (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.
Chris
Comments are closed.

© Copyright 2017 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.