This is error that I receive when I try to run application that use my
control:
--------------------------------------------------------------
Server Error in '/TestApplication' Application.
----------------------------------------------------------------------------
----

Unable to generate code for a value of type
'System.Data.SqlClient.SqlConnection'. This error occurred while trying to
generate the property value for SqlConn.
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.Web.HttpException: Unable to generate code for a
value of type 'System.Data.SqlClient.SqlConnection'. This error occurred
while trying to generate the property value for SqlConn.

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:

[HttpException (0x80004005): Unable to generate code for a value of type
'System.Data.SqlClient.SqlConnection'. This error occurred while trying to
generate the property value for SqlConn.]

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!