I integrated GalleryServerPro into BlogEngine.NET using the ASP.NET SQL Server Membership. Here are the steps that I went through to accomplish this.

Integrating GalleryServerPro with BlogEngine.NET (Please note this is for MS SQL Server installation using SQL Server Membership, you can tweak it to be anything you want this just worked for my setup)

  1. Obtain GalleryServerPro from http://www.galleryserverpro.com/ (Please donate, this guy rocks!)
  2. Compile the web application into a separate folder
  3. Copy all of the .dll files from GalleryServerPro/Website/bin into your BlogEngine.NET/Bin folder
  4. I created a folder called BlogEngine.NET/gallery to support the required files
  5. This is the batch file that I use:

    xcopy /Y /S GalleryServerPro\Website\gs\controls BlogEngine\BlogEngine.NET\gallery\gs\controls\
    xcopy /Y /S GalleryServerPro\Website\gs\handler BlogEngine\BlogEngine.NET\gallery\gs\handler\
    xcopy /Y /S GalleryServerPro\Website\gs\images BlogEngine\BlogEngine.NET\gallery\gs\images\
    xcopy /Y /S GalleryServerPro\Website\gs\pages BlogEngine\BlogEngine.NET\gallery\gs\pages\
    xcopy /Y /S GalleryServerPro\Website\gs\script BlogEngine\BlogEngine.NET\gallery\gs\script\
    xcopy /Y /S GalleryServerPro\Website\gs\services BlogEngine\BlogEngine.NET\gallery\gs\services\
    xcopy /Y /S GalleryServerPro\Website\gs\skins BlogEngine\BlogEngine.NET\gallery\gs\skins\
    REM xcopy /Y /S GalleryServerPro\Website\CodeFiles BlogEngine\BlogEngine.NET\App_Code\CodeFiles\
    xcopy /Y /S GalleryServerPro\Website\Properties\* BlogEngine\BlogEngine.NET\Properties\
    xcopy /Y /S GalleryServerPro\Website\App_GlobalResources\* BlogEngine\BlogEngine.NET\App_GlobalResources\
    xcopy /Y /S GalleryServerPro\Website\bin\GalleryServerPro.Web.dll BlogEngine\BlogEngine.NET\Bin\
    del /S /F BlogEngine\BlogEngine.NET\gallery\gs\*.designer.cs
    echo DONE

    Keep in mind that you need to call the delete command. Removing the *.designer.cs files are required to convert these control files from a web application to a website (since that is what BlogEngine.NET uses).

  6. This step is the most complicated and difficult. Please be VERY aware of how to modify web.config files. If there is an error after these instructions it is 95% chance that it was an error inside this step.
  7. Merge data from the GalleryServerPro/Website/web_sqlserver_2.0 (or GalleryServerPro/Website/web_sqlserver_3.5 depending what version of .NET Framework you have). into your BlogEngine.NET/web.config. I would strongly suggest backing up your old web.config file so you can redo it over again if things get too hairy.
  8. Edit your global.asax file by adding this to the end of your void Application_Start(object sender, EventArgs e) method
    Application["ComponentArtWebUI_AppKey"] = "This edition of ComponentArt Web.UI is licensed for Gallery Server Pro application only.";
  9. Run the http://yoursitehere.com/gallery/Default.aspx?g=install and follow the Wizard
    After you upload the changes to your website follow these instructions on how to get the website setup http://www.galleryserverpro.com/support/GalleryServerProAdminGuide_v2_2_3286.pdf
  10. After installing it look at BlogEngine.NET/gallery/gs/pages/install.ascx and change the setup option to false

You can visit my gallery by going to http://www.jwendl.net/gallery/

I also wrote an extension to convert [ gsp:1234 ] into a GalleryServerPro thumbnail. I am still working on it though, but here is the initial version.

GalleryServerPro.cs (3.13 kb)

Comments Comments (24) Permalink Permalink     Rss feed for comments Post Comment Feed

  • E-Mail
  • DotNetKicks
  • Digg
  • LinkedIn
  • StumbleUpon
  • Slashdot
  • TwitThis
  • Facebook
  • del.icio.us
  • Reddit
  • Yahoo! MyWeb

Comments

You said in your website that you still working on GalleryServerPro into BlogEngine.NET using the ASP.NET SQL Server Membership and that is the initial version. I'll be waiting your next version. Hope you do a lot of version on the GalleryServerPro.
United States 3/11/2009 10:33:40 AM #
You know what would be good? If you can allow comments on GalleryServerPro's photos.
Australia 3/14/2009 6:04:24 AM #
@Free Cursors: Yes I know, that is the next thing that I am working on (when I find I have time to that is).
United States 3/14/2009 6:06:04 AM #
thanks i really enjoy reading your article!!
United States 3/24/2009 2:45:29 PM #
Very complicated.. but Good work.. Hope you succeed..
Malaysia 4/1/2009 1:38:44 AM #
Yes, I agree with Smavdav, very complication, but it looks like it works. Anyway to create a program that will install this automatically?
United States 4/3/2009 8:09:05 PM #
Thanks for the great reference post
United States 4/5/2009 3:31:43 PM #
Thanks, I just get BlogEngine + GalleryServerPro works like charm on my clients blog.

