I get an exception (see bleow) when I make call to MonoSoftware.MonoX.API.UserAdapter.GetInstance().GetUser(UserId) and the user profile has a malformed URI in the dbo.UserProfile.Websites field. For example if value is something like "domain.com" and exception is thrown whereas if value is "http://www.domain.com" there is no exception.
Is there a way to remedy this or guard against this?
[UriFormatException: Invalid URI: The format of the URI could not be determined.]
System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +6235084
System.Uri..ctor(String uriString) +20
#E.#K.#Xe(AspnetUsersEntity userEntity) +1567
MonoSoftware.MonoX.API.UserAdapter.GetUser(Guid id) +61
a_myPage.Page_PreInit(Object sender, EventArgs e) in C:\FOCZY\a\myPage.aspx.vb:82
System.Web.UI.Page.OnPreInit(EventArgs e) +96
System.Web.UI.Page.PerformPreInit() +21
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +992
This content has not been rated yet.
647
Reputation
69
Total posts