i am getting exception from Adcontrol as
"A first chance exception of type 'Microsoft.Advertising.Mobile.Shared.AdException' occurred in Microsoft.Advertising.Mobile.dll".
my ad control is disappear and throw this kind of exception so what should i do for this kind of problem please Tell me if anybody known
The exception is probably thrown because there isn't any ad served.
Your app will only receive ads if they are available. If it is not the case, the control disappears. You get that exception while you are debugging the app, but when deployed and executed in a real device, it doesn't make the app break.
Anyway, just to make sure that this is what causes the exception you can subscribe to the ErrorOccurred
event of the ad control, and check what happens:
private void AdControl_ErrorOccurred(object sender, Microsoft.Advertising.AdErrorEventArgs e)
{
System.Diagnostics.Debug.WriteLine("Ad Error : ({0}) {1}", e.ErrorCode, e.Error);
}