[web] Uri help Urgent!!!! student on a deadline

Started by
0 comments, last by jnrprogrammer 16 years, 11 months ago
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#
Advertisement
stupid mistake! i had entered qoutes around string data on SQL server thats why its badly formed i feel pretty stupid

This topic is closed to new replies.

Advertisement