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

Notification

Icon
Error

Custom Handler error - Server Error in '/' Application. Gallery Server Pro has not been properly initialized
Guest
#1 Posted : Monday, 6 April 2009 5:59:45 AM(UTC)
Rank: Guest

Joined: 2/08/2007(UTC)
Posts: 70

Ahhhh...this is driving me crazy. I spent all this time working through errors THEN realized the handler would have to Initialize the application.

I've looked at the source code in the referenced files and haven't quite figured out how to make it happen. Its just a basic http handler. The only thing that is causing it to have to be initialized is that I'm calling


HttpUtility.UrlDecode(GalleryServerPro.Web.Pages.GalleryPage.GetOptimizedUrl(Factory.LoadMediaObjectInstance(record.MediaObjectId))))

to get the full path of an image.


Anyone that can point me in the right direction???
Roger Martin
#2 Posted : Monday, 6 April 2009 6:12:34 AM(UTC)
Roger Martin

Rank: Administration

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

I am not sure what you are trying to do, so I don't know what advice to give. Why can't you call the initialization routine from whatever code you are writing?

The Initialize() function only has to happen once per application, but in order to be reliable I had to put in every place that might trigger an application start. The vast majority of times the handler is invoked the app will already be initialized and it won't need to run.

It is also possible to place the initialization in the Application_Start event in global.asax. I didn't put it there because I wanted to make it easy for developers to add the gallery to an existing app and I wanted the initialization to be self contained. Depending on your situation, you might find it easier to put it there.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
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.