[web] Uri help Urgent!!!! student on a deadline
Im storing client URI's in sql server 2005 as varChar's when i retrieve them and create a Uri object with the string i get the following runtime error:
System.UriFormatException: Invalid URI: The URI scheme is not valid.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri..ctor(String uriString)
// not complete code
Im retrieving them through a method i.e string toAddress = getClientAddress();
Uri toUri = new Uri(toAddress);
SoapSender soap = new SoapSender(toUri);
soap.Send(message);
i have tested all parts of the code and everything is fine
does sql server 2005 do something to string when it stores them and makes them incompatible with a Uri string?
im using C#
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement