Try our conversational search powered by Generative AI!

forceBinFolderScan="false" gives 404 to edit mode


Setting forceBinFolderScan="false" in episerver.framework.config gives 404 to edit and admin mode. use to work fine in EPiServer CMS 6. 

Is this a bug or am I missing something?

I'm Using the mvc version and the url becomes: http://localhost:37003/Home#context=epi.cms.contentdata:///5


<scanAssembly forceBinFolderScan="false">
<add assembly="*" />

Apr 05, 2013 9:45

forceBinFolderScan="true" is required to load and scan assemblies in modulesbin folder, where add-on assemblies are deployed.

Since in EPiServer 7 Shell UI and Edit UI modules are add-ons, it explains why these modules are not initialized when forceBinFolderScan is set to false.

Apr 05, 2013 10:32

Ok, so its a bug then or removed feature?

Apr 05, 2013 11:54

It looks like this feature is partially redundant in EPiServer 7, since all assemblies in bin folder are loaded in any case. You can disable loading add-on assemblies from modulesbin folder by setting forceBinFolderScan="false", but I cannot imagine when you really want it.

So probably this configuration option is going to be obsolete in the next platform version.

Apr 08, 2013 17:32

I have the same problem in my site. 

forceBinFolderScan is set to true, but I want to remove an assembly from the scan. Nothing happens if I add the <remove assembly="gsdll64.dll"/> to <scanAssembly>

The gsdll64 is scanned anyways and the site crashes since gsdll64 isnt a .net assembly, but is needed for ghostscript pdf2png conversion.

If I set the forcebinfolderscan to false and put <remove xxxxxxx> the site works, but the we have no shell/edit ui.

Is there anyway to get this to work?

Aug 27, 2013 11:12

Same thing here.

Have an assembly that is not a .NET assembly which is since EPi7 impossible to have in \bin

Only option seem to be to move it to c:\Windows\System* folder which is not that popular.

Sep 28, 2013 10:14

You could try the following workaround: assembly is deployed in other folder that is listed in probing path, so it is not scanned but can be loaded. Please see details here:

Does it solve the problem?

updated: make sure that existing path "modulesbin" remains in the probing path configuration. You can specify several paths separated by ;

Edited, Oct 14, 2013 11:20

Dmytro, can't find any information this will work for non-managed assemblies with P/Invoke.

At least i'm not able to get it to work.

Oct 18, 2013 14:33

Agree, this probably will not work with unmanaged dlls.

What if you try embedding unmanaged dll in .NET assembly that can load this embedden dll when it's needed? If it works, you can try the workaround above for .NET assembly.

Nov 29, 2013 17:38

Might work , though in this case it's a third party plugin doing the P/Invoke so can't do anything there.

According to EPiServer support there are some bugs related to scanning unmanaged assemblies which will be resolved in v7.5

Dec 01, 2013 12:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.