Mono 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.

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

Viewed 7153 time(s), 6 post(s). 9/22/2011 9:08:28 PMby grant.stone007
grant-stone007
1

grant.stone007 9/22/2011 9:08:28 PM

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
khorvat
2

khorvat 9/23/2011 8:08:19 AM

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
Rated 4.00, 1 vote(s). 
11551 Reputation 1644 Total posts
grant-stone007
3

grant.stone007 9/23/2011 1:43:25 PM

My version is 4.1.2741 4.0.

Thank you.
This content has not been rated yet. 
647 Reputation 69 Total posts
khorvat
4

khorvat 9/23/2011 11:24:04 PM

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 
This content has not been rated yet. 
11551 Reputation 1644 Total posts
khorvat
5

khorvat 9/26/2011 7:49:05 AM

Hi,

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

Regards
This content has not been rated yet. 
11551 Reputation 1644 Total posts
grant-stone007
6

grant.stone007 9/28/2011 5:41:47 PM

I have downloaded the patch, applied it, and tested it. It works. Thank you.
This content has not been rated yet. 
647 Reputation 69 Total posts