none
.net appliocatin won't run

    Question

  • Got a .net 4.5.1 application which loads a few C functions implemented in Visual Studio Express 20112 (C++), which I call my i2c.dll responsible for communiacting towards a i2c device.

    I can exercise the i2c device drivers through it's providers applications, so I don't think I've got a driver problem, rather a dll load/runtime problem.

    My C# -> i2c.dll-> Device Driver application run's fin on Win7(x64) but when running on Win 8 (x64) It won't start and dependency walker is telling me that it can't locate a few dll's

    API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL, and a few other API-MS-WIN-CORE filess. Seams to me that I'm missing some run time libraries, but can't figure out what to install. Also tried running the application in win7 comparability mode without luck.

    Duncan 

    Friday, January 31, 2014 9:00 AM

Answers

  • Hi Duncan,

    There are many changes between Windows 8 and Windows 7. Different versions or changed file names for related DLL files will cause your issue to run app applied to Windows 7 on Windows 8 system.

    To see if there is any corrupted system files, you can try follow command to scan system:

    SFC /scannow

    Please run it as administrator, any error message for corrupted files, you can find in CBS.log.

    Use the System File Checker tool to repair missing or corrupted system files

    http://support.microsoft.com/kb/929833/en-us

    If the issue still persists after we repair the system, please try to use process monitor during running this application to capture the behavior, then, let we see if there is any “Access denied” or “Name not found” error for this process.

    Process Monitor v3.05

    http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

    How to use, please refer to this article:

     

    Using Process Monitor to capture system events

    http://www.sophos.com/en-us/support/knowledgebase/119038.aspx

    You can also upload the saved log file to a file sharing service like Skydrive or "Rapidshare" and put a link to them in your reply. Let’s check it together to find the root cause of this issue.

    Look forward to your response.


    Kate Li
    TechNet Community Support

    Monday, February 03, 2014 4:13 AM