Hello all
I'm currently evaluating using GS Pro in a project where we will be creating a new Gallery, that we need to preload with several thousand existing images.
I have a XML file with some data for the images (mainly category labels) and the images, and I'm looking into how one would go about getting these data into GS Pro.
I started trying to set up a small .NET Console Application to handle the task, after reading
this article, that suggests using the Factory class to create new GalleryObjects. But I'm having some trouble getting the Console App to run.
Error seems to occur when I'm trying to Initialize the AppSetting with the following code:
Code:string physicalPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string name = Assembly.GetExecutingAssembly().GetName().FullName;
AppSetting.Instance.Initialize(ApplicationTrustLevel.Full, physicalPath, name);
Where I'll get:
Code:Could not load type 'GalleryServerPro.Data.SqlServer.SqlDataProvider' from assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I tried configuring the console app with the following app.config:
Code:<configSections>
<section name="galleryServerPro"
type="GalleryServerPro.Configuration.GalleryServerProConfigSettings, GalleryServerPro.Configuration"
allowDefinition="MachineToApplication"
restartOnExternalChanges="true"
requirePermission="false"/>
</configSections>
<galleryServerPro>
<!-- settings from web app copied here -->
</galleryServerPro>
Can anybody tell me what I'm doing wrong, and is there somewhere I can find an example showing me how to do this?
Regards
Jesper Hauge