Developer forum

Forum » Development » Error on web site

Error on web site

Marco Santos
Reply

Hello.

 

I´m getting the following error when I try to access the site I´'m working on currently (Administration site is working correctly):

 

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +1602628
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +112

[InvalidCastException: Conversion from string "" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +1602551
   Dynamicweb.Frontend.OutputReplacer.InsertGlobalParagraphs(String html, Content Content) +1342
   Dynamicweb.Frontend.PageView.Output() +1875
   Dynamicweb.Frontend.PageviewControl.ParseControls() +62
   System.Web.UI.Control.InitRecursive(Control namingContainer) +133
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 

From what I understand, looking at previous entries in the forum, it´s something to do with mismatched collations. Both the SQL server and the database have the same Collation (Latin1_General_AI_CI). Is there something else I need to change/update?

 

DW version is 8.1.1.7.

 

 


Replies

 
Morten Bengtson
Reply
This post has been marked as an answer

It looks like this exception is caused by an error in a template. Make sure that you specify a number (page or paragraph id) as parameter when you use the global content tags, e.g. @Global:Page.Content(111) or @Global.Paragraph.Content(222)

Votes for this answer: 1
 
Marco Santos
Reply

This was actually related to another one of our modules, but your comment put us on the right track.

 

Thanks.

 

You must be logged in to post in the forum