Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Reference for System.Uri?


  • Please log in to reply
3 replies to this topic

#1 CarTech

CarTech

    New Member

  • Members
  • Pip
  • 9 posts

Posted 29 November 2011 - 04:40 PM

I can't figure out which reference I need to use the System.Uri class. Opening a fresh project, I get this error message: type or namespace name "Uri" could not be found (are you missing an assembly reference?) error when I try something like the following.

using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace TestingUri
{
    public class Program
    {
        public static void Main()
        {
            // write your code here
            Uri myUri = new Uri("http:\\www.google.com");
            
        }

    }
}



#2 Marcus Jeliberg

Marcus Jeliberg

    New Member

  • Members
  • Pip
  • 3 posts

Posted 29 November 2011 - 04:55 PM

Hello. Don’t think that system.Uri exist in Micro .net framework. http://msdn.microsof...y/cc533014.aspx

#3 CarTech

CarTech

    New Member

  • Members
  • Pip
  • 9 posts

Posted 29 November 2011 - 05:00 PM

Hello.

Don’t think that system.Uri exist in Micro .net framework.

http://msdn.microsof...y/cc533014.aspx


I have 4.1, which shows it in the API reference:
http://msdn.microsof...y/ee436970.aspx

Any other ideas?

#4 CarTech

CarTech

    New Member

  • Members
  • Pip
  • 9 posts

Posted 29 November 2011 - 05:19 PM

I figured out the missing reference was System.HTTP




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.