Cannot use app with sql server ce 4.0 private deployment as external program for debug

Unanswered Cannot use app with sql server ce 4.0 private deployment as external program for debug

  • 07 Juli 2012 15:23
     
     
    I have the application with SQL Server CE 4.0 private deployment. It's work correctly in standalone mode. But when I try to use this installed application as "external program" in vs2010 for debugging an addon dll for this application I get exception:
    is not a valid Win32 application.(Exception from 0x800700C1)
    System.BadImageFormatException
    See http://screencast.com/t/geDHSmcA
    As I undestood the sqlserverce cannot find native libraries. When I copied the libraries from the x86 subfolder to app folder then the application is successfully launched from under the vs.
    Is there a better way to debug what this hack?

Semua Balasan

  • 09 Juli 2012 2:31
    Moderator
     
     

    Hi chirondev,

    Are you using Internet Information Services (IIS) 7? If so, please try the following steps:

    1. Go to Internet Information Services (IIS) Manager
    2. Click on Application Pool
    3. Look for your web application in application pool
    4. Right-click the web application, go to Advanced Settings
    5. Enable 32-bit Applications by checking it.

    Best Regards, Ray Chen

  • 11 Juli 2012 9:42
     
     

    Hi Shulei Chen,

    Thank you for response. But my application is desktop application.

  • 30 Juli 2012 12:41
     
     

    chiron dev,

    Please go through this link which speaks comprehensively about sqlce and its deployment Link to SQLCE Deployment 

    Regards

    Suresh Sharma

    Scrum Product Owner

    Raptor Technologies India Limited

  • 14 Agustus 2012 8:59
     
     

    Suresh Sharma,

    There are nothing new. The application install and work correctly, but I cannot debug with this application.

    Regards,

    Chirondev