Forum Discussion
Vasily_Zaytsev
Jul 14, 2021Iron Contributor
National text in Local Event Handler Message
Hello.
I create Project Server 2019 local event handler.
How can I have national text in Local Event Handler Message - in server I see only '???????????'
My code is:
public override void OnCreating(PSLib.PSContextInfo contextInfo, ProjectPreEventArgs e)
{
EventLog MyLog = new EventLog();
MyLog.Source = "Project Server Event Handler";
if (e.ProjectName.Contains("New"))
{
MyLog.WriteEntry("OnCreating", EventLogEntryType.Information, Consts.eventId);
e.CancelReason = @"РУССКИЙ ТЕКСТ";
e.Cancel = true;
}
}
No RepliesBe the first to reply