Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Integration build errors
nell
#1 Posted : Thursday, 15 July 2010 8:35:38 PM(UTC)
Rank: Member

Joined: 15/07/2010(UTC)
Posts: 4
Location: London

Hi all. Have attempted to integrate GS into an existing simple site that I created but am running into some build errors that I'm not sure about. Am authoring in Visual Studio 2010.
I essentially created a simple web project and added a master page, some style sheets and some images. I then followed the integration instructions as per the admin guide. The web.config file of my web project had near enough no entries so I copied the contents of the web.config supplied in the downloaded zip.



Build errors below:

Error 16 Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list. Test.Webv1

Error 17 Type 'GalleryServerPro.Web.Gallery' is not defined. \Test.Webv1\default.aspx.designer.vb 23 31 Test.Webv1

Not sure what these mean so hoping someone can shed a light.

Thanks,

Roger Martin
#2 Posted : Friday, 16 July 2010 12:38:41 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I'm not sure why you are getting the reference errors, but you should be able to resolve it by adding them to the project.

The second error should occur if you have GalleryServerPro.Web.dll in your bin directory. Maybe it will go away when the rest of the errors are taken care of.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
nell
#3 Posted : Sunday, 18 July 2010 8:19:59 PM(UTC)
Rank: Member

Joined: 15/07/2010(UTC)
Posts: 4
Location: London

Thanks for the reply Roger. Have added the references to the project and have some new build errors:

Error 1 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 1 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\AudioGray.xaml 1 9 Test.webv1
Error 2 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Basic.xaml 2 9 Test.webv1
Error 3 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Classic.xaml 2 9 Test.webv1
Error 4 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Console.xaml 2 9 Test.webv1
Error 5 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Expression.xaml 2 9 Test.webv1
Error 6 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Futuristic.xaml 2 9 Test.webv1
Error 7 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 2 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Professional.xaml 2 9 Test.webv1
Error 8 The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line 1 Position 9. B:\websites\Code\Test.webv1\gs\skins\mediaplayer\Simple.xaml 1 9 Test.webv1
Error 9 Type 'GalleryServerPro.Web.Gallery' is not defined. B:\websites\Code\Test.webv1\default.aspx.designer.vb 23 31 Test.webv1


Still getting the 'GalleryServerPro.Web.Gallery' is not defined error as well. Did you mean in your post that I should get that error if the "GalleryServerPro.Web.dll" was not in the bin dir?

Thanks in advance!

Nell
Roger Martin
#4 Posted : Monday, 19 July 2010 5:26:11 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Check out this thread.

In the end, you may want to exclude the GSP files from the solution. Instead, just have them in the required directories but don't make them part of your VS project.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
nell
#5 Posted : Thursday, 22 July 2010 12:03:13 AM(UTC)
Rank: Member

Joined: 15/07/2010(UTC)
Posts: 4
Location: London

Thanks for the reply Roger, that solution worked. Why would including them in the project cause the errors?

Anyhoo, have successfully incorporated into a project and it has worked very well. Donation coming your way me thinks!
nell
#6 Posted : Thursday, 22 July 2010 12:04:46 AM(UTC)
Rank: Member

Joined: 15/07/2010(UTC)
Posts: 4
Location: London

By "them" I mean the gs directory of course..... long night.
Roger Martin
#7 Posted : Thursday, 22 July 2010 1:50:06 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I'm not sure why it didn't work, but if I had to guess, it would have something to do with the different .NET versions. GSP is compiled against .NET 2.0 except for the WPF project, which is compiled against .NET 3.0. If referencing these from an app that is configured for .NET 2.0, it might not know what a XAML file is, and thus give the error. If you took all the GSP source code and compiled it against .NET 4.0 and then used it in a web app compiled against 4.0, my guess is that everything would coexist nicely.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
shrage
#8 Posted : Friday, 27 August 2010 5:22:49 AM(UTC)
Rank: Member

Joined: 9/11/2009(UTC)
Posts: 10

GS has xaml files for the silverlight media player, right click on those xaml files and make sure their build action is "content"
Rss Feed  Atom Feed
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.