Thanks justin, for your nice tutorial make my job done easily.
United States 4/9/2009 6:33:46 AM #
Any time The Sky!
United States 4/16/2009 10:20:53 AM #
Luigi
Luigi
I have tried to follow the procedure but I think of having the errors in the file web.config merged with GalleryServerPro config. (BlogEngine and Gallery not start).

Is possible to have a web.config that work with BlogEngine and GalleryServer ?

Thanks and sorry for my English.
Italy 5/2/2009 2:22:23 AM #
I can try to strip out what I have that is specific to my web application. I will try to post something when I get a chance. I think to suppliment this post I will take a stock version of BE and a stock version of GalleryServerPro and walk through the steps and upload the result.
United States 5/2/2009 10:38:31 AM #
EDI
EDI
Integrating the galleryserverpro is actually not hard, so long as you follow this. The web.config solution mentioned by Luigi is actually a good idea too.
United States 5/2/2009 6:10:53 AM #
Yeah I agree with you on this EDI, I will most likely post something of a "base" install of BE and GSP when I get the next chance.
United States 5/2/2009 10:39:34 AM #
Luigi
Luigi
Ok! Thanks for all.
Italy 5/2/2009 3:06:23 PM #
boba
boba
Just wondering if you have had the time to create the 'base' install of BE and GSP?  I am just now setting them both up and it would help to have version that is already integrated.
United States 7/12/2009 11:19:18 PM #
Not yet but I plan to after I get back from a few trips.
United States 7/16/2009 6:14:57 PM #
Wow thanks a lot. I didn't know it was possible to integrate GalleryServerPro into BlogEngine.NET. Really nice work!
United States 5/19/2009 8:27:30 AM #
nice blog, is it hard to run a blog like this?
United States 7/14/2009 7:02:20 AM #
Ashok
Ashok
Hi all Nice tutorial,
can we add comments to photo in GalleryServerPro?

Advance thanks for Ur answer
Ashok
India 7/23/2009 11:36:34 PM #
No, currently GSP does not support comments. I think it is in the works though.
United States 8/24/2009 2:55:50 AM #
great post.  I'm especially interested in your GS Extension.  Have you had any time to further the code?
United States 10/18/2009 6:41:16 PM #
Not yet. I am still working on getting more functionality with the newer version. I should have something soon.
United States 10/19/2009 3:33:28 AM #
In the meantime, if I get around to it first, I'll send you the finished code.  What you've got is a good start!
United States 10/20/2009 10:22:19 PM #
I think the old version didn't end up doing what I wanted it to do. I currently have this files.jwendl.net/delivery/GalleryServerPro.txt it's a very bare extension. It gets rid of the hard coded size limits on the image.

Some improvements would be to allow for album, and video data. Right now I just don't have energy to extend it beyond what I need for my blog. So I would be interested in seeing what you or someone else might come up with.
United States 10/21/2009 2:39:14 AM #

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About Author

Justin Wendlandt
Justin Wendlandt
I work for Wells Fargo, play a lot of video games, and program in many languages. [ more ] E-mail me Send mail

View Justin Wendlandt's profile on LinkedIn View Justin Wendlandt's Facebook Profile View Justin Wendlandt's Twitter Profile View Justin Wendlandt's Zune Profile View Justin Wendlandt's Xbox Live Profile

Calendar

<<  February 2010  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

View posts in large calendar

Recent Posts

Recent Comments

Comment RSS

Most comments

general contracting company general contracting company
1 comments
us United States
wow cheats wow cheats
1 comments
us United States
Ben 10 Ben 10
1 comments
us United States

Digsby

Poll

This poll is closed.
What do you use to connect to the internet?
A DLink Exterme Gaming router
 
0.0%
A Linksys / Cisco home router
 
0.0%
None of the above
 
0.0%
A Netgear home router
 
0.0%
I built my own box to do routing
 
100.0%

Total Votes: 1

Stock Quotes

WFC 26.43 -0.99 (-3.61%)
GOOG 533.47 +2.18 (+0.41%)
BBY 35.47 -0.35 (-0.98%)
CML 19.88 0.00 (0.00%)
COST 58.14 -0.44 (-0.75%)
MSFT 27.72 -0.30 (-1.07%)

Xbox Gamer Card

Jwendl Gamer Score: 10100
Jwendl
Culdcept SAGA (75) Rock Band 2 (310) Madden NFL 10 (0) Borderlands (945) Gears of War 2 (400) South Park (175) CSI-Hard Evidence (0) Eternal Sonata (40) Magnacarta2 (50) Spectral Force 3 (275) Left 4 Dead 2 (50) LEGO Batman (0) Madden NFL 09 (375) Soulcalibur IV (325) Guitar Hero II (210) Assassin's Creed (705)
Offline
2/8/2010 7:22:15 PM
Last seen 9 minutes ago playing Xbox.com

Xbox Avatar

xbox Avatar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Creative Commons License