Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7445049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:43:34+00:00 2026-05-29T11:43:34+00:00

I am trying to follow the example here …but get the exception: ‘System.Uri’ does

  • 0

I am trying to follow the example here …but get the exception:

‘System.Uri’ does not contain a definition for ‘GetDynamicJsonObject’ and no extension method ‘GetDynamicJsonObject’ accepting a first argument of type ‘System.Uri’ could be found (are you missing a using directive or an assembly reference?)

I have looked at every online example I can find but cannot figure out what am I missing here.

private void setTimeEstimates(ref List<Object> rides, string orig)
        {
            string dest, googleURL;
            dynamic googleResults;
            int driveTime; //in seconds

            using (myEntities = new RamRideOpsEntities())
            {
                foreach (Ride ride in rides)
                {
                    dest = interpretAddress(ride.PickupAddress);
                    googleURL = "http://maps.googleapis.com/maps/api/distancematrix/json" +
                        "?origins=" + orig +
                        "&destinations=" + dest +
                        "&mode=driving&sensor=false";

                    googleResults = new Uri(googleURL).GetDynamicJsonObject(); //EXCEPTION HERE!

                    driveTime = googleResults.result.duration;

                    ride.EstTime = driveTime + BASE_WAIT_TIME;
                }
                myEntities.SaveChanges();
            }
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:43:35+00:00Added an answer on May 29, 2026 at 11:43 am

    Easy fix: forgot to add JsonUtils extension methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to follow the Features Example for the Inferis/ViewDeck library here . However
i am trying to follow this example here : http://www.sencha.com/forum/showthread.php?11735-How-can-I-ADD-to-baseParams-rather-than-overwrite-one-set-of-baseParams-with-another The objective is to
I'm trying to follow the example at Logarithmic slider . Here's the code I'm
I'm trying to follow the SWIG Java example located here . This example uses
I am trying to follow what is being explained here: http://www.djangobook.com/en/2.0/chapter03/ (the confusing example
Trying to follow this example. (Section String sorting...) Is there anything obvious that would
I am trying to follow this example (from p137 of Rob Pickering's Foundations of
I'm trying to follow a simple example of AJAX-enabled WCF Service like: http://www.pluralsight.com/community/blogs/fritz/archive/2008/01/31/50121.aspx I'm
I am trying to follow the steps on the following site http://msdn.microsoft.com/en-us/library/ms181089(VS.80).aspx But I
I am trying to follow this example from MSDN: http://msdn.microsoft.com/en-us/library/a1hetckb.aspx I think i'm doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.