SQL Server, Error converting data type nvarchar to int

Server Error in '/Web' Application.


Error converting data type nvarchar to int.

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.Data.SqlClient.SqlException: Error converting data type nvarchar to int.
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.

 

以上错误用单步调试不能发现错误,原来问题出现在 asp:SqlDataSource, ObjectDataSource, XMLDataSource 等。

asp:SqlDataSource, ObjectDataSource, XMLDataSource , Membership Database ,后患无穷。

你可能感兴趣的:(SQL Server)