Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Google syndication causes .NET error
Message
 
À
09/04/2008 21:32:10
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01309549
Message ID:
01309843
Vues:
6
Google Syndication often has JavaScript errors in it. I've seen it on many occasions, and it's not your fault but the .js that google serves from their ad scripts. It seems it only happens with certain advertisers (on my site it tend to be the 'generic' ads or the EBay ads that often get thrown in when the content network can't find a good match)...

+++ Rick ---


>I have something weird that I cannot resolve. I have observed that tonight. In my .NET Web site, I am including a reference to a Google syndication javascript file to include some content on the site. If I include the .js file in the HTML content that I am generating to my .aspx page, I am having this error:
>
>"Input string was not in a correct format."
>
>
>at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
>   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
>
>
>If I put the line in comment, I do not have the error.
>
>The line that is causing this is:
>
>
>loStringBuilder.Append("<script type=""text/javascript"" src=""http://pagead2.googlesyndication.com/pagead/show_ads.js"">" + oProcess.oApp.cCR)
>
>
>This doesn't make any sense to me. At this point, I am only adding some HTML content into the string builder. This should not generate that error. If I remove the s at the end in the .js extension, I will not have any error. I really cannot find what is causing that. This is a very weird situation that I have never seen before.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform