Windows error 0x800700C1, -2147024703

Detailed Error Information

BAD_EXE_FORMAT[1]

Message%1 is not a valid Win32 application.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code193 (0x00c1)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x000000c1.

Questions

26votes
7answers

Tips to help debug "Could not load file or assembly X or one of its dependencies"

I'm looking for tips/suggestions/insights to help debug an on application load issue; Could not load file or assembly... The solution/project where I'm experiencing this issue is a conversion from a working copy in Visual Studio 2008 to the Visual Studio 2010 Release Candidate. The conversion process appeared to be successful, [...] read more
.net
exception
visual-studio-2010
assembly-resolution
15votes
9answers

System.EnterpriseServices.Wrapper.dll error

-------------------------------------------------------------------------------- > Parser Error Description: An error occurred during the parsing of a resource > required to service this request. Please review the following specific parse > error details and modify your source file appropriately. > > Parser Error Message: Could not load file or assembly > 'System.EnterpriseServices.Wrapper.dll' or one [...] read more
asp.net
global-asax
13votes
3answers

Error loading hostpolicy.dll while deploying .NET Core console app to Azure WebJobs

I have followed this tutorial to deploy a .NET Core console application to an Azure Web Service WebJob. My app is running locally without any issue (with dotnet 1.0.0-preview2-003131) but when I try to run it from Azure console I have the following error : Failed to load the dll [...] read more
c#
.net
azure
asp.net-core
azure-webjobs
12votes
2answers

exception HRESULT: 0x800700C1 when executing c# application referencing native c++ lib with boost

I am running a C# application that references a C++\CLI wrapper project which in turn references a native c++ project dependent on Boost 1.47 library (links to files of the form ...vc100-mt-gd-1_47.lib) All libraries are statically linked and everything compiles great. Executing the C# app results in an exception: "...is [...] read more
visual-studio-2010
boost
c++-cli
8votes
2answers

C++/Cli : Could not load file or assembly X or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

I have a C++ project, a C++\Cli project and a c# win forms project. When i access the cli project from win forms project, i can access and use cli project functions. But when i include my cpp project headers into cli project, i get this run time error from [...] read more
boost
c++-cli
boost-thread
7votes
6answers

WPF throwing an exception parsing XAML that includes a Winforms User Control

I have a WPF app that makes use of a Winforms User Control that I have created using C++/CLI. When my app goes to parse the XAML for my main window, it throws an exception. The information appears to be somewhat abbreviated, but it says: A first chance exception of [...] read more
c#
wpf
winforms
xaml
user-controls
6votes
8answers

Coldfusion 9 installation problem with IIS7

Windows web server 2008 R2 64 bit, CF9 64 bit, IIS7, ISAPI extensions and filters and II6 metabase compatability installed. OS is on C default, and trying to install CF to D: Testing IIS and it shows index.html correctly from c:\inetpub\wwwroot at http://localhost/index.html Then I install CF to D:\ , [...] read more
coldfusion
installation
5votes
2answers

C++/CLI Dll with C# interop issue

I have 3 projects in one solution. I have : * a native C++ dll, * a C# Winform, * and a proxy C++/CLI without pure mode to do the link between the 2 others projects (and use the native function in the managed code in C#) So when I [...] read more
c#
visual-c++
dll
c++-cli
interop
5votes
2answers

COM+ VB6 Application on 64 bit system: IBM CLI Driver transaction error when connecting to DB2

We are trying to migrate an Intranet Web Application, developed in VB6, from Windows Server 2003 to Windows Server 2008 R2 and we are facing a problem with two phase commit transactions between Microsoft SQL Server 2008 and DB2 on Z/OS Mainframe. On Windows Server 2008 R2 with DB2 v9.7.500.702 [...] read more
sql-server
vb6
transactions
db2
com+
4votes
0answers

How do you make .sh or .bash files open with Windows Terminal Ubuntu?

I really like coding in bash, but there used to be many limitations of bash functionality in Windows. Though now there are many benefits to the bash windows users now rather than how it was pre windows 10. However, with all of the improvements, there is one thing that I [...] read more
windows
bash
windows-10
windows-subsystem-for-linux
windows-terminal
4votes
2answers

Error 23 is not a valid Win32 application on .resx file

I have a form in my VB>NET project (2010) with some ImageList. Those images are embedded in the list with a form resource in a .resx file as data name="xxxx.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64 When I tried to build/run my project I get: > Error 23 is not a valid Win32 application. (Exception [...] read more
.net
vb.net
resources
imagelist
win32exception
3votes
5answers

Failed to Start Process with Commandline VSIISExeLauncher.exe in IIS 10.0

Thursday night, I was working on a project built in ASP.NET Core 2.1 (being prepared for ASP.NET Core 2.2) running on my local IIS 10.0 (not IIS Express) and was able to run it without any issue. Friday morning, after heading into the office, I was met with the following [...] read more
iis
asp.net-core
asp.net-core-2.1
iis-10
asp.net-core-2.2
3votes
3answers

Powershell v2 :: Load a COM Interop DLL

I have this DataLink DLL on my system - Interop.MSDASC.dll I am trying to load the same from Powershell like this - [Reflection.Assembly]::LoadFile("C:\Interop.MSDASC.dll") | out-null But, I get the following error - Exception calling "LoadFile" with "1" argument(s): "Could not load file or assembly 'Interop.MSDASC.dll' or one of its dependencies. [...] read more
powershell
powershell-2.0
3votes
0answers

