TaskEditDialog ted = new TaskEditDialog(dct, true, true);
try
{
ted.ShowDialog();
On Windows 2008 R2 Server, logged in as an Administrator, when the ShowDialog() call exits (but before it hits the next line of my code) I am seeing an Unhandled Exception.
On my Windows 10 dev machine it is absolutely fine, on other platforms it also seems fine. It is the specific circumstances that seems to be causing the problem.
Any advice most welcomed. If I can provide more/better diagnostic information I'd be very happy to.
Comments: ** Comment from web user: dahall **
try
{
ted.ShowDialog();
On Windows 2008 R2 Server, logged in as an Administrator, when the ShowDialog() call exits (but before it hits the next line of my code) I am seeing an Unhandled Exception.
On my Windows 10 dev machine it is absolutely fine, on other platforms it also seems fine. It is the specific circumstances that seems to be causing the problem.
Any advice most welcomed. If I can provide more/better diagnostic information I'd be very happy to.
Comments: ** Comment from web user: dahall **
I finally figured out the problem. It has to do with the UserId tag under the Principal tag. WS2008 doesn't recognize the SID and reports back an empty string for the user name. My code didn't handle the empty string condition and caused an exception. I have fixed the code in 2.5.22, due shortly. In the mean time, if you remove the UserId tag, it should fix your problem as that will default to the current user.