none
_COMPlusExceptionCode -532459699 on SqlConnection.Open RRS feed

  • Question

  • Hey guys

    I'm expeiencing some trouble when trying to open a connection to my database.

    The connection is beeing made from a windows app, written in C# .NET 2.0 framework.

    I have a local SQL Server 2005 express installed, running in Vista Business with Administrator rights.

     

    When the applicaiton runs SqlConnection.Open(), an exception is thrown with an InnerException set to null -> static members-> Non-public members -> _COMPlusExceptionCode = -532459699

     

    I have idea what to put up with this. The software worked fine some months ago, but now it dosent.

    Anyone?

     

    Thanks

    /Thomas

    Thursday, February 7, 2008 12:13 PM

Answers

  •  

    Ok I seem to have solved the problem.

    However, I cannot explain why i get the error.

     

    When I read my connectionstring vars from app.config I get the error above. But if I hardcode the connectionstring in my app it works fine. When I debug the app to view my connectionstring, they are excatly the same!

     

    WTF!?

    Friday, February 8, 2008 9:05 AM

All replies