Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 17, 2011 @ 14:59
    Ove Andersen
    0

    Access to the path 'FlickrNet' is denied

    I'm getting the following message when I try to open the Flickr media picker in the content section.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [UnauthorizedAccessException: Access to the path 'FlickrNet' is denied.]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12892919
       System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) +1594
       System.IO.Directory.CreateDirectory(String path) +311
       FlickrNet.LockFile.Acquire() +127
       FlickrNet.PersistentCache.Get(String key, TimeSpan maxAge, Boolean removeIfExpired) +58
       FlickrNet.Flickr.GetResponse(Dictionary`2 parameters, TimeSpan cacheTimeout) +328
       FlickrNet.Flickr.PhotosetsGetList(String userId) +163
       Sitereactor.FlickrProvider.FMP_Provider.GetPhotosets() +31
       Sitereactor.FlickrProvider.FMP_CreateControl.BindCollections() +233
       Sitereactor.FlickrProvider.FMP_CreateControl.OnLoad(EventArgs e) +51
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
    

    I checked the file permissions for FlickrNet.dll, and the website user has full control rights on the assembly.

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Apr 17, 2011 @ 15:10
    Morten Christensen
    1

    Hi Ove,

    Can you please check that you have this configSection in Web.config:

    <section name="flickrNet" type="FlickrNet.FlickrConfigurationManager,FlickrNet" />

    and this <flickrNet cacheDisabled="true" /> after </configSections> ? (it sounds like the cacheDisabled is not set to true - the flickrnet assembly will cache to a local folder called "FlickrNet" if caching is enabled).

    Which version of Umbraco and UMP are you using?

    - Morten

  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 17, 2011 @ 20:26
    Ove Andersen
    0

    That fixed the YSOD issue.

    Apparently, those sections weren't added to the web.config when I installed the provider...

    (I am using Umbraco 4.7 and UMP 1.4).

    But there is also another issue - No photos are shown in the media picker dialog (it's empty).

    I currently have 4 photos in my Photostream. Shouldn't they be visible in the tree?

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Apr 17, 2011 @ 22:30
    Morten Christensen
    1

    Okay ... Im a bit surprised that the two entries were not added to the web.config as there is an install script for it.
    Does the application pool identity have modify access to web.config?

    With regards to the images not showing up - did you authenticate the package with Flickr to get an access token? By default it should list the 10 latest photosets and 10 latest photos, but if you have entered the wrong userid in the configuration of the provider it won't show anything ;) (tip: if you leave the userid empty it gets photos from the account you have authenticated).

    - Morten

  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 18, 2011 @ 13:30
    Ove Andersen
    0

    The apppool user has write access to web.config, yes.

    But removing the user id seemed to do the trick.

  • Morten Christensen 596 posts 2773 karma points admin hq c-trib
    Apr 18, 2011 @ 14:30
    Morten Christensen
    0

    Okay, well at least you got it working ;)

    I'll do some more testing with regards to the install script not firing.

    Thanks for reporting.

    - Morten

  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 19, 2011 @ 09:29
    Ove Andersen
    0

    Turns out I did put the wrong userid after all. Userid != username it seems.

Please Sign in or register to post replies

Write your reply to:

Draft