Select the product you need help with
Error message when you try to run an ASP.NET 2.0 Web application: "An unhandled exception occurred during the execution of the current web request"Article ID: 916443 - View products that this article applies to. On This PageSYMPTOMSWhen you try to run a Microsoft ASP.NET 2.0 Web application that is built on the Microsoft .NET Framework 2.0, you receive the following error message: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. 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: Index (zero based) must be greater than or equal to zero and less than the size of the argument list. CAUSEThis problem is caused by incorrect code that is generated by Visual Web Developer. When you click the Convert this field into a TemplateField link in the Fields dialog box, code that resembles the following is generated. RESOLUTIONTo resolve this problem, use the following code to replace the code that is generated by Visual Web Developer. MORE INFORMATIONSteps to reproduce this problem
PropertiesArticle ID: 916443 - Last Review: August 22, 2006 - Revision: 1.3
|



Back to the top








