Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Google syndication causes .NET error
Message
 
 
To
09/04/2008 21:32:10
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01309549
Message ID:
01309579
Views:
6
There is no stack trace in this message. BTW, I tried to google on this error and there were lots of hits. I added Google syndication at the end and there were few hits as well. I haven't checked each link, though, too late right now.

>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform