Microsoft KB Archive/309811

= PRB: Fatal Exception When You Click an Image in a Mobile AdRotator Control =

Article ID: 309811

Article Last Modified on 6/6/2002

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



This article was previously published under Q309811



SYMPTOMS
When you use a Palm Vx device with the AU-System browser, the browser may stop responding (hang), or you may receive a &quot;Fatal Exception&quot; error message under the following circumstances:
 * You open a page that uses the mobile AdRotator control. -and-


 * You click an image from the AdRotator control before the image has completely loaded.

This problem does not occur if the image is completely loaded.



RESOLUTION
You can use a device-specific rendering to work around this problem by eliminating the use of the mobile AdRotator control on the AU-System browser. To do this, follow these steps:   Create a device filter in the Web.config file for the AU-System browser. For example:         In your mobile Web Forms page, use the DeviceSpecific class to create a DeviceSpecific template that can use the filter that renders specifically to the AU-System browser.

The sample code that follows creates a header in a mobile Web Form. This code sends a mobile Label control instead of the mobile AdRotator control to the AU-System browser. Note that this code sends the mobile AdRotator control to all other browsers.    <mobile:Label id=&quot;Label1&quot; runat=&quot;server&quot;>No Ad Rotator</mobile:Label> </HeaderTemplate> </Choice> <Choice> <HeaderTemplate> <mobile:AdRotator id=&quot;AdRotator1&quot; runat=&quot;server&quot; AdvertisementFile=&quot;Ad.xml&quot; /> </HeaderTemplate> </Choice> </mobile:DeviceSpecific> </li></ol>

<div class="status_section">

STATUS
This behavior is by design.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Additional query words: Ad-Rotator ad Rotator

Keywords: kbnofix kbwmldevice kbprb kbservercontrols KB309811

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.