Server Error in '/porjafariSite' Application.
No mapping exists from object type System.Security.Principal.GenericIdentity to a known managed provider native type.
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.ArgumentException: No mapping exists from object type System.Security.Principal.GenericIdentity to a known managed provider native type.
Source Error:
Line 43: cmd.Parameters.AddWithValue("@userName", Page.User.Identity); Line 44: con.Open(); Line 45: cmd.ExecuteNonQuery(); Line 46: con.Close(); Line 47: