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 (28) Permalink Permalink     Rss feed for comments Post Comment Feed

E-mail DotNetKicks Digg StumbleUpon Slashdot Twitter Facebook Del.icio.us

Comments (28) -

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 #
I hope you don't mind Justin, I copied and pasted the tutorial which is great might I add. Makes it so much easier for me to work from. By the way, any news or updates on Gallery Server Pro yet?
United States 7/27/2010 6:21:50 PM #
I was struggling with this for days, finally found this tutorial...TY so much.
United Kingdom 7/31/2010 6:11:47 AM #

I came across this site when searching on google..

Visual Studio was giving me an error because the "galleryServerPro" is not an expected child element of system.web...
Code:

The element 'system.web' has invalid child element 'galleryServerPro'. List of possible elements expected: 'anonymousIdentification, authentication, authorization,....

Any ideas or help is appreciated??

Thanks,
United States 8/7/2010 8:02:59 PM #
In my opinion nofollow blog is just for looser !!! beside that I think google still consider a nofollow links cause they're still indexed in the google webmaster tool eventougth I doubt they're count for PR.
Anyway you have a fast loading blog and I like that, can you tell me where you host it ?
United States 8/14/2010 4:45:23 PM #

Add comment




  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

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent Posts

Recent Comments

Comment RSS

Most comments

ericchapman ericchapman
1 comments
gb United Kingdom
Clone High Streaming Clone High Streaming
1 comments
us United States
iphone mad iphone mad
1 comments
gb United Kingdom

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 25.10 +0.44 (+1.78%)
GOOG 463.18 +2.845 (+0.62%)
BBY 33.46 +0.80 (+2.45%)
CML 17.80 +2.79 (+18.59%)
COST 58.59 +0.80 (+1.38%)
MSFT 23.94 +0.04 (+0.17%)

Digsby

Xbox Gamer Card

Jwendl Gamer Score: 11570
Jwendl
Rock Band 2 (310) TMNT 1989 Arcade (35) Assassin's Creed II (340) Marvel Ult. Alliance 2 (390) FINAL FANTASY XIII (245) Borderlands (1340) Kane and Lynch:DeadMen (40) Madden NFL 10 (0) Family Game Night (0) STREET FIGHTER IV (180) South Park (180) Gears of War 2 (400) TEKKEN 6 (0) Culdcept SAGA (95) CSI: Deadly Intent (0) CSI-Hard Evidence (0)
Offline
8/30/2010 1:31:44 AM
Last seen 08/30/10 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