Integrating C# with Prolog - Getting a "System.BadImageFormatException" Exception though the target platform is set to x86

I've got a university project involves integrating Prolog with C# , So i downloaded the SwiPlCs DLL and linked it with my project. I've got the following lines inside Main() method: Environment.SetEnvironmentVariable("PATH", @"E:\\swipl\\bin"); string[] p = { "-q", "-f", @"test.pl" }; PlEngine.Initialize(p); When i run the program , an exception [...] read more
c#
prolog
3votes
0answers

xlwings fails to open workbook with ambiguous error

I am currently attempting to write several pandas dataframes to an existing excel workbook. I chose xlwings because it was successful with preserving the formulas in the workbook. This code worked for about two days, and then an ambiguous error surfaced. Any idea why this code fails? def write_packaged_outputs(packaged_outputs): print("Writing [...] read more
python
pandas
xlwings
3votes
3answers

Convert images to video on the fly using Aforge.net.framework and c#

We need to convert images (which is coming from the camera live stream) into video stream on the fly using ffmpeg binaries and c# project. We installed Aforge.net framework 2.2.4.1 in our system(windows 7,32 bit) and implemented the video recording coding using Aforge.video.Ffmpeg dll.It works fine as we expected.Then we [...] read more
c#
aforge
3votes
2answers

Error "Could not load file" but I didn't ask for it

UPDATE: I RECOMPILED FOR X86, AND NOW IT DOES WORK. BUT I STILL NEED TO KNOW WHAT HAPPENED HERE, AND WHY I NEED TO RECOMPILE ALL MY .NET APPS TO X86... I NEVER USED ORACLE AND I DON'T PLAN TO DO SO IN THE FUTURE. WHY IS IT MAKING ME [...] read more
.net
vb.net
entity-framework
3votes
1answer

500.0 0x800700c1 on IIS 7.5 ASP 32-bit AppPool on Windows 2008 Server x64

I'm trying to get a classic ASP application working in 32-bit mode on our new Windows 2008 Server x64 with IIS 7.5. I've created an ApplicationPool named 'TEST' that is set to ASP.NET 2.0 in Classic mode and gone into Advanced Settings and set 'Enable 32-Bit Applications' to true for [...] read more
asp.net
asp-classic
windows-server-2008
iis-7.5
32bit-64bit
3votes
0answers

SqlServer Compact "is not a valid Win32 application"

I have a website I'm working and im using Sql compact 4 sp1 for my database I have sql compact installed on my pc and it works fine, however I am having problems trying to deploy the site to a host. I have installed the nuget package "Microsoft.SqlServer.Compact" and have [...] read more
sql-server-ce
.net-4.5
2votes
3answers

How to fix BadImageFormatException on application startup?

I bought the game Stardew Valley on steam, installed it, launched it. Nothing happened :(... When I took a look in the eventviewer I saw the following information: Application: Stardew Valley.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.BadImageFormatException at StardewValley.Program.Main(System.String[]) To [...] read more
windows-10
crash
gaming
xna
2votes
1answer

Console Application written in .NET 5.0 unable to run on colleague's computer

I wrote a tool at work in .NET 5.0 that I now have to give to a non-developer to use. Unfortunately, no matter how I publish it I can't get it to run on her computer. Currently I have it set at: Configuration: Release | Any CPU Target framework: net5.0 [...] read more
.net-core
windows-10
console-application
.net-5
2votes
0answers

I've tried reinstalling ms office and also installed office tool runtime. I'm still getting this error while exporting data to an excel file

System.BadImageFormatException: 'Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 800700c1 is not a valid Win32 application. (Exception from HRESULT: 0x800700C1).' I'm getting this error while running this code to export from data grid view to an excel file. I've tried every solution [...] read more
c#
excel-interop
badimageformatexception
2votes
1answer

How to set platform architecture for csi.exe

I see the following error when running csi.exe: > System.BadImageFormatException: Could not load file or assembly 'xyz.dll' or > one of its dependencies. is not a valid Win32 application. (Exception from > HRESULT: 0x800700C1) Compiling in Visual Studio raises a warning but compiles and runs without problems: > There was [...] read more
c#
csi
2votes
0answers

SSIS 2012: Packages runs in SQL agent, not in BIDS or cmd-line

I have a development server that will run packages from SQL Agent (according to schedule, and manually via Job Activity Monitor), but not by running it from BIDS or by two different ways on the command-line. The error we get in BIDS is: > 0xC0010026 at ACME Raise Error: The [...] read more
sql-server
ssis
ssis-2012
2votes
1answer

Capture Sound from microphone using Directx DirectSound

I am creating a simple application that records input from the microphone and store it into array of bytes. So I have searched a lot about this and eventually ended up using Directx DirectSound. Here is the code I am using: using Microsoft.DirectX; using Microsoft.DirectX.DirectSound; private Thread CaptureSoundThread = null; [...] read more
c#
.net
directx
directsound
2votes
3answers

How to: Configure IIS7 for Web Synchronization

I have followed the instructions here. To cut a long story short, I just cannot connect to: https://machine/site/virtual directory/replisapi.dll?diag I get: HTTP Error 500.0 - Internal Server Error Module IsapiModule Notification ExecuteRequestHandler Handler ISAPI-dll Error Code 0x800700c1 Requested URL https://machine:443/site/virtual directory/replisapi.dll Physical Path C:\inetpub\SQLReplication\replisapi.dll Logon Method Basic Logon User machine\user [...] read more
sql-server
iis-7
iis-6
replication
merge-replication
2votes
0answers

Hyper-V VMMS won't start in Windows 8.1 pro

When I try to run an emulator in Visual Studio it tell's me my Hyper-V can't start, the strange thing is that it used to work some time ago. Error starting emulator [https://i.stack.imgur.com/eVSxT.jpg] What I already discovered is that my Hyper-V virtual machine management service won't start up. Error starting [...] read more
windows-phone-8.1
hyper-v
2votes
1answer

DynamicCompressionModule issue with IIS 8.5

I am facing issue with DynamicCompressionModule and StaticCompressionModule on my Windows server 2012 R2. DynamicCompressionModule and StaticCompressionModule are installed. When i open my website it shows below error- Module : DynamicCompressionModule Notification : SendResponse Handler : ExtensionlessUrlHandler-ISAPI-4.0_32bit Error Code : 0x800700c1 It gives error even i have <urlCompression doDynamicCompression="false" doStaticCompression="false" [...] read more
iis
windows-server-2012-r2
2votes
1answer

Powershell can't access SQL Server 2012 Microsoft.SqlServer.DTSRuntimeWrap

I'm trying to write a powershell script to execute a dtsx package that is already on the server. Installing the package wasn't an issue but executing is proving rather frustrating. Everything I've found online states that I need to load the ManagedDTS assembly and start with the following command to [...] read more
powershell
ssis
sql-server-2012
2votes
1answer

Running a .net 4.0 application under a 2.0 site in IIS

I have an IIS "site" set up with an app pool that uses .net 2.0. I have added a .NET "application" to the site that requires .net 4.0. I set the app pool for that specific site to use .net 4.0 but when I do I get a 500 error [...] read more
.net
iis
1vote
1answer

Details: is not a valid Win32 Application. (Exception from HRESULT: 0x800700C1)

I currently just installed vSphere Client, from our vcenter server. The application launches, but when I try to create a new VM I'm greeted with this lovely error. \ Details: is not a valid Win32 Application. (Exception from HRESULT: 0x800700C1) I'm on a Windows 7 64 bit machine that is [...] read more
windows
1vote
1answer

How do you make .sh files open with Windows Terminal Ubuntu?

I really like coding in bash, but there used to be many limitations of bash functionality in Windows. Though now there are many benefits to the bash windows users now rather than how it was pre windows 10. However, with all of the improvements, there is one thing that I [...] read more
windows-10
ubuntu
bash
shell
windows-subsystem-for-linux
1vote
2answers

ASP.NET, visual studio won't build

I'm an absolute beginner in asp.net and I want to follow this Microsoft tutorial. Problem is, right at the beginning, just after I have created my project, and try to "build without debugging", an error appears that says to me that build errors have been encountered. The output display this [...] read more
asp.net
visual-studio-2019
1vote
1answer

Why "schtasks" does not run my job?

I scheduled a task on Windows-XP using schtasks utility, but the task does not run. Here is what I see in the SchedLgU.Txt log file: "MySQL Automatic Backup.job" (WampServer) 10/2/2010 6:36:43 PM ** ERROR ** Unable to start task. The specific error is: 0x800700c1: (Unable to find an error message) [...] read more
windows-xp
scheduled-tasks
1vote
1answer

Microsoft DirectX Sound on Visual Studio 2017

I have an old program made with Visual C# 2010. Now I would to use it again so I tried to compile on Visual 2017 Community but it launch an Exception on MicrosoftDirectSound. I understood that it's because is on 32bit so I would ask you if there is any [...] read more
c#
directx
1vote
0answers

Pyttsx3 works on 32bit-Python but not on 64bit-Python

SITUATION I am using the pyttsx3 module for my Alexa-like project. The source code I wrote all worked fine on my own PC, but now I am trying to get this thing to work on a Pi. * System : Raspberry Pi 4GB (64-bit quad-core processor) * OS : Windows [...] read more
python
windows
raspberry-pi
raspberry-pi4
1vote
1answer

Publish a .Net 5.0 web in IIS from Visual Studio 2019 doesn't start

I am trying to publish a test website in .Net 5.0 on an IIS on Windows 10. * I have .Net 5.0 installed * I have activated the IIS on Windows * I have installed the ASP.NET Core 5.0 Runtime (v5.0.1) * I have installed the dotnet-hosting-5.0.1-win * I have [...] read more
asp.net
asp.net-core
iis
visual-studio-2019
.net-5
1vote
2answers

32 Bit dll in 64 bBit application

I need to run the vb6 32 Bit dll in .net application. When I run the application in X86 it works fine. But when I run the application in "Any Cpu" Configuration it gives Following Error: > Retrieving the COM class factory for component with CLSID > {AAA4DA7D-FC03-4BF7-B240-FA6F323D41EE} failed due [...] read more
vb.net
dll
vb6
1vote
1answer

Windows 10 C# App will not run says CLRWrapper missing dependencies

I have a WPF application that runs fine on a Windows 10 x 64 development machine and a basic Windows 10 x64 VM. When put on a customer machine get an exception saying: DispatcherUnhandledEvent: Could not load file or assembly 'CLRWrapper.dll' or one of its dependencies. The specified module could [...] read more
windows
c#-4.0
windows-10-desktop
1vote
0answers

How to disable BrotliCompressionModule on particular application

By default, IIS installed the gzip compression HTTP module. Later, I had installed Brotli Compression HTTP Module for IIS to improve the compression ratio for browsing content. In the ApplicationHost.config, brotli has been added in the three places as the below. 1. globalModules 2. httpCompression 3. modules <system.webServer> <globalModules> <add [...] read more
.net
iis
brotli
1vote
1answer

.Net Core can't load hostpolicy.dll (HRESULT: 0x800700C1)

I'm in the middle of upgrading my project from .Net Core 2.2 to 3.1, but I've ran into some issues. At first, by starting via the command line, I got an error message that the hostpolicy.dll couldn't be found in the output folder. To fix that I installed Microsoft.NETCore.DotNetHostPolicy, but [...] read more
c#
asp.net-core
.net-core
1vote
1answer

Fixing DIA related issues in LLVM unit tests

I'm trying to build LLVM and run the unit tests, but I get multiple unit test errors. The failures have errors like the following $ ":" "RUN: at line 1" $ "c:\users\xxx\documents\llvm-project\build\release\bin\llvm-pdbutil.exe" "pretty" "C:\Users\xxx\Documents\llvm-project\llvm\test\DebugInfo\PDB\DIA/../Inputs/empty.pdb" # command stderr: llvm-pdbutil: An unknown error has occurred. HRESULT: 0x800700C1: Calling NoRegCoCreate I've done a [...] read more
visual-studio-2017
llvm
1vote
1answer

Asp.net is not supporting dll files of Biometrics Attendence Machine's SDK

I have ZK Teco Bio-metrics Attendance device. I need to integrate this device with my Asp.net project, so my team can remotely access the machine to check their attendance records. I have downloaded Official SDK and add references in my project and have gone through with the registry process to [...] read more
c#
asp.net
1vote
0answers

Debugging C with VS Code

I've trouble setting up VS Code to debug C though I've followed the instructions here: How do I set up VSCode to compile C++ code? ( mx0's answers ). While runnig the built.bat task, it shows this in the output: > 'Build.bat' is not recognized as an internal command Or [...] read more
c
json
visual-studio-code
1vote
1answer

Could not load file or assembly 'System.Data.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

I'm facing this problem. I've searched for all sorts of solutions for this but to no avail, finally decided ask here. The web application is a .net 4.0 deployed with IIS in a staging server, it has been running fine up until recently. It runs fine in production and development [...] read more
.net
winapi
dependencies
.net-assembly
badimageformatexception
1vote
1answer

Trying to create a type in Roslyn from a Type, but I get BadImageFormatException when converting a nullable

I'm trying to write a function that takes in an existing Type, and converts the Type to a PropertyDeclaration. I almost have it working, but if the Type I pass in is Nullable, I get this error when I eventually try to compile my class with it: System.BadImageFormatException: is not [...] read more
c#
code-generation
roslyn
1vote
1answer

Aspnet Core Azure Failing with HTTP Error 502.5 - Process Failure

I am trying to deploy an aspnet core app to Azure. This seems to have gone through OK but when I try to start up the app I am presented with the following error... Common causes of this issue: The application process failed to start The application process started but [...] read more
asp.net-mvc
azure
.net-core
1vote
1answer

Perl script fails to run Schedule task with "%1 is not a valid Win32 application"

I am trying to run a Perl script in Windows 2012 R2 (64 bit) using schedule task. I am getting %1 is not a valid Win32 application. (0x800700C1) error. When I run this script from the command prompt it runs fine I have Strawberry Perl (64 bit) installed on this [...] read more
perl
scheduled-tasks
1vote
1answer

Could not load file or assembly 'System.EnterpriseServices.Wrapper.dll' is not a valid Win32 application in MVC application

I am using MVC app having .net 4.5 and it was working fine in, 4 days back windows 10 update has happened and my IIS setting has gone. After that i couldn't able to run my MVC app in Visual studio and it starts giving > Could not load file [...] read more
asp.net-mvc
iis
dll
wrapper
1vote
1answer

cgi pages not working from local IIS

I recently had my computer reimaged and reinstalled everything. Everything works except that from my localhost, if i browse a cgi page it throws > HTTP Error 500.0 - Internal Server Error The page cannot be displayed because > an internal server error has occurred. > > Module CgiModule > [...] read more
perl
iis
iis-7.5
1vote
0answers

Midi-dot-net playing notes simultaneously and to high delay

After resolving the problem with noteOn key event (thank you Justin) i noticed another two problems: too high delay and impossible playing simultaneously. Firstable i use IF statment: if (nutka == "A0" && msg.Velocity != 0) { clock.Schedule(new NoteOnMessage(outputDevice, Channel.Channel1, Pitch.A0, 80, 2)); } and this works excelent, no delay, [...] read more
c#
midi
midi-instrument
1vote
1answer

Cannot connect to wmi provider sql server 2012

The following error dialog pops up when I tried connecting to SQL Server Configuration Manager on my SQL Server 2012 production server: > Cannot connect to WMI provider. You do not have permission or the server is > unreachable. Note that you can only manage SQL Server 2005 and later [...] read more
sql-server-2012
wmi
sql-server-agent
sql-server-config-manager
1vote
1answer

Could not load file or assembly X or one of its dependencies. is not a valid Win32 application. (HRESULT: 0x800700C1)

OS: Windows 8.1 64 I tried to play multiple sounds in VB.Net with DirectX, there are no errors in my code. The problem is whenever the event is fired I get this error > System.BadImageFormatException was unhandled Message: An unhandled exception > of type 'System.BadImageFormatException' occurred in System.Windows.Forms.dll > Additional [...] read more
.net
vb.net
dll
directx
audiovideoplayback
1vote
1answer

System.BadImageFormatException on PC running PC Sim software

I'm getting this exception: System.BadImageFormatException was unhandled whenever I try to run a program compiled on my PC. I'm running the Okuma PC Sim software on my laptop. This happens even if I open and compile the API Test app that ships with the API. Below are the exception details: [...] read more
okuma
1vote
0answers

PyCharm behavior inconsistent with command line ironpython

I have an ironpython script which I am launching in pycharm. The script imports custom c# assemblies and employs classes found within. Everything is fine when this script is launched at command line. The problem comes when I try to launch the script in pycharm. I get an error like [...] read more
import
ironpython
pycharm
1vote
1answer

Microsoft Ink InkAnalyzer "... is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"

i am getting a "... is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)" Exception with the following code, any suggestions how to fix it ? InkAnalyzer analyzer = new InkAnalyzer(this.overlay.Ink, this); analyzer.AddStrokes(this.overlay.Ink.Strokes); // Exception AnalysisStatus status = analyzer.Analyze(); read more
c#
.net
microsoft.ink
ink-analyzer
1vote
0answers

.Net executable with C++/CLI layer gets System.BadImageFormatException

This problem seems to be pretty common to anyone dealing with c++/cli, but I'm missing something with the typical resolution path. I have a .Net assembly, PHD.exe, that has a reference to a c++/CLI dll. This DLL dynamically links a number of win32 native dlls. Exception text: > Main Window [...] read more
c++-cli
badimageformatexception
1vote
1answer

Non-installed usage of SQL Server CE 4.0 in a WPF application

I have a wpf application that accesses data within a SQL Server CE database. The application and database are meant to be run on a PC without installation, however attempting to do so fails. (failure to locate db provider) I've taken the following steps: * System.Data.SqlServerCE -> copy local * [...] read more
wpf
entity-framework
sql-server-ce
1vote
1answer

BadImageFormatException on SQLite load on certain computer

I've created a very simple console app in .NET 4.0 that will run as a scheduled task. It looks for local files that are unmodified for a certain amount of time and then parses the file, inserts a record into a MySQL database, and copies the file to the network. [...] read more
c#
system.data.sqlite
badimageformatexception
1vote
1answer

Simulate KeyPress in C# to Game

I'm trying to simulate a keypress into another window, which is a game. The things that don't work are: * SendKey - Send the input as strings like some text or something but doesn't go for ENTER TAB or other critical keys * InputSimulator - Complete waste of time * [...] read more
c#
c++
keyboard
keypress
simulate
1vote
1answer

SQL Server Management Studio -> New Query -> "is not a valid win32 application"

I have been using SQL Server Management Studio for years. Yesterday, when I started hitting "new Query", I would get the following error in pop up form: > "is not a valid win32 application". I did a lot of googling, and I found this: http://blog.sqlauthority.com/2009/04/30/sql-server-fix-error-is-not-a-valid-win32-application-exception-from-hresult-0x800700c1/ Which is not at all [...] read more
sql-server
ssms
0votes
1answer

CF64 on Server 2008x64 breaks pretty much everything else, how to fix?

I just installed CF64 on a WinServer2008x64 machine. Previously a whole array of classic ASP and ASP.Net apps were functioning, after the CF install they're not. I'm getting an http 500 on everything not coldfusion. I believe it's a mapping issue. CF seems to have dropped a wildcard handler mapping [...] read more
iis-7
64-bit
coldfusion
0votes
0answers

Windows 10 x86 on uefix64 system (via network) error at the end of the installtion

I created a TFTP boot server (Tiny PXE Server on Windows Server 2019). I create 3 different boot situation: Legacy mode, EFI 32, EFI 64 When using Legacy mode, I'm able to boot WinPEx32 or WinPEx64 to install Windows x86 or x64. When usgin EFI 32, I'm able to install [...] read more
windows
64-bit
uefi
windows-installation
windows-installer
0votes
0answers

Google Chrome won't update and shows error 0x800700C1. How to debug?

Google Chrome won't update, even though I suspect the error is Windows related. Chrome isn't capable of updating itself. When going to "Help -> About Google Chrome", it shows this message: > An error ocurred when looking for updates: The update verification failed to > start (error code 3: 0x800700C1 [...] read more
windows-7
google-chrome
updates
0votes
1answer

MS Outlook 2016 cannot search

Lately, it seems everyone will have this happen to them at my company. They are unable to search in Outlook past a certain date. I've verified when the errors start in the Event Viewer corresponding to when their search broke. The error is this: Log Name: Application Source: Microsoft-Windows-Search Date: [...] read more
microsoft-outlook
search
microsoft-outlook-2016
search-indexing
0votes
1answer

How to run powershell script (.ps1) in windows terminal powershell tab?

I have tried making the script open with windows terminal (wt.exe) but it displays the error : [error 0x800700c1 when launching `"C:\Users\hjdom\OneDrive\Desktop\All desktop stuff\Python Game\RunGame.ps1"'] I really need it to run in the windows terminal because it allows you to keep typing commands after the script is over. I am [...] read more
powershell
windows-terminal
0votes
1answer

Microsoft.Office.Interop.Outlook --> 800700c1 is not a valid Win32 application

I "own" a C# WinForms Desktop app that has about 30-50 users using it per day (usually constantly during their shifts). One of the things it does is call Microsoft.Office.Interop.Word and/or Microsoft.Office.Interop.Outlook in order to open up a new Word or Outlook document and then populate that document with information. [...] read more
c#
.net
outlook
office-interop
0votes
1answer

x86 32 bit support for Accord.video.FFMPEG

Accord version 3.8.2 I am using Accord, Accord.video, Accord.video.FFMPEG Dll's for capturing the screen, my code is compiled to ANYCPU, everything works fine in 64 bit machine, but I am facing issue when it comes to 32 bit machine below is exception which I am getting. Exception occurred while loading [...] read more
ffmpeg
aforge
accord.net
0votes
1answer

win32com opening Word

I am using win32 client to open a microsoft word document. I would like to convert word version to 2016 and I am encountering error from win32com import client import pythoncom pythoncom.CoInitialize() word = client.Dispatch("Word.Application") word.Visible = True doc = word.Documents.Open(r'C:\Users\<username>\Documents\<filepath>\test.docx') doc.Convert() doc.Save() doc.Close() word.Quit() and I am having this [...] read more
python
win32com
0votes
1answer

Unknown Error: 0x800700c1, While debugging .net Core 3.0 API in VS Code

I am building a .Net Core API with 3.0. It was all working well before a week, and for a couple of days it is now throwing a strange Error when I try to debug, as shown in the following Screenshot on the bottom left corner. enter image description here [...] read more
c#
visual-studio-code
vscode-debugger
.net-core-3.0
0votes
1answer

.NET application looking for runtime in wrong location

I have the .NET SDK installed on my Windows laptop and am able to run a simple C# HelloWorld program. .Net is installed at C:\Program Files\dotnet and I also have that set in my PATH variable. I'm now trying to run another .NET application. It's run with an exe but [...] read more
c#
.net
0votes
1answer

Will a 32-bit DirectShow filter work on a 64-bit Windows?

Specifically, got a DirectShow filter library in an .AX file, containing the Guliverkli MP4 splitter (version "20050310") downloaded from the MPC/Guliverkli SourceForge pages. I am experimenting with different DirectShow MPEG-4 splitters using GraphStudioNext (64-bit version), but now I see that it fails to import the filter from file (Graph -> [...] read more
windows
dll
com
directshow
0votes
1answer

Converting VC++ project from VS2013 to VS2019 giving error is not a valid Win32 application

I had an old VC++ project on VS2013, now I have converted that project to VS2O19. It is able to create the dll successfully. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v142</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> But that .dll not able to load in my web application. It is throwing below error. Could not [...] read more
asp.net
.net
visual-c++
visual-studio-2013
visual-studio-2019
0votes
1answer

IIS Fails for Asp.net 3.1 core site with runtime and hosting bundles installed

Ok I am pulling my hair out here I have come across this before. I have the following error. But I have them installed and .net core when I go to the links try and re install it says I already have the components installed only seems to be when [...] read more
c#
iis
0votes
1answer

Azure App service - .Net Core - Failed to start application /LM/W3SVC/###/ROOT, ErrorCode "0x800700c1"

After deploying to a newly created Azure App Service, I get this error: HTTP Error 500.0 - ANCM In-Process Handler Load Failure eventlog.xml shows these two lines: <Data>Failed to start application '/LM/W3SVC/1773510456/ROOT', ErrorCode '0x800700c1'.</Data> And <Data>Could not find inprocess request handler. Captured output from invoking hostfxr: </Data> I am deploying [...] read more
.net-core
64-bit
azure-web-app-service
0votes
0answers

error occurred while loading required library hostpolicy.dll

I would to like update the database but when i run : 'update-datebase' or the command : `add-migiration' in the Package Manager Console it give this error Failed to load the dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.7\hostpolicy.dll], HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll from [C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.7] Things that [...] read more
.net-core
entity-framework-core-migrations
0votes
0answers

An error occurred while loading required library hostpolicy.dll during Scaffold-DbContext

I am using VS 2019 Package Manager Console. I've been using this Scaffold-DbContext successfully in the past days. But today, suddenly I got an error and I can't seem to figure it out. Restart didn't work out. Clean/Rebuild didn't help, either. PM> Scaffold-DbContext "Server=MYPC;Database=MyProject;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Force Failed to [...] read more
.net-core
ef-core-3.0
0votes
1answer

BadImageFormatException and valid Win32

I have a C# application that runs well on my work laptop. However, the same application cannot run on my home laptop, I get an error saying: System.BadImageFormatException HResult=0x800700C1 Message=Could not load file or assembly 'xxx.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: [...] read more
c#
winapi
console-application
badimageformatexception
0votes
2answers

C# Project, GAC, DLL

i'm having a problem with my built Application. I have a project taken from here modified it and implemented in my program. Shortly, this TableProc project generates a report to OpenOffice Calc and uses some libraries from OpenOffice - cli_basetypes (GAC/MSIL), cli_oootypes (GAC/MSIL), cli_uno (GAC/MSIL), cli_ure (GAC/MSIL), cli_uretypes (GAC/MSIL) AND [...] read more
c#
dll
gac
cil
openoffice-calc
0votes
1answer

Windows Store App DLL 32bit and 64bit

I've written a small Media Foundation Transform and added the C++ DLL to my C# Windows Store App project. The 32bit version of the DLL running the x86 configuration works just fine but x64 doesn't work (it throws an Exception with the following message: > "MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0x800700C1") [...] read more
c#
c++
dll
windows-store-apps
ms-media-foundation
0votes
1answer

.NET 4.0 WinForm - Could not load file or assembly or one of its dependencies. is not a valid Win32 application

I have an application that works on most Windows 10 (64-bit) systems, but there are 6 computers that are getting this same BadImageFormatException. The application and libraries are targeting AnyCPU. When attempting to create a COM object from the assembly, I get the exception: > Could not load file or [...] read more
vb.net
winforms
com
.net-4.0
badimageformatexception
0votes
1answer

Service Fabric Package Activation Error

Getting the following error Error event: SourceId='System.Hosting', Property='CodePackageActivation:Code:EntryPoint'. There was an error during CodePackage activation.Service host failed to activate. Error:0x800700c1` If I attempt it on a linux service fabric cluster, the error changes some. So thinking the windows cluster is failing on the entyPoint.sh script as windows doesn't have bash. [...] read more
.net
asp.net-core
microservices
azure-service-fabric
service-fabric-stateless
0votes
1answer

How to send long string in netcat - cmd shell?

For security tests, a vbs script called msf.vbs is created which used to execute payload generated by metasploit. ex: cscript.exe %temp%\msf.vbs <payload> If the script is used in cmd.exe on localhost, everything goes well. But if it is used in netcat cmd shell, the payload will be broken. ex: * [...] read more
netcat
0votes
0answers

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) godaddy

This error after deploy on godaddy at local it works fine Could not load file or assembly 'ClearScriptV8-32.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) any solution ? read more
asp.net
0votes
1answer

Desktop App to UWP using Desktop App Converter

I have desktop application and want to convert it to an uwp application. I use desktop app converter with powershell. I am trying to convert my startup projects exe, but everytime i try execution stops at > Running Installer in Isolated Environment > > VERBOSE: No installer valid exit codes [...] read more
powershell
uwp
desktop-bridge
desktop-app-converter
0votes
1answer

Unable to debug c++ code in Visual Studio Code

I've just installed Visual Studio Code v1.7.1 to write my c++ code in for my degree. My programming level is pretty basic, but I like what I've seen of VS Code so far, save for the fact that I've no idea how to debug or build my code. I've looked [...] read more
c++
json
visual-studio-code
0votes
0answers

System.Reflection.Assembly.LoadFile - " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"

In my code, I want to create dinamically an istance to an assembly using : System.Reflection.Assembly myDllAssembly = System.Reflection.Assembly.LoadFile(targetdllpath); If my target dll is compiled as "AnyCPU", it works succesfully. Now, I have to compile my target DLL as X86 because it must to use a COM object. So, LoadFile [...] read more
c#
reflection
0votes
0answers

vb.net The error is: Could not load file or assembly 'System.Data.dll' is not a valid Win32

THE PROBLEM I HAVE WITH THE KNOWLEDGE THAT EVERYTHING WAS IN WORKING TIME WITHOUT A PROBLEM An unhandled exception of type 'System.InvalidOperationException' occurred in myprogram.exe Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'System.Data.dll' or one of [...] read more
vb.net
0votes
1answer

Distributing CEFSharp Winforms (x86) - Trying to keep my application as AnyCPU

I have a .NET Application (VB Winforms) that runs a main executable. On startup this executable will search for plugins and will load them in using System.Reflection.Assembly.Load() I then use interfaces to add menu icons from the plugins into the main app's icon bar so forms from the plugins can [...] read more
.net
winforms
64-bit
chromium-embedded
cefsharp
0votes
1answer

Can't import AutoItLibrary from RIDE

I can install AutoItLibrary, while when import it from RIDE, it always shows red. And the log file: Traceback (most recent call last): Initializing test library 'AutoItLibrary' with no arguments failed: com_error: (-2147024703, 'OLE error 0x800700c1', None, None) Traceback (most recent call last): File "C:\Python27\lib\site-packages\AutoItLibrary\__init__.py", line 79, in __init__ self._AutoIt [...] read more
python-2.7
autoit
robotframework
0votes
1answer

C# DLL works fine locally, but not when exposed as WCF service

I have built a desktop app that controls a piece of 3rd party hardware using their provided .dll (I am relatively confident that this is a 64bit .dll since it is running fine in VS2015 compiled with either AnyCPU or x64). Everything works just as expected when used as a [...] read more
c#
wcf
dll
0votes
0answers

Why i'm getting System.IO.FileLoadException?

In form1 designer I have menustrip with Open menu. Just dragged from toolbox menustrip added Open menu. when running the program and clicking the Open I can't use a break point it's not even get there but throw this exception first: > Could not load file or assembly 'Microsoft.DirectX.AudioVideoPlayback.dll' or [...] read more
c#
.net
winforms
0votes
1answer

VS15 Remote Deploy for ARM not working

I'm trying to deploy Win UWP app to RPi2 with IoT, I did this month ago successfully but since then I get few upgrades from Insider Program on Windows 10 and while I building and deploying project for Remote ARM now I'm getting following error: 2>------ Deploy started: Project: UWP1, [...] read more
visual-studio-2015
arm
remote-debugging
windowsiot
0votes
0answers

Is not a valid Win32 application error on IIS

I have an Asp.Net Web Api project that uses a 32 bit dll. I can deploy and use the application on IIS my own machine after changing Enable 32 bit Applications property of the application pool to true. Here are the properties of my windows and IIS: enter image description [...] read more
asp.net
iis
hosting
32bit-64bit
legacy
0votes
0answers

SQL Server CE v4 on Windows 8

I built the app using SQL Server CE 4.0 and it runs just fine in Windows 7.0 dev machine, but got the following error message running it in Windows 8 (x64 version, Lenovo All-In-One Horizon 27' HW platform): > Is not a valid Win 32 application (Exception from HRESULT: 0x800700C1) [...] read more
visual-studio-2010
windows-8
sql-server-ce
sql-server-ce-4
sqlcedatareader
0votes
1answer

Bad Image format exception was unhandled

I come across a problem that I am not able to figure out. Basically, I downloaded a sample program written in C# and I compiled it using Visual Studio community 2015. At first, I used trial version of VS community 2015 without registering, and the program ran well. But after [...] read more
c#
visual-studio-2015
0votes
1answer

Issue in Win32::OLE of Perl with MS Office 2013 (32bits)

I had a Perl script using Win32::OLE to access a MS Word file. It worked fine with MS Office 2010 but does not after I updated to MS Office 2013 32bits. I have then tried with latest versions of ActivePerl both 32 bits and 64 bits. I am using Windows [...] read more
perl
winapi
ms-word
ole
0votes
2answers

Midi-dot-net sounds played twice

Firstable I am not a PRO programmer but only a student who hava a little problem with an excelent library Midi-Dot-Net. I use a Midi-Dot-Net library to write a simple application in Visual Studio in C# language. But I stuck on a very confusing problem. I placed a little code [...] read more
c#
midi
midi-instrument
0votes
1answer

Chain dependant msi packages with burn

I have been struggling now for a few hours getting this working without any real success. I am trying to install ReportViewer 2012 (v11) including SQLSysClrTypes.msi with my installer. My registry checks are as follow and seems to work: <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server 2012 Redist\SQL Server System CLR Types\CurrentVersion" [...] read more
wix
bootstrapper
burn
0votes
0answers

Could not load file or assembly 'ClearScriptV8' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

It is working on local IIS on Windows 7, but give this error on Windows Server 2012 IIS 8.5. ClearScript version: 5.4.0.0 C++ Redistributable 2013 Installed. C++ Redistributable 2013 Installed [https://i.stack.imgur.com/lA19m.png] I've used AssemblyResolver from https://clearscript.codeplex.com/discussions/438696 Getting error BadImageFormatException: Could not load file or assembly 'ClearScriptV8' or one of its [...] read more
clearscript
0votes
1answer

Application built exactly the same way in both Debug and Release configurations doesn't work in Release on Win7: BadImageFormatException

I'm developing an application on a Win7 x64 machine. There's some code that makes a call to an external .dll file. The .dll was built for 32-bit machines. The problem I'm having is when running the app in the debugger in Debug configuration, it works fine. As soon as I [...] read more
.net
configuration
badimageformatexception
0votes
1answer

Windows Script Host Error 0x800700C1 Code 800700C1

I was reading chapter 20 "Automation" of the book by Jeff Prosise "Programming Windows with MFC", 2nd ed. There are instructions on how to create a small automation server with methods long Add(long, long), long Subtract(long, long), and a property double Pi. There's also a script in VBScript to test [...] read more
c++
vbscript
mfc
wsh
ole-automation
0votes
1answer

How to executable project in C# with right directories

I am new in C#. I had create a project and i make it executable. I install it to another PC and it runs. I had a picturebox button and when you click on it, it will change the picture. In my PC works perfect because the directory with .gif [...] read more
c#
exception
directory
0votes
1answer

Interface between C# and SWI-Prolog

I have written a prolog program and I want to use the program within C#, that is i want to ask queries to swi-prolog and use answers within my C# code... I have tried SWI-Prolog interface to C# at : http://www.swi-prolog.org/contrib/CSharp.html My code is like as follows....: Environment.SetEnvironmentVariable("SWI_HOME_DIR", @"C:\Program Files [...] read more
c#
swi-prolog
0votes
4answers

ASP .NET MVC on IIS 7.5, Windows 7 64 bit

I recently installed Windows 7, 64 bit on my machine to try my hands at 64 bit, the website always worked fine on 32 bit Windows 7 (VS 2008 was development environment). This website is being developed on Visual Studio 2008 targeting .Net 3.5 fx and ASP .NET MVC1. On [...] read more
asp.net-mvc
64-bit
iis-7.5
0votes
2answers

Initializing 64-bit Com C++ dll in a c# project

I have refered a 64-bit com interop dll in a c# class library project and have the code to initialize it, this library is used in a asp.net project. Since the business layer project and asp.net is in c# i have configured to be for Any CPU platform. Also i [...] read more
asp.net
com
64-bit
0votes
1answer

How do I play a video through .net in windows 7

I had setup an app to play a video using the library suggested here this worked great for me for a long time until my machine was upgraded. In windows 7 I get the following exception that I'd never seen under XP: `System.BadImageFormatException: is not a valid Win32 application. (Exception [...] read more
.net
winforms
video
windows-7
0votes
1answer

Third-party library requires 32-bit application?

Dear Internet community. I am looking into an issue for a client who is experiencing problems with migrating to 64-bit based Windows 7 client machines. One of their programs is dependent on a third-party library that kicks up a fuss if the current application is not 32-bit. MyClientApplication calls into [...] read more
.net
64-bit
32-bit
0votes
1answer

Running IntelliTrace on a box without Visual Studio on a Managed Windows Service

I keep getting the same error when attempting to run IntelliTrace on a Managed Windows Service under a 64 bit installation of Windows 7 > .NET Runtime version 4.0.30319.239 - Loading profiler failed during > CoCreateInstance. Profiler CLSID: '{301EC75B-AD5A-459C-A4C4-911C878FA196}'. > HRESULT: 0x800700c1. Process ID (decimal): 3772. Message ID: [0x2504]. The [...] read more
windows-services
intellitrace

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0