[Solved]Installation error

Apr 29, 2011 at 3:00 PM
Edited Apr 29, 2011 at 3:00 PM

I'm currently trying to use media folder but when i install  it write :

(I'm currently in full trust context.)

The module has been successfully installed.
but after if i try to activate (OR even if i dont activate the module after his installation) my site throw this exception:
>    Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Query() Line 402 + 0x5b bytes    C#
An unhandled exception of type 'System.StackOverflowException' occurred in System.Core.dll
For information, there is just 0 ko  files in my App_Data\Logs folder
Hope you will find the solution.
Coordinator
Apr 29, 2011 at 3:05 PM

If there is no log, can you past more than just the last line of the yellow screen ?
Thanks

Apr 29, 2011 at 3:13 PM

No error is display in my navigator,  just the "The connection was reset ..." message


Their a part of the callstack



Orchard.Framework.dll!Orchard.Caching.DefaultCacheHolder.GetCache(System.Type component) Line 27 + 0x45 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.GetCache() Line 29 + 0x4a bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x2f bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Handlers.get() Line 54 + 0x16 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.New(string contentType) Line 77 + 0x9 bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentManager.Get(int id, Orchard.ContentManagement.VersionOptions options) Line 139 + 0x3e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice.AnonymousMethod__0(Orchard.ContentManagement.Records.ContentItemVersionRecord x) Line 141 + 0x43 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Utility.Extensions.ReadOnlyCollectionExtensions.ToReadOnlyCollection(System.Collections.Generic.IEnumerable enumerable) Line 8 + 0x2e bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.Slice(int skip, int count) Line 139 + 0x5c bytes    C#
     Orchard.Framework.dll!Orchard.ContentManagement.DefaultContentQuery.ContentQuery.Orchard.ContentManagement.IContentQuery.Slice(int skip, int count) Line 188 + 0x1a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings.AnonymousMethod__0(Orchard.Caching.AcquireContext ctx) Line 30 + 0x4d bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.CreateEntry(string k, System.Func,int> acquire) Line 41 + 0x17 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.Cache.Get.AnonymousMethod__0(string k) Line 17 + 0x44 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Caching.Cache.Get(string key, System.Func,int> acquire) Line 15 + 0xa3 bytes    C#
     Orchard.Framework.dll!Orchard.Caching.DefaultCacheManager.Get(string key, System.Func,int> acquire) Line 33 + 0x6a bytes    C#
     Orchard.Core.dll!Orchard.Core.Settings.Services.SiteService.GetSiteSettings() Line 29 + 0x4b bytes    C#
     Orchard.Framework.dll!Orchard.Settings.CurrentSiteWorkContext.Get(string name) Line 13 + 0x12 bytes    C#
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState.AnonymousMethod__0(Orchard.IWorkContextStateProvider wcsp) Line 32 + 0x4b bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.FindResolverForState(string name) Line 32 + 0xe8 bytes    C#
     [External Code]  
     Orchard.Framework.dll!Orchard.Environment.WorkContextImplementation.GetState(string name) Line 27 + 0x56 bytes    C#
     Orchard.Framework.dll!Orchard.WorkContext.CurrentSite.get() Line 25 + 0x22 bytes    C#
     App_Web_2pjam3hi.dll!Contrib.MediaFolder.Services.RemoteStorageProvider.RemoteStorageProvider(Orchard.Environment.Configuration.ShellSettings settings, Orchard.IOrchardServices orchardServices) Line 22 + 0x17 bytes    C#
     [External Code]  



Apr 29, 2011 at 4:16 PM

I described this problem also on Orchard discussions:

http://orchard.codeplex.com/discussions/254904

Coordinator
Apr 29, 2011 at 4:21 PM

Well it's obvious there is a problem ...

Apr 30, 2011 at 9:52 AM

I think it's just in your constructor for RemoteStorageProvider; because you're accessing WorkContext.CurrentSite (can you wrap this in a Work<T> or Lazy<T> or something like that so it doesn't happen actually in the constructor?)

May 2, 2011 at 2:03 PM

Will you update the module to patch this problem ?

When ?

Coordinator
May 2, 2011 at 2:10 PM

Yes, will do it today.

Coordinator
May 2, 2011 at 7:37 PM

Can someone get the latest source code and validates I have fixed the issue ?

Thanks

May 3, 2011 at 7:56 AM
Edited May 3, 2011 at 3:00 PM

Hello  no the last version do not patch the issue.

i have the same exception.

May 4, 2011 at 9:12 AM

Sorry to make this thread up,

but I really need this feature as soon as possible ... :S

when do you think to fix it ?

 

thanks

Coordinator
May 4, 2011 at 2:21 PM

Are you both running in Full Trust when you use this module ?

May 4, 2011 at 2:22 PM

yes I am

Coordinator
May 4, 2011 at 2:26 PM

Do you have any other module enabled which would not be default ones ?

May 4, 2011 at 2:39 PM

Yes i have several modules:

CkEditor

VersionManager

Search with indexing and lucene

AdvancedMenu

CulturePicker

Favicon

May 4, 2011 at 2:40 PM

The problem will be triggered by any Handler that imports IStorageProvider. The reason being that in your IStorageProvider constructor you are loading a Content Item, which results in all handlers getting created again by Autofac.

So the recursion goes like this:

- ContentHandler constructor imports IStorageProvider

- IStorageProvider constructor imports ContentHandlers

- ContentHandler constructor imports IStorageProvider

- etc.

In the latest changes you've wrapped IOrchardServices in Work<T>; but then you're still calling WorkContext.CurrentSite in the constructor so it's still producing the recursion.

Can you wrap configuration in a Lazy, instead of just wrapping IOrchardServices?

The other module I have that's producing this is my Media Garden project. I could work around this one problem using Work<IStorageProvider>; but it won't stop anyone else having the same issue if they try to import IStorageProvider or IMediaService in their content handlers...

Coordinator
May 4, 2011 at 2:42 PM

I am able to reproduce it now with your module, I am on it, wait a few minutes ...

Coordinator
May 4, 2011 at 2:47 PM

DONE

Can you try it again from the source repository ?
You can update only RemoteStorageProvider if you want.


May 4, 2011 at 2:55 PM

Yes it's fine now!

Thanks :)

May 4, 2011 at 2:58 PM

No exception, but i have right problem

my IIS pool identity is TestUser

i've set testUser Writing and reading writes on my folder but i have every time:

Creating Folder failed: Access to the path '\\preprod\Data\temp\test\Default\foldertest' is denied.
an idea ?
Coordinator
May 4, 2011 at 3:03 PM

Does it works locally ? Like using a Orchard.Web\Media, then another folder on the same disk, in a different branch ?

May 4, 2011 at 3:06 PM

yes it work on local folder like

C:\Projects\orchard\test

Coordinator
May 4, 2011 at 3:10 PM

Then it can't be because of Orchard. There must be some other rights to set. Did you set up impersonation in the web.config ?

May 4, 2011 at 3:12 PM

indeed

that's why i've to change my pool identity ^^

Coordinator
May 4, 2011 at 3:13 PM

Sorry then ... :/

Any Windows Event log which could explain why it failed ?

May 4, 2011 at 3:23 PM

not event in local

and on the \\preprod just some audit event : Successful Network Logon ...

May 5, 2011 at 8:35 AM

here message when i try to make a new folder:

Creating Folder failed: Access to the path '\\preprod\Data\temp\test\Default\test' is denied.
Access to the path '\\preprod\Data\temp\test\Default\test' is denied.
when i try to add a  file:
Uploading media file failed:
Access to the path '\\preprod\Data\temp\test\Default\test\legacy asp remove var.txt' is denied.
i'm in fulltrust, web.config impersonate, iis identity changed same account than the impersonate)
and the user has the full rights on the folder...
PS: if a manually create a folder, i see it in media so he could find and read the folder ....
an idea ?
May 5, 2011 at 8:50 AM

when i try to go on media setting page:

Server Error in '/Help' Application.

The model item passed into the dictionary is of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord', but this dictionary requires a model item of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord', but this dictionary requires a model item of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord'.

Source Error:

Line 366:            var adjustedViewContext = new ViewContext(Html.ViewContext, Html.ViewContext.View, adjustedViewData, Html.ViewContext.TempData, Output);
Line 367: var adjustedHtml = new HtmlHelper(adjustedViewContext, new ViewDataContainer(adjustedViewData));
Line 368: adjustedHtml.RenderPartial(TemplateName);
Line 369: }
Line 370:


