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 19:     {
Line 20:         base.OnInit(e);
Line 21:         gToken = new Guid(User.Identity.Name);
Line 22:         
Line 23:     }

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

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_changepwd.OnInit(EventArgs e) in c:\inetpub\wwwroot\hr.nust.edu.pk\applicant\changepwd.aspx.cs:21
   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