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)
- Obtain GalleryServerPro from http://www.galleryserverpro.com/ (Please donate, this guy rocks!)
- Compile the web application into a separate folder
- Copy all of the .dll files from GalleryServerPro/Website/bin into your BlogEngine.NET/Bin folder
- I created a folder called BlogEngine.NET/gallery to support the required files
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).
- 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.
- 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.
- 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.";
- 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
- 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)