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

Notification

Icon
Error

Bypassing custom resources provider
Luuuukke
#1 Posted : Thursday, 5 August 2010 3:49:26 AM(UTC)
Rank: Member

Joined: 5/08/2010(UTC)
Posts: 20
Location: Belgium

Hello,

not specifically a gsp problem, but may be someone already faced it...

I use a custom resources provider (sql db) for the website to which i plugged gallery server.

I can't find a way to set gs pages to look into App_GlobalResources .resx files instead of my provider..

The ResourceProviderFactory base class can not be instantiated..
I tried to put a web.config in the gs folder with < globalization resourceProviderFactoryType="">,
I also made my customprovider return null / nothing depending on the path / request.url for gs requests,
(as explained here http://stackoverflow.com...n-the-same-asp-net-appl)

no succes....

i guess that i'll have to import the resources from GalleryServerPro.resx in my db... ?

Any idea ?

thanks,

Luc
Roger Martin
#2 Posted : Friday, 6 August 2010 12:30:02 AM(UTC)
Roger Martin

Rank: Administration

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

Yeah, I don't have experience with your situation. But it should only take a dozen lines of code or so to loop through the .resx file (which is XML) and import it into a SQL table.
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.