MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 42954 time(s), 6 post(s) 22.09.2011 21:08:28by grant.stone007

Related topics

grant-stone007

grant.stone007

22.09.2011 21:08:28
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
Dieser Inhalt wurde noch nicht bewertet. 
647 Reputation 69 Total posts
khorvat

khorvat

23.09.2011 08:08:19
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
Bewertet mit 4,00, 1 Besucher. 
15993 Reputation 2214 Total posts
grant-stone007

grant.stone007

23.09.2011 13:43:25
My version is 4.1.2741 4.0.

Thank you.
Dieser Inhalt wurde noch nicht bewertet. 
647 Reputation 69 Total posts
khorvat

khorvat

23.09.2011 23:24:04
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 
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

26.09.2011 07:49:05
Hi,

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

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
grant-stone007

grant.stone007

28.09.2011 17:41:47
I have downloaded the patch, applied it, and tested it. It works. Thank you.
Dieser Inhalt wurde noch nicht bewertet. 
647 Reputation 69 Total posts