1
Vote

Adorotator raises exception after trying to get admob

description

The exception that i am getting is :
    Message "Error HRESULT E_FAIL has been returned from a call to a COM component."    string
and the debug log:


'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\TowerDefenseSilverlight8.DLL'. Symbols loaded.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\Microsoft.Advertising.Mobile.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\Microsoft.Advertising.Mobile.UI.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\Microsoft.Phone.Interop.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\AdRotator.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\AdRotator.Core.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\adduplex.windowsphone.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\googleads.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Threading.Tasks.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Core.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\Microsoft.Threading.Tasks.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{EF0FCDFF-819C-45C7-9775-74F0AB9AA36F}\Install\Microsoft.Threading.Tasks.Extensions.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.Serialization.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'Microsoft.GeneratedCode'.
Trying provider PubCenter
Ad created for provider PubCenter
Ad created for provider PubCenter
Ad failed request for: PubCenter
Ads failed request for: PubCenter
Trying provider AdMob
Ad created for provider AdMob
'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols.

comments

Darkside wrote Dec 14, 2013 at 11:03 PM

could you provide us with some more details regarding the issue, namely:
  • AdRotator version
  • What version of the admob control are you using
  • Visual Studio version
and if possible, a sample project demonstrating the issue.

another thing we ask, is to test the admob control in your project natively without adrotator, just to be sure it's an adrotator issue and not the adprovider

thanks

lepkifke wrote Dec 15, 2013 at 5:08 PM

Thanks for the fast replay.

AdRotator version : 2.1.0 beta 1
Googl ads version : 6.5.11.

settings file:

<?xml version="1.0" encoding="utf-8"?>
<AdSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CultureDescriptors CultureName="">    
<PubCenter AppId="0acb7849-c79f-4819-8e03-3947ae1ac0b8" SecondaryId="10327975" Probability="75"/>
<AdMob AppId="ca-app-pub-9085740709221591/1730348077" Probability="10"/>
</CultureDescriptors>
</AdSettings>



xaml file:

<phone:PhoneApplicationPage
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:AdRotatorWP8="clr-namespace:AdRotator;assembly=AdRotator"
xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.WindowsPhone"
xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" 
xmlns:GoogleAds="clr-namespace:GoogleAds;assembly=GoogleAds"

x:Class="TowerDefenseSilverlight8.MainPage"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="480"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Landscape" Orientation="Landscape"
shell:SystemTray.IsVisible="False" >

<!--Sample code showing usage of ApplicationBar-->
<!--<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
        <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
        <shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
            <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
        </shell:ApplicationBar.MenuItems>
    </shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>-->

<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="White">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Image Grid.RowSpan="2" Height="490" HorizontalAlignment="Left" x:Name="image7" Source="/Res/grass3.jpg" Stretch="Fill" VerticalAlignment="Top" Width="800" />
    <!--TitlePanel contains the name of the application and page title-->

    <!--<Image Name="image1" Stretch="Fill" Source="/TowerDefenseSilverlight8;component/Res/HomeBackground.png" Height="480" />-->

    <!--ContentPanel - place additional content here-->

    <TextBlock Height="138" x:Name="textBlock1" Text="Game is Loading" VerticalAlignment="Top" Foreground="#FF2658A7" FontSize="60" HorizontalAlignment="Center" Margin="179,113,181,0" />
    <Image Height="83" HorizontalAlignment="Left" Margin="206,266,0,0" x:Name="image3" Source="/Res/char2/char 5_6.png" Stretch="Fill" VerticalAlignment="Top" Width="76" />
    <Image Height="83" HorizontalAlignment="Left" Margin="543,266,0,0" x:Name="image4" Source="/Res/char2/char 5_6.png" Stretch="Fill" VerticalAlignment="Top" Width="76" />
    <Image Height="126" HorizontalAlignment="Left" Margin="49,113,0,0" x:Name="image5" Source="/Res/char1/char 5_8.png" Stretch="Fill" VerticalAlignment="Top" Width="127" />
    <Image Height="126" HorizontalAlignment="Left" Margin="626,113,0,0" x:Name="image6" Source="/Res/char1/char 5_8.png" Stretch="Fill" VerticalAlignment="Top" Width="142" />
    <Image Height="83" HorizontalAlignment="Left" Margin="321,241,0,0" x:Name="image2" Source="/Res/Fast/006.png" Stretch="Fill" VerticalAlignment="Top" Width="76" />
    <Image Height="83" HorizontalAlignment="Left" Margin="419,241,0,0" x:Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="76" Source="/Res/Fast/005.png" />

    <Grid HorizontalAlignment="Left" Height="100" Margin="28,20,0,0" Grid.Row="1" VerticalAlignment="Top" Width="728">
        <AdRotatorWP8:AdRotatorControl 
            x:Name="AdRotator"
            AdHeight="100"
            AdWidth="728"       
            RemoteSettingsLocation="http://www.lepeli.com/wp/defaultAdSettings.xml"
            IsAdRotatorEnabled="True"                                                
            SlidingAdDirection="Left"
            SlidingAdDisplaySeconds="10"
            SlidingAdHiddenSeconds="20" Margin="0,-29,0,29"       
            AutoStartAds="True"
            />
    </Grid>

</Grid>
</phone:PhoneApplicationPage>


Maybe you can spot the issue from this data? if not i will create a new solution and sent it to you ,

Thanks!

lepkifke wrote Dec 16, 2013 at 9:40 PM

Any help?

lepkifke wrote Dec 17, 2013 at 9:12 PM

I am giving up trying to solve the issue for now,

Waiting for the formal release...

Darkside wrote Dec 19, 2013 at 9:11 AM

Sorry for the late reply, were all very busy here on the team.

So far I've been unable to replicate your issue.

Have you been able to use the Google ads client natively without AdRotator to ensure it's an issue with AdRotator or AdMob?

Also in your XAML, I note you still have namespaces for the original ad Providers, I wouldn't recommend leaving those in when moving to AdRotator. Shouldn't cause an issue but better to be safe than sorry.

Darkside wrote Jun 14, 2014 at 10:15 AM

Right, We have done some intensive testing with AdMob and they recently updated their WP8 client.
This changed caused to update our implementation of AdMob as well, so try the next release (due very shortly) and this should resolve it.

Let us know if it is still an issue