Hi there i got the same error today,
I added a new class in app_code , The class is working in C# but i need it on VB so i used the online C# to VB trans tool, than it gave me the error.
this is the vb
Imports System
Imports System.Web
Imports System.Web.Security
Imports SecurityLib
Public Class ProfileWrapper
Public Sub New()
Dim profile As ProfileCommon = TryCast(HttpContext.Current.Profile, ProfileCommon)
End Sub
Public Sub UpdateProfile()
Dim profile As ProfileCommon = TryCast(HttpContext.Current.Profile, ProfileCommon)
End Sub
End Class
and this c#
using System;
using System.Web;
using System.Web.Security;
using SecurityLib;
public class ProfileWrapper
{
public ProfileWrapper()
{
ProfileCommon profile =
HttpContext.Current.Profile as ProfileCommon;
}
public void UpdateProfile()
{
ProfileCommon profile =
HttpContext.Current.Profile as ProfileCommon;
}
Do i need to imports sometning?
thanks