Line 54: End Sub Line 55: Line 56: Protected ReadOnly Property Profile() As ProfileCommon Line 57: Get Line 58: Return CType(Me.Context.Profile,ProfileCommon) If you encounter this error after deployed an asp.net app to server: Solution is: (1) Upload a Precompiled app, go to web.config and cut out profile properties, save web.config, refresh the page of the website, error will apear then go back to web.config and paste back the cute Profile Properties, save and refresh the website.