dynamic forms module not working

Topics: Administration, General, Installing Orchard
Jul 7 at 10:00 PM
Edited Jul 7 at 10:01 PM
I have an instance of orchard using sql server. When I run orchard locally and use the sql server the dynamic forms works perfectly. My deployment seems to be missing something that would make it look like dynamic forms is enabled but none of its UI or functionality shows up (like the Form Submissions menu doesn't show). I know it is something dumb I am missing. Here are a couple of questions:
My deployed instance is using precompiled, it will put the needed files in the App_Data\Dependencies correct?

what other folders should I check to ensure that the dynamic forms dll's are in the needed place?

If I wanted to see where the modules are loaded in code, say to break point and check when they are being loaded, where would I do that?

thanks for your help
Developer
Jul 8 at 8:34 AM
Make sure that the Orchard.DynamicForms module folder contains a bin folder that includes the Orchard.DynamicForms.dll file. If it's not there, then it was excluded from the build for some reason. If the DLL is there, then it should be copied to App_Dependencies automatically (using default HostComponents.config values).
Jul 8 at 4:54 PM
So the bin directory is there and it does contain Orchard.DynamicForms.dll. I am using default HostComponents.config values but the file is not copied to the App_Data/Dependencies. I tried copying the files there and that did not fix the issue. I did not restart IIS but I don't think that is needed. Thanks for the help and let me know if you have anymore suggestions. Its a very strange issue.
Jul 8 at 6:03 PM
Check this out from the error logs
2016-07-08 09:54:28,653 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Forms'
2016-07-08 09:54:28,809 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:29,606 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Forms'
2016-07-08 09:54:29,606 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:30,388 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:31,559 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Forms'
2016-07-08 09:54:31,559 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:31,559 [14] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Workflows'
2016-07-08 09:54:32,684 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Forms'
2016-07-08 09:54:33,184 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Forms'
2016-07-08 09:54:33,184 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:33,184 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Workflows'
2016-07-08 09:54:33,669 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Tokens'
2016-07-08 09:54:33,669 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Users'
2016-07-08 09:54:33,669 [4] Orchard.Environment.Extensions.Compilers.DefaultExtensionCompiler - (null) - Loader 'ReferencedExtensionLoader' could not load reference 'Orchard.Workflows'
2016-07-08 09:54:34,309 [14] Orchard.Environment.DefaultBuildManager - (null) - Error when compiling assembly under ~/Modules/Orchard.DynamicForms/Orchard.DynamicForms.csproj.
System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'Orchard.Layouts' or one of its dependencies. The system cannot find the file specified. (D:\inetpub\wwwroot\InsideESD\modules\orchard.dynamicforms\web.config line 44) ---> System.IO.FileNotFoundException: Could not load file or assembly 'Orchard.Layouts' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
--- End of inner exception stack trace ---
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
at System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir)
at System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors)
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetCompiledAssembly(String virtualPath)
at Orchard.Environment.DefaultBuildManager.GetCompiledAssembly(String virtualPath) in c:\agent_work\82\s\InsideESD\src\Orchard\Environment\IBuildManager.cs:line 53
2016-07-08 09:54:34,325 [14] Orchard.Environment.Extensions.ExtensionManager - (null) - No suitable loader found for extension "Orchard.DynamicForms"
Jul 11 at 7:04 PM
This issue seems to be the same thing
https://github.com/OrchardCMS/Orchard/issues/5484

It seems when I remove the reference to <add assembly="Orchard.Layouts"/> in the webconfig it seems to work. I need to research how to turn off precompile during publishing in our team foundation server. Is removing that reference going to cause problems?