• Advertisement
Sign in to follow this  

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

This topic is 3945 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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#

Share this post


Link to post
Share on other sites
Advertisement
stupid mistake! i had entered qoutes around string data on SQL server thats why its badly formed i feel pretty stupid

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement