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

Notification

Icon
Error

Problem sync'ing, and other bugs
Elephantoplasty
#1 Posted : Thursday, 27 October 2011 9:21:31 PM(UTC)
Rank: Member

Joined: 22/09/2011(UTC)
Posts: 4
Location: Melbourne, Australia

Hi All,

As someone who really knows nothign about what goes on under the surface of this program, I was pretty pleased when I got it installed and running happily on my Windows Home Server 2011 machine.

It now is playing up, and I havedn't a clue how to fix it. It has three problems:

1/. It won't synch - it comes up with the unhelpful message:

Status: Synchronization error
Processing:
Error: : There was an error processing the request.
HTTP Status: 500
Stack trace:


I really don't know where to start on that....

2/. If I try to compact the database, I get the message:

The following error occurred while compacting the database: System.Data.SqlServerCe.SqlCeException: There is a file sharing violation. A different process might be using the file. [ C:\Program Files\Windows Server\Bin\WebApps\Site\Davidsmediagallery\App_Data\GalleryServerPro_Data.sdf ]

I have tried copying the GalleryServerPro_Data.sdf file, pasting a copy to teh same location, deleting the old one and renaming the pasted one as a means of getting rid of the sharing violation, but it makes no difference.

3/. If I try to look at the error log, I get:

An error occurred.

We are sorry, but Gallery Server Pro encountered an error. It has been logged and, if error reporting is enabled, an email describing the problem has been sent to the administrator.

If you are an administrator, you can enable the option on the Gallery Settings page to show detailed information when an error occurs. If that screen is unavailable because of this error, you can also see error details by temporarily setting debug="true" in web.config.


So, I can't even see the error log. I can't find where the file lives in the directory. I tried setting it to email the error to myself, but it doesn't send it.


Last time it did strange things I uninstalled and reinstalled it. I don't want to do that again, as I have spent hours sorting and rotating image etc., and I don't wnat to do it again. Especially as this problem might then recur.

I'd appreciate some suggestions. I'd appreciate it if any suggestions could be pretty basic so someone who doesn't know anything about the operations behind the interface to understand it.

Thanks in advance,

Dave







Roger Martin
#2 Posted : Friday, 28 October 2011 10:28:57 PM(UTC)
Roger Martin

Rank: Administration

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

Did you follow the advice in the last error message to set debug="true" in web.config? That should trigger a more detailed error message.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Elephantoplasty
#3 Posted : Saturday, 29 October 2011 6:04:25 AM(UTC)
Rank: Member

Joined: 22/09/2011(UTC)
Posts: 4
Location: Melbourne, Australia

UNfortunately, whilst I have found the web.config file, I'm not sure of the correct syntax to set debug="true".

I added the line <debug="true"> under configuration - I'm not sure if that will do it or not.

Thanks,

Dave
Roger Martin
#4 Posted : Saturday, 29 October 2011 9:51:01 AM(UTC)
Roger Martin

Rank: Administration

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

Look for the line that says debug="false". Change false to true.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Elephantoplasty
#5 Posted : Saturday, 29 October 2011 3:25:42 PM(UTC)
Rank: Member

Joined: 22/09/2011(UTC)
Posts: 4
Location: Melbourne, Australia

Thanks Roger.

It was obvious once I looked at the correct web.config file....

The behaviour has changed a bit now (it had changed before the change to the web.config file).

Compacting the database runs without error now.

Sync'ing now runs, but new folders and photos don't come up on the photo server. They are however being indexed, as the compressed images and thumbnails are now present in the database folders if I go and view them in Windows Explorer. But they are not visible in the set of photos in GSP, nor are the folders in the list which comes up when you select 'This role applies to the following albums:' under Add a New Role.

Sorry, but I can't work out how to paste the error as HTML, so I have only posted a limited bit of it. The error which now comes up when I do a sync, or try to look at the list of folders in an album is posted below.

Thanks for your help Roger - appreciate it.

Dave

Error: String was not recognized as a valid DateTime.Couldn't store <30/10/2011 08:05:33> in TimeStamp Column. Expected type is DateTime.

Error Summary

Url http://localhost/Davidsmediagallery/default.aspx?g=admin_errorlog&aid=4

Timestamp 30/10/2011 08:20:26

Exception Type
System.ArgumentException

Message
String was not recognized as a valid DateTime.Couldn't store <30/10/2011 08:05:33> in TimeStamp Column. Expected type is DateTime.

Source
System.Data

Target Site
Void set_Item(Int32, System.Object)

Stack Trace
at System.Data.DataColumn.set_Item(Int32 record, Object value)
at System.Data.DataRow.set_Item(DataColumn column, Object value)
at GalleryServerPro.Web.Controller.AppErrorController.GetAppErrorsDataSet(Int32 galleryId, Boolean includeSystemErrors)
at GalleryServerPro.Web.Pages.Admin.errorlog.BindGrid()
at GalleryServerPro.Web.Pages.Admin.errorlog.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Inner Ex Type
System.FormatException

Inner Ex Message
String was not recognized as a valid DateTime.

Inner Ex Source
mscorlib

Inner Ex Target Site
System.DateTime Parse(System.String, System.IFormatProvider)

Inner Ex Stack Trace
at System.DateTime.Parse(String s, IFormatProvider provider)
at System.Convert.ToDateTime(String value, IFormatProvider provider)
at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
at System.Data.DataColumn.set_Item(Int32 record, Object value)

App Error ID
-2147483648

Gallery ID
1

HTTP User Agent
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2





Roger Martin
#6 Posted : Sunday, 30 October 2011 7:28:27 PM(UTC)
Roger Martin

Rank: Administration

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

That looks like a bug that was present in 2.5.0. Did you apply the patch that was available? At any rate, 2.6 has been released, which also fixes the bug.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Elephantoplasty
#7 Posted : Tuesday, 1 November 2011 2:12:35 AM(UTC)
Rank: Member

Joined: 22/09/2011(UTC)
Posts: 4
Location: Melbourne, Australia

Hi Roger,

Thanks for your reply.

I discovered the patch after I did my last post, and things now seem to be going OK.

Thanks for your help.

I'll download 2.6 at some stage soon.

Cheers,

David
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.