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 (Zatvorena) (Mono Support )

37813 put(a) pogledan, 6 odgovor(a) 22.9.2011. 21:08:28Kreirao(la) grant.stone007

Povezane teme

grant-stone007

grant.stone007

22.9.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
Ovaj sadržaj još nije ocijenjen. 
647 Reputacija 69 Ukupno objava
khorvat

khorvat

23.9.2011. 8: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
Ocjena 4,00, 1 glas(ova). 
15993 Reputacija 2214 Ukupno objava
grant-stone007

grant.stone007

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

Thank you.
Ovaj sadržaj još nije ocijenjen. 
647 Reputacija 69 Ukupno objava
khorvat

khorvat

23.9.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 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
khorvat

khorvat

26.9.2011. 7:49:05
Hi,

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

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
grant-stone007

grant.stone007

28.9.2011. 17:41:47
I have downloaded the patch, applied it, and tested it. It works. Thank you.
Ovaj sadržaj još nije ocijenjen. 
647 Reputacija 69 Ukupno objava