title: Invalid object passed in, member name expected
body: <p>I am trying to convert json string to Dictionary using JavaScriptSerializer.DeserializeObject(line) object.</p>
  
  <p>Now this code work perfectly on my Windows 8 Machine, On my Testing Server Windows 2008 Enterprise R2 Service Pack 2 but its not working on Windows 2008 Standard R2 Service Pack 1.</p>
  
  <p>Here is the snapshot of my code:</p>
  
  <pre><code>JavaScriptSerializer objScriptSerializer = new JavaScriptSerializer();
  Dictionary&lt;string, object&gt; dictJson = null; 
  dictJson = (Dictionary&lt;string, object&gt;)objScriptSerializer.DeserializeObject(line);
  </code></pre>
  
  <p>Invalid object passed in, member name expected. (729): Below is the json string which is valid when i validated the json string.</p>
  
  <pre><code>{ "Action" : "ValidateDistributionGrid",
    "Data" : { "CompanyId" : "iqi",
        "CurrencySignatureOfInvoice" : "",
        "CurrentInvoiceDocType" : "Journal Entry",
        "GenericGridCollection" : [ { "ControlName" : "Distribution",
              "ValueCollection" : [ { "" : "",
                    "acccode" : "199871",
                    "acccodedescr" : "Account Not in Archimedes",
                    "amount" : "123.00",
                    "assetno" : "Affinity Express Philippines Inc.",
                    "branchno" : "Yes",
                    "category" : "Cost Center not in  Archimedes.",
                    "comments" : "ffd",
                    "companyid" : "",
                    "costcenter" : "1090",
                    "incident" : "",
                    "itemdesc" : "ZTest",
                    "lno" : ""
                  },
                  { "" : "",
                    "acccode" : "",
                    "acccodedescr" : "",
                    "amount" : "123.00",
                    "assetno" : "",
                    "branchno" : "",
                    "category" : "",
                    "comments" : "",
                    "companyid" : "",
                    "costcenter" : "",
                    "incident" : "",
                    "itemdesc" : "Distribution Total",
                    "lno" : ""
                  },
                  { "" : "",
                    "acccode" : "",
                    "acccodedescr" : "",
                    "amount" : "",
                    "assetno" : "Acclaim (Legacy) Energy SolutionsAffinity Express Philippines Inc.AG Counselors CorporationAlveo Land CorpAmicassa Process Solutions, Inc.ASG Group LimitedAvida Land, CorporationAyala Automotive Holdings CorpAyala CorporationAyala Land, Inc.Ayala Multi-Purpose CooperativeAyala Property Management CorpAyala System Technology, Inc.Bank of Philippine IslandsBillabongBloom EnergyCalgon CarbonCalifornia Pizza KitchenCalifornia United BankCambridge Major Laboratories, Inc.CapitaMallsCebu Holdings, Inc.ConergyCorel CorporationCrohn's &amp; Colitis Foundation of AmericaDream CatchDVS Intele StreamEvolution Hospitality, LLCExtreme NetworksF. MclintocksGlobe Telecom, Inc.GoodwineGrill ConceptsHaas TCM, Inc.Haven Realty CapitalHealth Trust of AmericaInnovative Dining GroupIntegra Business Processing SolutionsIntegrated Microelectronics, Inc.Integrated Microelectronics, Inc.InterDent Service CorporationJamba Juice (Whirl Colorado)JM Smucker Co.Khronos, LLCLiveit Investment Ltd.Makati Development CorporationManila Water CorporationName Not Found1New Horizon Learning CenterOracle (Philippines) CorporationPSi Technologies, Inc.QuiznosRaben MediaRopes &amp; GrayRosa MexicanoRustan Coffee, Inc.Sage Parts Plus, Inc.SBESILKROADSizzler USA Restaurant, IncSpectrum Pharmaceuticals, Inc.Stone &amp; Pewter AccentsSunburst FarmsSupply Chain Consulting Inc.Sweetener ProductsSymetraTelus International Philippines, Inc.The Bank of Tokyo-Mitsubishi UFJ, Ltd.The Four Seasons Hotel ChicagoThe Four Seasons Hotel HoustonThe OrchardThe Philippine American Life and GeneralThe Ritz Carlton Hotel ChicagoTime OutTWB Company, LLCUnited Capital Financials PartnersVeecoVeggie Grill",
                    "branchno" : "YesNo",
                    "category" : "",
                    "comments" : "",
                    "companyid" : "",
                    "costcenter" : "",
                    "incident" : "",
                    "itemdesc" : "",
                    "lno" : ""
                  }
                ]
            },
            { "ControlName" : "SpecialInstructions",
              "ValueCollection" : [ { "comment" : "Please scan invoice to client Archimedes instance then return item to IQB Finance.",
                    "companyid" : "iqi",
                    "resolutiondate" : "2/10/2014 4:37:35 PM",
                    "rno" : "1",
                    "si_code" : "10",
                    "userid" : "ajay vishwakarma",
                    "username" : "ajay"
                  },
                  { "comment" : "",
                    "companyid" : "",
                    "resolutiondate" : "",
                    "rno" : "",
                    "si_code" : "",
                    "userid" : "",
                    "username" : ""
                  }
                ]
            }
          ],
        "ImageId" : "11240088",
        "IncidentNumber" : "10357",
        "InvoiceActualAmount" : "343.0000",
        "NextApproverID" : "cden.iqi",
        "OriginalApprovalEmail" : "",
        "PONumber" : "344334",
        "PathName" : "",
        "RowNo" : "2",
        "SortString" : "",
        "Status" : "E",
        "UserApprovalLimit" : "1000"
      }
  }
  </code></pre>
  
  <p>Will anyone please tell me where I am going wrong.</p>