image gallery (simple folder version) -> error

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/17/2008 1:29:03 PM
Gravatar
Total Posts 7

image gallery (simple folder version) -> error

 

I get this exception when I create image gallery (simple folder version)

Running 2.2.5.4 on MSSQL

[snip]

....

System.Reflection.TargetInvocationException: Property accessor 'Link' on object 'mojoPortal.Web.Controls.FolderGallery.AlbumFolderInfo' threw the following exception:'The type initializer for 'mojoPortal.Web.Controls.FolderGallery.ImageHelper' threw an exception.' ---> System.TypeInitializationException: The type initializer for 'mojoPortal.Web.Controls.FolderGallery.ImageHelper' threw an exception. ---> System.UnauthorizedAccessException: Access to the path 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\efa85681\8ef222ef\Album' is denied.

...

The very First creation of image gallery(sfv) was succesfull I couldt see the page with contents but since I dident have any pictures uploaded I decided to delete image gallery(svf) and upload a bunch of pictures to ~Data\Sites\1\FolderGalleries\2008.

I againg created the image gallery (sfv) but from that point I havent got see any contents - just the usual error page

I can't understand why I dont have access rights to ~\FolderGalleries\* via the image gallery (sfv) I have with the File manager

 

 

 

 

 

 

 

5/17/2008 1:52:00 PM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

Hi,

The access denied error isn't happening in the folders beneath the site, its happening in the Windows\Microsoft.NET...temp file folder. I'm pretty sure thats where it caches the generated thumbnails, similar to the way it caches the JIT compiled code for ASP.NET in general.

I would try recycle the app pool and see if that corrects it. Touching the Web.config file should recycle the app.

Hope it helps,

Joe

5/17/2008 3:44:35 PM
Gravatar
Total Posts 7

Re: image gallery (simple folder version) -> error

 

Hi

I've have addded a character to web.config file deleted the character again and saved again. I then uploaded to the site and recieved the same exception.

Is that enough touching?

Do you have any other suggestions?

thanks in advance

5/18/2008 7:48:25 AM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

Hi,

I would try click the edit button then click the Save button to make sure it saved the path to the gallery. You might try setting the 2008 folder you uploaded as the root of the gallery. Then I would try recycle the app again. Download and upload of Web.config should do it, but if you have a tool in your hosting control panel to recycle the app that is even better.

Hope it helps,

Joe

5/18/2008 12:10:21 PM
Gravatar
Total Posts 7

Re: image gallery (simple folder version) -> error

 

The site does not have a function to recycle the app so this is what I’ve done
I have added a folder "Pictures" in the FolderGalleries folder and changed the following key to
<add key="FolderGalleryRequiredPath" value="FolderGalleries/pictures" />
Uploaded web.config and run /setup


I received the same exception!

Am I really the first person who has had this issue?
 

 

5/18/2008 12:14:06 PM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

Undo your change in Web.config.

Click the edit link on the page next to the title of the gallery instance. enter "pictures" (or Pictures, make sure its cased correctly to match the folder) there for the path and click the save button.

Joe

5/18/2008 1:13:40 PM
Gravatar
Total Posts 7

Re: image gallery (simple folder version) -> error

 

Too deep you lost me "Click the edit link on the page next to the title of the gallery instance" ? hmmmm

Is it the setting like: FolderGalleryRootFolder [textbox] for the gallery contents? If so I have entered "Pictures" I verified the case setting in the file manager. Web.config is fixed

/Ricky

 

 

 

5/18/2008 1:17:36 PM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

When you put the Folder Gallery on a page, that is an instance of the gallery, there can be many instances on different pages. When you added it to a page you gave it a title right? You should see a link next to the title that says "Edit". Click this link and you will see the place where you should put the name of the folder "Pictures", then click the save button.

Hope it helps,

Joe

5/18/2008 1:19:26 PM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

I'm also wondering are you hosted in Medium Trust? I'm not entirely sure the Folder Gallery works in medium trust.

Joe

5/18/2008 1:22:52 PM
Gravatar
Total Posts 18439

Re: image gallery (simple folder version) -> error

Is it the setting like: FolderGalleryRootFolder [textbox] for the gallery contents?

Yes, that sounds like you found the setting. Are you still gettng the same error?

5/18/2008 2:33:16 PM
Gravatar
Total Posts 7

Re: image gallery (simple folder version) -> error

 

Same error!

My webhost only supports medium trust!

Not that i've looked but is there a list on your site where users can read what features might not work due to medium trust issues?

/Ricky

You must sign in to post in the forums. This thread is closed to new posts.