Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

JavaScriptSerializer Error when i am using it in Sharepoint Project

$
0
0

hi,

I am getting an error when i am using the JavascriptSerializer method in sharepoint  project.

below is the code and error 


// get the web response
        string result = RequestHandler.Process(apiURL);

        // serialize the json output and parse in the helper class
        LocalWeather Weather = (LocalWeather)new JavaScriptSerializer().Deserialize(result, typeof(LocalWeather));

        return Weather;

Error:  No overload for method 'Deserialize' takes 2 arguments

but it is working in Website project , i am getting no error.

Thanks



sal



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>