Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Handler Error #61

Closed
kennyburns1967 opened this issue Nov 11, 2014 · 8 comments
Closed

Dependency Handler Error #61

kennyburns1967 opened this issue Nov 11, 2014 · 8 comments

Comments

@kennyburns1967
Copy link

Hello,

I have an issue where nuPickers is working locally, but on the production environment, all of a sudden I am experiencing an error similar to this:

nuPickers.Shared.CheckBoxPicker.CheckBoxPickerEditorController' is not a function, got undefined at Error (native)
DependencyHandler.axd?s=L3VtYnJhY…MuYmxvY2t0eXBlcy5jb250cm9sbGVyLm1pbi5qczs&t=Javascript&cdv=545262247:7:622
Any ideas what this might be? I tried deleting the client dependency folder but no joy.

Edit: when trying to set up a data type using the nupickers, I am getting an error whereby I cannot select the assembly. The error reads:

"An error has occurred.","ExceptionMessage":"The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'.","ExceptionType":"System.InvalidOperationException","StackTrace":null,"InnerException":{"Message":"An error has occurred.","ExceptionMessage":"Could not load file or assembly '311296 bytes loaded from uComponents.nuPickers, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."

Thanks in advance,

Kenny

@kennyburns1967
Copy link
Author

Hello,

I read back a few posts and it was in fact the debug being set to "false" that is causing the issue. I did try adding the location tag fix in this post: https://gist.github.com/Jeavon/78d97083bacb75fd4064 but no joy.

I have left the debug as true for now but wondered if you might know why this would cause the issue as not ideal.

Thanks,

Kenny

@pc-pdx
Copy link

pc-pdx commented Nov 30, 2014

The root cause is likely due to System.Web.Mvc
I ran into the issue when i updated my in-progress dev site from (umbraco7.2.0-Beta2) to (umbraco7.2.0-RC). This umbraco version update actually regresses the System.Web.Mvc version referenced.
My dependentAssembly redirect was misconfigured and while everything compiled and everything else (that i'm aware of?) 'worked' - nuPickers didn't, the end result being the error that you noted:
"The 'ObjectContent`1' type failed to serialize the response body for content type"

Correct dependentAssembly config for these specific versions

System.Web.Mvc 4.0.20710.0
     <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
System.Web.Mvc 4.0.40804.0
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
      </dependentAssembly>

I can confirm this works regardless of the debug value.
Hope this helps

@dawoe
Copy link

dawoe commented Feb 9, 2015

I'm having the same issue after upgrading the client dependency framework as advised in this post : http://umbraco.com/follow-us/blog-archive/2015/2/5/security-alert-update-clientdependency-immediately

Solutions for other comments don't work for me.

@dawoe
Copy link

dawoe commented Feb 9, 2015

I found a work around for this one. You need to set the domain of your website in the clientdependency framework config. Remove your clientdependency files in you app_data folder and restart your website.

<compositeFiles defaultProvider="defaultFileProcessingProvider" compositeFileHandlerPath="/DependencyHandler.axd">
<fileProcessingProviders>
<add name="CompositeFileProcessor"
type="ClientDependency.Core.CompositeFiles.Providers.CompositeFileProcessingProvider, ClientDependency.Core"
enableCssMinify="true"
enableJsMinify="true"
persistFiles="true"
compositeFilePath="
/App_Data/TEMP/ClientDependency"
bundleDomains="YOURDOMAINHERE" urlType="Base64QueryStrings" pathUrlFormat="{dependencyId}/{version}/{type}" />
</fileProcessingProviders>

&lt;fileMapProviders&gt;
  &lt;add name=&quot;XmlFileMap&quot; type=&quot;ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper, ClientDependency.Core&quot; mapPath=&quot;~/App_Data/TEMP/ClientDependency&quot; /&gt;
&lt;/fileMapProviders&gt;

</compositeFiles>

@nevenanikolic
Copy link

Hi everyone,

I'm having same issue with the Umbraco 7.1.8 and I just cannot get it to work.

I have tried everything, and by that I mean literary everything :)

Please, please - any ideas? :)

P.S. I just need to mention that I have worked on numerous Umbraco 7.1.8 projects and same issue appears on every single project.

Thanks, Nevena

@Jeavon
Copy link
Contributor

Jeavon commented Jun 19, 2015

@nevenanikolic are you using the latest release of nuPickers?

@nevenanikolic
Copy link

Hi @Jeavon,

Thanks for replying. Apologise, but I have actually realised that I have commented on the wrong issue.
http://issues.umbraco.org/issue/U4-6380 - is the why I'm desperate this Friday evening.

I won't be replying on this issue anymore as whatever I have to say is not related to this one.
However, do you have any possible ideas of what might be causing it and how to fix it?

If you do, plese contact me (nevena.nikolic.ns@gmail.com) and if not - I wish you wonderful evening :)

Thanks and once again - apologise.

Nevena

@Jeavon
Copy link
Contributor

Jeavon commented Jun 19, 2015

Seems you need to upgrade to v7.2.6 to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants