Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

IIS iusr account & app_data folder

Agilex's Avatar

Agilex

07 Mar, 2011 11:51 AM

Hi,

I'm trying to deploy an Orchard CMS app to appharbor, but it looks as if the IIS user account cannot access my app's App_Data folder.
I'm not sure why Orchard needs write access to the App_Data folder from IIS , but it seems as if it does.

See a similar discussion on the problem here : http://orchard.codeplex.com/discussions/245882/

Is this done by design (i.e. you are purposefully locking down access to the app folder from IIS) ?

The specific file is : System.UnauthorizedAccessException: Access to the path 'D:\websites\96\2696\b8ea332bff761467eb0d8da9dd35aaa59f1fa6c6_PublishedWebsites\WebMatrixWebsite\App_Data\Dependencies\Joel.Net.Akismet.dll' is denied.

Cheers,
Ben

  1. Support Staff 1 Posted by friism on 07 Mar, 2011 06:23 PM

    friism's Avatar

    That's strange. I've just confirmed that your IIS app-pool identity has write-access to App_Data (as designed) and to the file in question. We'll investigate further.

  2. 2 Posted by Agilex on 07 Mar, 2011 07:41 PM

    Agilex's Avatar

    Thanks Michael,
    If it helps, the source code for the orchard class thats blowing up is : http://orchard.codeplex.com/SourceControl/changeset/view/fe55d6737a...

    (method MakeDestinationFileNameAvailable(string))

  3. Support Staff 3 Posted by friism on 07 Mar, 2011 07:55 PM

    friism's Avatar

    Oho, looks like Orchard needs to delete files too. I'll look at adding that file system right.

    Could I get you to invite support(a)appharbor.com as a collaborator on your project so that I can test with your exact code?

  4. 4 Posted by Agilex on 07 Mar, 2011 08:07 PM

    Agilex's Avatar

    Done !

  5. Support Staff 5 Posted by friism on 08 Mar, 2011 01:11 AM

    friism's Avatar

    One workaround you can use right now, is to delete dll's from the App_Data\Dependencies folder so that they won't be pushed with the code. That means Orchard won't fail when trying to delete the dll's (to make room for them again).

    We'll also look at adding delete rights to the App_Data folder.

  6. friism closed this discussion on 08 Mar, 2011 01:11 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac