Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27518

type casting issue in visual studio 2014 - System.web.profile issue

$
0
0
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

Viewing all articles
Browse latest Browse all 27518

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>