Problem installing and using Designer Tools Module

Topics: Customizing Orchard, Installing Orchard, Troubleshooting
Jul 10, 2012 at 4:28 PM
Edited Jul 10, 2012 at 4:34 PM
When I installed version 1.4.0, which is the same version as my Orchard version I got the typical .net error page saying:
"Sequence contains more than one matching element"
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: 

[InvalidOperationException: Sequence contains more than one matching element]
   System.Linq.Enumerable.Single(IEnumerable`1 source, Func`2 predicate) +2715658
   Orchard.Environment.DefaultOrchardHost.GetShellContext(ShellSettings shellSettings) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:62
   Orchard.Environment.State.DefaultProcessingEngine.Execute(Entry entry) in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\State\DefaultProcessingEngine.cs:74
   Orchard.Environment.State.DefaultProcessingEngine.ExecuteNextTask() in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\State\DefaultProcessingEngine.cs:67
   Orchard.Environment.DefaultOrchardHost.EndRequest() in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:223
   Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.EndRequest() in c:\Users\sebros\My Projects\Orchard\src\Orchard\Environment\DefaultOrchardHost.cs:83
   Orchard.Web.MvcApplication.HostEndRequest(HttpApplication application, IOrchardHost host) in c:\Users\sebros\My Projects\Orchard\src\Orchard.Web\Global.asax.cs:42
   Orchard.WarmupStarter.Starter`1.OnEndRequest(HttpApplication application) in C:\Users\sebros\My Projects\Orchard\src\Orchard.WarmupStarter\Starter.cs:75
   Orchard.Web.MvcApplication.Application_EndRequest() in c:\Users\sebros\My Projects\Orchard\src\Orchard.Web\Global.asax.cs:33

[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) +335
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
   System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +57
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +7
Regardless, I seem to have been able to been able to activate Shape tracing. 
Instead of the option to open a firebug-like window like in Bertrands video, I see some of the main headings like the below the bottom of the window.
  • Shape
  • Model
  • Placement
  • Template
  • HTML

In my firebug console, I see the following errors:

 

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/Styles/orchard-designertools-shapetracing.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/styles/CodeMirror/codemirror.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/styles/CodeMirror/razor.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/styles/CodeMirror/css.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/styles/CodeMirror/javascript.css
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/orchard-designertools-shapetracing.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/jquery.scrollTo-min.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/CodeMirror/codemirror.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/CodeMirror/razor.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/CodeMirror/javascript.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/CodeMirror/css.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/jquery.tmpl.min.js
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/CodeMirror/htmlmixed.js
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1341
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1403
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1465
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1527
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1588
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1650
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1747
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1820
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1893
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1956
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:1993
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2042
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2091
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2140
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2189
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2238
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2287
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2336
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2385
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2434
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2483
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2532
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2581
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2630
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2679
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2728
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2777
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2826
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2875
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2924
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:2973
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3022
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3071
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3120
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3169
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3218
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3267
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3316
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3365
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3414
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3463
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3512
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3561
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3610
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3659
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3720
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3794
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3867
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3930
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:3979
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4052
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4125
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4188
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4226
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4263
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4300
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4337
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4398
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4495
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4532
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4569
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4606
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4643
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4704
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4801
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4875
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:4948
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5011
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5060
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5133
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5206
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5269
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5318
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5391
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5464
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5527
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5576
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5649
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5722
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5785
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5834
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5907
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:5980
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6043
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6116
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6189
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6252
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6325
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6398
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6461
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6498
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6571
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6644
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6707
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6780
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6853
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6916
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:6953
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7002
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7039
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7076
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7125
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7174
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7223
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7272
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7321
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7370
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7419
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7468
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7517
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7566
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7615
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7664
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7701
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7750
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7799
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7848
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7897
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7946
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:7995
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8044
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8093
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8142
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8191
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8240
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8289
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8338
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8387
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8436
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8485
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8534
Uncaught ReferenceError: shapeTracingMetadataHost is not defined :8080/:8571

 

When I try to access a URL in the console error like this:

http://175.107.134.113:8080/Modules/Orchard.DesignerTools/scripts/jquery.scrollTo-min.js

I see an error saying:

"Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'StaticFile'"

Perhaps this is the cause of the problem?

Some Searching tells me the cause is:

"This problem occurs because the ApplicationHost.config file has a duplicate entry for the following code.

<add accessType="Allow" users="*" />

and that the solution is to:

On the File menu, click Open, type %windir%\System32\inetsrv\config\applicationHost.config in the File namebox, and then click Open.

...but I don't see any duplicate entries in there...

Is this some sort of configuration problem. I see a few other people have had this issue, what are the recommended fixes / work arounds?

Coordinator
Jul 11, 2012 at 3:13 PM

The error is in config only. It's not necessarily a locally-duplicated value in config but more likely across several config files in different directories. My first guess would be that you placed Orchard in a directory that is not configured in IIS to be an application.

This being said, why did you install 1.4.0? Current is 1.4.2.

Jul 12, 2012 at 6:41 PM

Thanks for your response Bertrand, I didn't do the install, and I am in the middle of development and don't have time to research how to do an upgrade right now.

I managed to get this working locally and therefore bypassed this issue, thankfully and the config files are always a pain for me.