Sign in to follow this  

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this