Source File: C:\Projects\HelpWebSite\src\Orchard.Web\Core\Shapes\CoreShapes.cs    Line: 368

Stack Trace:

[InvalidOperationException: The model item passed into the dictionary is of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord', but this dictionary requires a model item of type 'Contrib.MediaFolder.Models.RemoteStorageSettingsPartRecord'.]
System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) +320987
System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) +377
System.Web.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) +48
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +99
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +279
System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +71
Orchard.Core.Shapes.CoreShapes.RenderInternal(HtmlHelper Html, TextWriter Output, String TemplateName, Object Model, String Prefix) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard.Web\Core\Shapes\CoreShapes.cs:368
Orchard.Core.Shapes.CoreShapes.EditorTemplate(HtmlHelper Html, TextWriter Output, String TemplateName, Object Model, String Prefix) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard.Web\Core\Shapes\CoreShapes.cs:356

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:64
Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:55
Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:173
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:82
Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71
Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:38
Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27
ClaySharp.<>c__DisplayClass10.<InvokeMember>b__d() +29
ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) +25
ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) +92
Orchard.Core.Shapes.CoreShapes.ContentZone(Object Display, Object Shape, TextWriter Output) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard.Web\Core\Shapes\CoreShapes.cs:161

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:64
Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:55
Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:173
Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:82
Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71
Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:38
Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27
ClaySharp.<>c__DisplayClass10.<InvokeMember>b__d() +29
ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) +25
ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) +92
System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +699
ASP._Page_Core_Settings_Views_admin_Index_cshtml.Execute() in c:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard.Web\Core\Settings\Views\Admin\Index.cshtml:8
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
Orchard.Mvc.ViewEngines.ThemeAwareness.<>c__DisplayClass7.<FindView>b__5(ViewContext viewContext, TextWriter writer, IViewDataContainer viewDataContainer) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:53
Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutView.Render(ViewContext viewContext, TextWriter writer) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:83
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
System.Web.Mvc.Controller.ExecuteCore() +116
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\Routes\ShellRoute.cs:148
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841105
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

May 5, 2011 at 9:21 AM

That error can usually be fixed with a complete VS Rebuild. I think it's when two slightly different version of the same class are being held in the GAC or something like that. Maybe it has something to do with caching.

May 5, 2011 at 9:23 AM

I was just doing it :)

 

and it work, i go back on my first error  ^^

May 5, 2011 at 9:35 AM

When i try to delete a folder manually created :

Server Error in '/Help' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 36:                 </tr>
Line 37: </thead>
Line 38: @foreach (var mediaFolder in Model.MediaFolders) {
Line 39: <tr>
Line 40: <td><input type="checkbox" value="true" name="@T("Checkbox.{0}", mediaFolder.Name)"/></td>


Source File: c:\Projects\HelpWebSite\src\Orchard.Web\Modules\Orchard.Media\Views\Admin\Index.cshtml    Line: 38

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
ASP._Page_Modules_Orchard_Media_Views_admin_Index_cshtml.Execute() in c:\Projects\HelpWebSite\src\Orchard.Web\Modules\Orchard.Media\Views\Admin\Index.cshtml:38
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
Orchard.Mvc.ViewEngines.ThemeAwareness.<>c__DisplayClass7.<FindView>b__5(ViewContext viewContext, TextWriter writer, IViewDataContainer viewDataContainer) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:53
Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutView.Render(ViewContext viewContext, TextWriter writer) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:83
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
System.Web.Mvc.Controller.ExecuteCore() +116
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in C:\Projects\Availpro\Siriona.Availpro.HelpWebSite\src\Orchard\Mvc\Routes\ShellRoute.cs:148
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841105
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

May 5, 2011 at 12:35 PM

ok so when i try to create a  folder, i have an :

Creating Folder failed: Access to the path '\\preprod\Data\temp\test\Default\hgd' is denied.
Access to the path '\\preprod\Data\temp\test\Default\hgd' is denied.

 

this exception come from  Directory.CreateDirectory(directoryInfo.FullName); (RemoteStoringProvider.cs)

 

What is weird is that if i get acl of the default folder (where i create the new folder) i got this :

Account: COMM1\UserWeb
Type: Allow
Rights: FullControl
Inherited ACE: True

and there is no acl type deny...

Does the module work between different servers ?

 

PS: one thing : Folder (manually created) are listed with success in Media Page so the folder is accessible (minimum in read mode)

May 5, 2011 at 2:14 PM

Sorry for this BIG SPAM

 

I've found the problem ...

the folder was and administrative shared disk so even if my user had full control rights ... it fail

 

with shared folder as root of my media folder it work fine

 

thanks for the module :p and the help ^^

Coordinator
May 5, 2011 at 3:56 PM

Great !

Can you tell me when your farm is working fine ? I'd like to hear from your experience on web farm deployment.

Thanks