Welcome Guest Search | Active Topics | Members | Log In | Register
How To: Open the source code in Visual Studio Options
Roger Martin
Posted: Tuesday, June 10, 2008 9:22:37 PM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
You can open the source code for Gallery Server Pro with any of these products:

Visual Studio 2005
Visual Studio 2008
Visual Web Developer 2008 Express with SP1 (free download from Microsoft)

Visual Studio 2005:

1. Download the source code and extract the directories and files to the desired location.
2. Use Visual Studio 2005 to open TIS.GSP.sln.
3. That's it! The solution should compile, and if you right-click installer/default.aspx, Visual Studio will use its internal web server to start the installer to help you connect the app with the database.

Visual Studio 2008 and Visual Web Developer 2008 Express with SP1:

1. Download the source code and extract the directories and files to the desired location.
2. Start Visual Studio and open TIS.GSP.sln.
5. The upgrade wizard will start. Step through the wizard until it is finished.
6. That's it! The solution should compile, and if you right-click installer/default.aspx, Visual Studio will use its internal web server to start the installer to help you connect the app with the database.

Notes:

1. When I tested the source code in Visual Web Developer 2008 Express with SP1, I received the following message at the end of the upgrade wizard:

Quote:
Some of the properties associated with the solution could not be read.

I am not sure of the implications of this, but the code still compiled and seemed to work fine. Let me know if you can add any insight into this.

2. Compiling the source code copies the 64-bit version of System.Data.SQLite.dll to the web application's bin directory, even though I changed the project reference to specify the 32-bit version just before releasing the source code. This will cause an error when you try to run Gallery Server Pro on a 32-bit operating system. To resolve this, open the project TIS.GSP.Data.SQLite and delete the 64-bit version of the dll - it is in the directory assemblies\x64.

3. You may get this error when running Gallery Server Pro for the first time:

Quote:
The base class includes the field 'ScriptManager1', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager).


This can be resolved by converting the web application to .NET 3.5. (It may be possible to resolve it and still stick with .NET 2.0, but I haven't had the time to dig in.) Right-click the gsweb project in the Solution Explorer (on the right side in Visual Studio) and click Properties. On the Application tab, select .NET Framework 3.5 in the Application Target dropdown box. Click Yes when asked to confirm.

Roger Martin
Lead Developer for Gallery Server Pro
echris
Posted: Saturday, August 16, 2008 4:22:51 PM
Rank: Member

Joined: 8/14/2008
Posts: 14
Location: Spokane,WA
In visual studio after opening the project you can open the installer folder and right click the default.aspx file and "open in browser". Trying to set the file as the startup page will not work as it won't start up a class library, but it will bring up the installer if you open default.aspx in the browser.
spamcram
Posted: Thursday, November 20, 2008 2:19:15 PM
Rank: Member

Joined: 10/27/2008
Posts: 13
Location: UK
Ok I've opened up the source code in Visual Web Developer 2008.. I've changed what I needed to, I've deleted that x64.dll file.. now what do I do? Do I press Rebuild Solution? (Yes total newbie with programming). < I did try that but.. in the source folder I got lots of .cs files. Help anyone?

File Attachment(s):
GSP Build.jpg (286kb) downloaded 10 time(s).


spamcram
Posted: Thursday, November 20, 2008 2:38:52 PM
Rank: Member

Joined: 10/27/2008
Posts: 13
Location: UK
^^I attached image of what happens when I do press 'Build Solution'.

(Didn't let me edit my own post).
Roger Martin
Posted: Saturday, November 22, 2008 10:19:43 AM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
I haven't seen that error before but a quick google search turned up a lot of hits. Try the solution posted here.


Roger Martin
Lead Developer for Gallery Server Pro
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.