我的WP8.1 Silverlight应用程序上有一个adcontrol。每当应用程序进入横向时,我都会收到以下错误,该错误在adcontrol的“erroroccured”事件中捕获。如果我的手机启动应用程序并且手机处于纵向向上位置,则不会发生此错误,但如果我转动手机,在重新定位项目后,我会收到错误(对象引用未设置为对象实例)
P.S。我目前正在使用此测试单元:Image300_50,test_client
Start Error------
at Microsoft.Advertising.Mobile.UI.AdvertisingWebBrowser..ctor(Double controlWidth, Double controlHeight, Boolean isClickable, Boolean showProgressBar, WebBrowserPool objectPool)
at Microsoft.Advertising.Mobile.UI.AdvertisingWebBrowser..ctor(Double controlWidth, Double controlHeight, String html, WebBrowserPool objectPool)
at Microsoft.Advertising.Mobile.UI.BannerAdFrameManager..ctor(BannerAd ad, Int32 adWidth, Int32 adHeight, Size maxSize, StackPanel parent, WebBrowserPool objectPool)
at Microsoft.Advertising.Mobile.UI.AdFrameManager.CreateAdFrameManager(IAdvertisement ad, StackPanel parent, EventHandler`1 richMediaActionEventHandler, Thickness expandedAdMarginPx, String rendererOptions, Double width, Double height, Double scale, Size maxSize, EventBroadcaster eventBroadcaster, WebBrowserPool objectPool)
at Microsoft.Advertising.Mobile.UI.AdControl.VerifyAndDisplayAd(IAdvertisement ad)
at Microsoft.Advertising.Mobile.UI.AdControl.RefreshAdInternal()
End Error-------