.NET 4.0

14 Jun, 2011

Upgrading your gallery to .NET 4.0

By | 2016-12-01T16:37:50+00:00 June 14th, 2011|Tips & Tricks|0 Comments

Gallery Server Pro 2.0 – 2.4 runs on any version of .NET from 2.0 - 4.0. Beginning with version 2.5, Gallery Server Pro requires .NET 4.0 or higher. This change allows GSP to take advantage of new features such as Entity Framework Code First development for SQL Compact CE and LINQ, while also simplifying the packaging and documentation requirements. (You may have noticed that 2.4 ships with six versions of web.config!) If you are currently running GSP 2.3.* or 2.4.*, I recommend upgrading your gallery to .NET 4.0 *before* upgrading the gallery code to GSP 2.5. Technically, you could perform the .NET 4 upgrade and the GSP 2.5 upgrade at the same time, but why complicate things? By separating it into two steps, if anything goes wrong, it will be easier to troubleshoot. What if you are using GSP 2.0 – 2.2? Those versions never shipped with a .NET 4.0 [...]

3 Aug, 2010

Adding a gallery in .NET 4.0 without requiring ClientIDMode in web.config

By | 2016-12-01T16:37:53+00:00 August 3rd, 2010|Tips & Tricks|0 Comments

My previous blog post described how to add a gallery to a default ASP.NET 4.0 application. However, yesterday I noticed some strange behavior surrounding the new ClientIDMode property in .NET 4.0. It appears that in some cases you may have to specify ClientIDMode=“AutoID” in your application, but it doesn’t have to be in web.config. Read on for the details. The tutorial in my previous blog post told you to replace the default web.config file with the .NET 4.0 version that ships with GSP. That version includes a couple attributes to tell GSP to use the legacy 3.5 behavior: <pages theme="" styleSheetTheme="" validateRequest="false" controlRenderingCompatibilityVersion="3.5"  clientIDMode="AutoID" /> If you use controlRenderingCompatibilityVersion and clientIDMode like this, I haven’t noticed any issues with GSP in .NET 4.0. If you are content with this, skip the rest of this post and go have a beer (preferably homebrew). Life is good. But your app might be using the new client [...]

26 Jul, 2010

Adding a gallery to your .NET 4.0 application

By | 2016-12-01T16:37:53+00:00 July 26th, 2010|Dev Insight|6 Comments

After a frustrated user posted his troubles getting GSP to work in a .NET 4.0 application, I thought I would dig into it to see what was going on. I have step by step directions for Visual Studio 2008 in the Admin Guide, but it turns out they don’t quite work for Visual Studio 2010. I also felt I could improve upon the explanation that is in the Admin Guide, so I decided to completely rewrite it in this blog post. Eventually I will update the Admin Guide to include this information. I will create a default .NET 4.0 web application and then add a gallery to it. These steps are largely the same for Visual Studio 2005 and 2008, too. Download the sample application I created for this post. A couple notes: (1) Log in to the gallery with username Admin (password=111). (2) For demonstration purposes, it includes the [...]

7 Apr, 2010

New version adds features, support for .NET 4.0, and fixes bugs

By | 2016-12-01T16:37:53+00:00 April 7th, 2010|Announcements|0 Comments

The latest version of Gallery Server Pro fixes several bugs, adds a few minor features, and includes support for ASP.NET 4.0. Download it here. The Web Platform Installer version will be released in a week or two. There are no changes to the database schema, so upgrading is as simple as saving a copy of your web.config and galleryserverpro.config files, replacing the web files with the new ones (but don’t overwrite your SQLite database file galleryserverpro_data.sqlite), and then navigating to default.aspx?g=upgrade in your web browser. Detailed upgrade and installation instructions are in the Admin Guide. Besides fixing over a dozen bugs, this version adds the following features. Below I dig into these in more detail. Includes support for running under .NET 4.0 Added support for web archive files (.mht) Easier integration into other web applications Backup file now compressed in ZIP archive to enable faster download and uploads Files are [...]