Server Error in '/' Application.

Unrecognized Guid format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Unrecognized Guid format.

Source Error:


Line 21:         base.OnInit(e);
Line 22: 
Line 23:         m_gToken = new Guid(User.Identity.Name);
Line 24: 
Line 25:         HRBO.GetUserActiveLoginByToken(m_gToken, null, out rowActiveLogin);

Source File: c:\inetpub\wwwroot\hr.nust.edu.pk\applicant\myapplication.aspx.cs    Line: 23

Stack Trace:


[FormatException: Unrecognized Guid format.]
   System.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException) +4050433
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +546
   System.Guid..ctor(String g) +139
   applicant_myapplication.OnInit(EventArgs e) in c:\inetpub\wwwroot\hr.nust.edu.pk\applicant\myapplication.aspx.cs:23
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0