Thursday, February 20, 2014

LoadUserProfile Function Error - Returning Value 1314

I came across this error while trying to Debug-Run a C# ASP.Net web app in Visual Studio 2010.

Calling LoadUserProfile returns an error value of 1314 while attempting to impersonate a windows user programmatically.

Permissions, or rather:
"The calling processes must have SE_RESTORE_NAME and SE_BACKUP_NAME privileges" -

Run Visual Studio as Administrator.
A simple one after about an hour of trouble shooting, right-click on the VS icon and choose Run As Administrator.


No comments:

Post a Comment