Hi Every one,
I have one situation that, we have create one project with the System.web.profile in vb.net visual studio 2008, when we try to migrate to same to vb.net visual studio 2013, i am getting the Type cast error. "Unable to cast object of type 'ProfileCommon' to type 'preferences.UserProfile" . I am really don't have any idea, because i m new to this project and i have no idea about this profile and all, So could you guys hep to get the answer
Code :
Public Shared Function GetUserProfile(ByVal username As String) As UserProfile
'Return TryCast(Create(username), UserProfile) - here i am getting the Error or Nothing as a result
End Function
Note : if i use direct cast or Type Cast it throws that error.
How to fix this issue and how to type cast to custom profile??
Thanks & Regards
M.Asiq Raja
I have one situation that, we have create one project with the System.web.profile in vb.net visual studio 2008, when we try to migrate to same to vb.net visual studio 2013, i am getting the Type cast error. "Unable to cast object of type 'ProfileCommon' to type 'preferences.UserProfile" . I am really don't have any idea, because i m new to this project and i have no idea about this profile and all, So could you guys hep to get the answer
Code :
Public Shared Function GetUserProfile(ByVal username As String) As UserProfile
'Return TryCast(Create(username), UserProfile) - here i am getting the Error or Nothing as a result
End Function
Note : if i use direct cast or Type Cast it throws that error.
How to fix this issue and how to type cast to custom profile??
Thanks & Regards
M.Asiq Raja






