标签: asp.net vb.net downgrade
我正在尝试将asp.net(VB)项目从4.5降级到4.0。剩下的唯一错误是对“System.Security.Claims.ClaimsPrincipal”的未定义调用。在4.0框架中是否有任何等价物?
代码:
Dim p As New System.Security.Claims.ClaimsPrincipal(New AppIdentity(user, True)) HttpContext.Current.User = p Thread.CurrentPrincipal = p