FDT throwing exceptions for no reason ?

Jun 2, 2009 at 4:15 PM
Edited Jun 2, 2009 at 4:16 PM


I have yet another problem, sorry for the spam. When I try GetExtendedPermissions(), I keep receiving exceptions when the user closes the window because the dialog result is different than OK, but there's no ok button in the window !




Jun 3, 2009 at 8:44 PM

what window are you talking about?

Jun 4, 2009 at 1:25 PM
Edited Jun 4, 2009 at 1:27 PM


public void GetExtendedPermission(Enums.Extended_Permissions permission)


DialogResult result;

using (var formLogin = new FacebookExtendedPermission(ExtendedPermissionUrl(permission), permission, this))


result = formLogin.ShowDialog();



if (result != DialogResult.OK)
throw new Exception("Extended Permission Denied");




In a desktop application, this method pop-ups a permission window (this was the window I was talking about). When someone grants the permission, there is no DialogResult.OK because Facebook tells you "You may now close this window" when you are done. Therefore, I think it always throw the exception, generating some Internet Explorer script error.