'/' 응용 프로그램에 서버 오류가 있습니다.

'System.Security.Principal.GenericIdentity' 형식 개체를 'System.Web.Security.FormsIdentity' 형식으로 캐스팅할 수 없습니다.

설명: 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 스택 추적을 검토하여 발생한 오류 및 코드에서 오류가 발생한 위치에 대한 자세한 정보를 확인하십시오.

예외 정보: System.InvalidCastException: 'System.Security.Principal.GenericIdentity' 형식 개체를 'System.Web.Security.FormsIdentity' 형식으로 캐스팅할 수 없습니다.

소스 오류:


줄 26:     public static string[] GetUserData()
줄 27: 	{
줄 28:         FormsIdentity id = (FormsIdentity)HttpContext.Current.User.Identity;        
줄 29:         FormsAuthenticationTicket ticket = id.Ticket;        
줄 30: 

소스 파일: d:\wwwroot\icord_dev.com\App_Code\Reservation\AuthUser.cs    줄: 28

스택 추적:


[InvalidCastException: 'System.Security.Principal.GenericIdentity' 형식 개체를 'System.Web.Security.FormsIdentity' 형식으로 캐스팅할 수 없습니다.]
   AuthUser.GetUserData() in d:\wwwroot\icord_dev.com\App_Code\Reservation\AuthUser.cs:28
   myicord_myrequest.Page_Load(Object sender, EventArgs e) in d:\wwwroot\icord_dev.com\myicord\myrequest.aspx.cs:30
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


버전 정보: Microsoft .NET Framework 버전:4.0.30319; ASP.NET 버전:4.8.4465.0