Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Project Professional View Custom Error

$
0
0

I am using Project Server 2013. I have created one Event Handler which fires on Project Publishing. 

After deploying and attaching the handler it works for me and shows the error message [CancelTaskMessage = "OnPublishing cancelled";] in IE(Browser).

When i Use Project Professional 2013 it just shows "JOB CANCELLED ON SERVER" in status bar but doesn't display the exact custom message.

Is there any way to display Custom Message in Status Bar Or Pop Out Window or any option to view Custom Error in Project Professional 2013.

public override void OnPublishing(PSLib.PSContextInfo contextInfo, ProjectPrePublishEventArgs e)
        {
            string CancelTaskMessage = "OnPublishing cancelled";
            e.Cancel = true;
            e.CancelEvent(CancelTaskMessage);
            e.CancelReason = CancelTaskMessage;
            base.OnPublishing(contextInfo, e);
}

Thanks,

Chirantan



Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>