Mono Support Exception in Simple API UserAdapter.GetInstance().GetUser(UserId) when malformed URI (Closed)

Viewed 41270 time(s), 6 post(s), 9/22/2011 9:08:28 PM - by grant.stone007
9/22/2011 9:08:28 PM
647 Reputation 69 Total posts

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

1
9/23/2011 8:08:19 AM
15993 Reputation 2214 Total posts

Hi,

we have found a small bug in the Simple API GetUser method, so we will provide you with a patch but before we do so you need to tell us what is your version of the MonoX ?

We will provide a you with a 4.1.2741 patch for .NET 3.5 and 4.0 here.

Regards

2
9/23/2011 1:43:25 PM
647 Reputation 69 Total posts

My version is 4.1.2741 4.0.

Thank you.

3
9/23/2011 11:24:04 PM
15993 Reputation 2214 Total posts

Hi,

here is the patch for .NET 3.5 that has this bug fixed. We will try to provide you with a .NET 4.0 patch in Monday.  

Let us know if applied patch is working as expected.

Regards 

4
9/26/2011 7:49:05 AM
15993 Reputation 2214 Total posts

Hi,

sorry for the delay here is the patch for the .NET 4.0

Regards

5
9/28/2011 5:41:47 PM
647 Reputation 69 Total posts

I have downloaded the patch, applied it, and tested it. It works. Thank you.

6
This is a demo site for MonoX. Please visit Mono Software for more info.