I'm getting pretty desperate. I've created 2 different modules. One of them works, the other (when testing with the DNNSearch.aspx file provided by Nik Kalyani) spits out the following error.
Error: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType) at DotNetNuke.Common.Utilities.CBO.CreateObject[T](IDataReader dr) in \\webpath\Library\Components\Shared\CBO.vb:line 194 at DotNetNuke.Common.Utilities.CBO.FillCollection[T](IDataReader dr) in \\webpath\Library\Components\Shared\CBO.vb:line 392 at SC.Modules.ProductDetails.ProductDetailsController.GetSearchItems(ModuleInfo ModInfo) at ASP.dnnsearch_aspx.GetSearchResults(Int32 moduleId, Int32 tabId)
Both modules are using semantically and syntactically identical scripts (in the business controller class, that is, with obvious differences in procedures that get called). The only thing I can think of is that my data is the wrong type, but in my string, the only data that I pass from my module's database is identical to both modules.
Please help me. I'm up against a wall and I haven't the first clue how to make sense of this. I don't even know where to start.