none
.Net Runtime Error RRS feed

  • Question

  • Hi,

    I have a .Net 2.0 Windows Forms application consisting of two projects. The application seems to run but does not open the form as it does from VS 2005.

    The error message from the Event Viewer is below:

    EventType clr20r3, P1 searchindextest.exe, P2 1.0.0.0, P3 4ac5282c, P4 system.data, P5 2.0.0.0, P6 471ebf27, P7 272d, P8 29, P9 system.data.sqlclient.sql, P10 NIL.

    I have MDAC 2.8 SP1 on the Windows 2003 server standard edition V 5.1 build 3790.srv03_sp1_gdr.080813-1204 : Service Pack 1. I have .Net 2.0 SP1.

    Thank you.

    Piyush
    piyush varma
    Monday, October 5, 2009 5:12 PM

Answers

  • Hi,

    This seems like an unhandled exception in your application, possible a time out or connection error.

    Try catching the AppDomain.CurrentDomain.UnhandledException event in your code and explicitly loggigng the exception details provided in that event, that might give you more information about what the error is and where it came from. From there we should be able to diagnose the problem.

    Monday, October 5, 2009 8:22 PM

All replies

  • Hi,

    This seems like an unhandled exception in your application, possible a time out or connection error.

    Try catching the AppDomain.CurrentDomain.UnhandledException event in your code and explicitly loggigng the exception details provided in that event, that might give you more information about what the error is and where it came from. From there we should be able to diagnose the problem.

    Monday, October 5, 2009 8:22 PM
  • Hi,

    I got the error message:

    System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()

    I am trying to connect to a SQL Server 2000 database on another server.

    I will research more on error 40.
    piyush varma
    Monday, October 5, 2009 10:13 PM
  • Hi,

    That's a general connection error. The three most common problems are;

    1. Sql Server not configured for remote connections.
    2. Firewall blocking sql server connections.
    3. Wrong data source in connection string.
    Monday, October 5, 2009 10:15 PM
  • Got it. It was an incorrect data source hidden away deep in the DLL code. Thanks a ton.
    piyush varma
    Tuesday, October 6, 2009 1:03 AM