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

    Question

  • En asp.net con vb.net 2010

     

    FormatException: Input string was not in a correct format.] Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +204 Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +66 [InvalidCastException: Conversion from string "Comprobar usuario" to type 'Integer' is not valid.] Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +246 Prac_Login.comprobarUsuario(String nombre1, String clave1) +459

    Saturday, September 17, 2011 4:24 AM

All replies

  • Estando en visual studio 2010 ultimate con asp.net.

     

    Estando en visual y al ejecutar el sitio, funciona bien.  Después de compilar y abrir la página directamente del navegador (browser) se visualiza el mensaje:

     

    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) +204 Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +66 [InvalidCastException: Conversion from string "Comprobar usuario" to type 'Integer' is not valid.] Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value) +246 Prac_Login.comprobarUsuario(String nombre1, String clave1) +459

    Saturday, September 17, 2011 4:28 AM
  • Hi,

    Please use english on this forum, so that people can understand the question and respond to it.

    Is this question related to WCF Data Services in some way (since that's what this forum is about)?

    Thanks,


    Vitek Karas [MSFT]
    Monday, September 19, 2011 10:10 AM
    Moderator