|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Hi First off I'm not a web guru in any way shape or form so please excuse the dumb questions but I'm having a problem running the web installer. Actions performed so far... 1. On my Windows Home Server I have created a web with ISS allowing ASP. 2. This web sits on a share called in this location D:\shares\Photos\HydeGallery 3. GSP was unzipped to the location shown in 2. 4. The Installer is in this location D:\shares\Photos\HydeGallery\installer 5. If I try to run the installer from a wirelessly connected laptop with http://server/HydeGallery/installer I get a web page returned with the following... Code: Server Error in '/HydeGallery' Application. --------------------------------------------------------------------------------
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>
6. No idea where to go from here. help! ;-)
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
Read the section "What To Do If You Get an Error" in the Admin Guide. In short, you should set customErrors="Off" in web.config so that you get a better description of the error. If you can't figure it out from there, post the complete message and we'll give you a hand.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Ah that had me phased as in another package I'd tried it was customerrors=true. Anyway made the change and tried again. The error I get now is:- Code:Server Error in '/HydeGallery' Application. --------------------------------------------------------------------------------
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 54: <compilation debug="false"> Line 55: <assemblies> Line 56: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 57: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> Line 58: <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Source File: D:\shares\Photos\HydeGallery\web.config Line: 56
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 Sorry, this doesn't mean anything to me :oops:
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
You need to either install MS Ajax or upgrade to .NET 3.5. If you upgrade to .NET 3.5, make sure you use the 3.5 version of web.config.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
OK installed .Net 3.5 and renamed web.config files to swap between the two versions. So version 3.5 of web.config is now named web.config and the old one is orig.web.config. Then tried again and got: Code:Server Error in '/HydeGallery' Application. --------------------------------------------------------------------------------
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Attempt to write a read-only database attempt to write a readonly database
Source Error:
Line 93: <providers> Line 94: <clear/> Line 95: <add applicationName="Gallery Server Pro" connectionStringName="SQLiteDbConnection" name="SQLiteRoleProvider" type="GalleryServerPro.Data.SQLite.SQLiteRoleProvider"/> Line 96: <add applicationName="Gallery Server Pro" connectionStringName="SqlServerDbConnection" name="SqlRoleProvider" type="System.Web.Security.SqlRoleProvider"/> Line 97: </providers>
Source File: D:\shares\Photos\HydeGallery\web.config Line: 95
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 Took a stab at correcting this by renaming the 3.5 of the Web.sqlserver.config and tried again but got the same error as above, so that can't be it. I'm assuming that I'm missing a sql server application on my Windows Home Server? Anyway, as you mightg have guessed by now I don't have a clue if sql server is installed on my WHS or not, let alone what version it might be. So to be a pain how do I correct the above error please?
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Hmmm, just noticed it says "Version Information: Microsoft .NET Framework Version:2.0.50727.1433;" at the bottom of that last error output. Does that mean that .net 3.5 hasn't installed correctly afterall?
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
You may want to do a more careful reading of the installation instructions. All three of your questions in this thread are answered in there.
From step 5 of the section Performing a New Installation of Gallery Server Pro, SQLite:
"Use Windows Explorer to give the user account IIS is running under modify permission to the web application directory (ex: C:\inetpub\wwwroot\galleryserverpro\). Refer to the section Configuring NTFS Permissions In Microsoft Windows for more information."
If I am mistaken and that is not it, make sure the 'Read Only' checkbox is not selected on the .sqlite file in the App_Data directory. Do this by right-clicking the file in Win Explorer and choose Properties.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Yeah sorry. I kinda found myself with your app only because it said it had an installer. I was expecting an exe and a wizard to guide me through all this stuff. This is really outta my depth and I don't have the time for another 'project' sorry.
I appreciate this product isn't really for me, but I wish you every sucess with it and thanks for all your help thus far.
Regards Hyde.
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Firstly...
An apology. Sorry.
Mitigating circumstance (excuse) owing to a recent operation I'm not getting a whole lot of sleep lately so my attention span is minute.
Since my last post I've followed your instructions and now have a working Photo Gallery!
There's just two things not working in just the way I'd like and i'dlike to ask if you know of a solution.
1. Can the albums be displayed in reverse order?
My albums are based on dates ie. 20081111 being today. This means that all the most recent stuff you have to scroll all the way to the end of the page (or CTRL + END). It would be most useful if I could reverse this so that the most recent albums were at the top.
2. I have a number of Nokia mp4 movies included in my Gallery. I can play these using QuickTime, and if I double click a file in Windows Explorer the file opens in QuickTime and plays. But mp4 files in the Gallery do not open QuickTime in the same manner that say an AVI file opens Windows Media Player from within the Gallery. Any idea why?
Thanks in advance
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
I accept your apology, and I hope your sleep improves soon. Quote:1. Can the albums be displayed in reverse order? The only way to do this at the moment is to manually rearrange them (Actions - Rearrange objects). Additional sorting options are coming in 2.3, due in later 2009. If you are SQL-inclined, you can update the Seq column in the gs_Album and gs_MediaObject tables to control the order. By default GSP streams .mp4 files to the browser in an <object> tag, which causes the browser to try to figure out which plug-in, if any, should be used to play the object. If no such plug-ins are registered with the browser, the video won't play. But you can force the browser to use QuickTime for .mp4 files if you want. There are two ways to do this: 1. Change the <mimeType> section in galleryserverpro.config to specify a 'video/QuickTime' type instead of 'video/mp4'. That is, change the following line: Code:<mimeType fileExtension=".mp4" browserId="default" type="video/mp4" allowAddToGallery="false" /> to this: Code:<mimeType fileExtension=".mp4" browserId="default" type="video/QuickTime" allowAddToGallery="false" /> That will cause GSP to start using the HTML template defined for QuickTime files earlier in galleryserverpro.config. By default, GSP tries to use QuickTime for .mov, .moov, and .qt files. 2. Add an HTML template in galleryserverpro.config that is specific to the .mp4 file type. You can do this by copying the following section that is already defined for QuickTime: Code:<mediaObject mimeType="video/quicktime"> <browsers> <browser id="default" htmlOutput="<object type="{MimeType}" data="{MediaObjectUrl}" style="width:{Width}px;height:{Height}px;"> <param name="autoplay" value="{AutoStartMediaObjectText}" /> <param name="controller" value="true" /> <param name="pluginurl" value="http://www.apple.com/quicktime/download/" /></object>" /> <browser id="ie" htmlOutput="<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" style="width:{Width}px;height:{Height}px;"> <param name="src" value="{MediaObjectUrl}" /> <param name="autoplay" value="{AutoStartMediaObjectText}" /> <param name="controller" value="true" /> <param name="pluginspage" value="http://www.apple.com/quicktime/download/" /></object>" /> </browsers> </mediaObject> Copy and paste this section so that it is immediately after the copied section. Then change the mimeType attribute to "video/mp4". Notice there are two sections: <browser id="default" and browser id="ie". That's because IE requires a slightly different HTML syntax for invoking the QuickTime plug-in. After you save the change the application will automatically start using the new settings in the next request. No need to restart IIS. There is more info about the HTML template system in the Admin Guide. It is really quite flexible.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Phew!
OK, I'll wait for 2.3 for the sort order on album feature :)
I take it that plugins don't exist for IE for mp4 stuff then? If not then the mp4 stuff I'll attempt next week taking it slowly as I go ;-)
Many thanks Hyde
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
Quote:I take it that plugins don't exist for IE for mp4 stuff then? I didn't mean to imply that. I was taking your post to suggest that the QuickTime plug-in *does* play .mp4 files, and I was just telling you how to configure GSP so that it would force the browser to use that plug-in for those files. I don't actually know whether QuickTime will do this or whether its plug-in works the same across all browsers. I don't have any .mp4 files to test with.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
Ah no. MP4 Files play with QuickTime when I double click them in *Windows* Explorer not Internet Explorer.
I tried your 1st method by altering the MIME type, but that hasn't allowed the browser to kick-off any plugin of any sort.
I get a little graphic load top left of the placeholder and then a few seconds later the placeholder is re-drawn with a vertical scroll bar to the right and the graphic is removed, but no actual footage.
I can email some mundane footage from my phone if you think it would help?
|
|
Rank: Administration
Joined: 8/3/2007 Posts: 844 Location: Fort Atkinson, WI
|
Sounds to me like the QuickTime plug-in can't play your .mp4 files. If you send me one I'll take a look. roger*at*techinfosystems*dot*com.
Roger Martin Lead Developer for Gallery Server Pro
|
|
Rank: Member
Joined: 11/7/2008 Posts: 16 Location: UK
|
You have mail :)
Many thanks Hyde.
|
|
|
Guest |