FDT throwing exceptions for no reason ?

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

Hi, 

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 !

 

Thanks,

Paul

Coordinator
Jun 3, 2009 at 9:44 PM

what window are you talking about?

Jun 4, 2009 at 2:25 PM
Edited Jun 4, 2009 at 2: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.