Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johan Plate 3 posts 23 karma points
    Feb 17, 2011 @ 10:27
    Johan Plate
    0

    What is this /ImageViewerUpdater.asmx/UpdateImage

    Hi!

    The following snippet is injected in our template from somewhere:

    <script type="text/javascript">
    //<![CDATA[
    var UC_ITEM_INFO_SERVICE = "/umbraco/uComponents/Items";var UC_IMAGE_SERVICE = "/umbraco/controls/Images/ImageViewerUpdater.asmx/UpdateImage";//]]>
    </script>

     

    Googlebot visit this link: /umbraco/controls/Images/ImageViewerUpdater.asmx/UpdateImage - 80 - 66.249.72.169 Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html) 500 0 0

    The page crashes

     

    Server Error in '/' Application.

     

    The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.

    [NotSupportedException: The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.]
       System.Xml.Serialization.TypeScope.GetDefaultIndexer(Type type, String memberInfo) +924979
       System.Xml.Serialization.TypeScope.ImportTypeDesc(Type type, MemberInfo memberInfo, Boolean directReference) +4044946
       System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo source, Boolean directReference, Boolean throwOnError) +192
       System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlReflectionMember xmlReflectionMember, String ns, XmlReflectionMember[] xmlReflectionMembers, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +58
       System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlReflectionMember[] xmlReflectionMembers, String ns, Boolean hasWrapperElement, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +298

    Umbraco Version 4.6.1
    asp.net 4.0
    iis 6 windows 2003


    My question: what function renders this?


    Kind regards

    / Johan

  • James Drever 118 posts 149 karma points
    Feb 28, 2011 @ 16:01
    James Drever
    0

    Hi Johan, its the uComponents package that is injecting this code into your page.  The uComponents source code says its "used when inserting images in content editors" but not sure of its usage beyond that.  I've also found it in my pages, including pages on reservedpaths which Umbraco shouldn't be touching.  Perhaps raise it with the uComponents guys.  James.

Please Sign in or register to post replies

Write your reply to:

Draft