Multi-byte character set is not found in VS2015 VC++ Redistributables - visual-studio

I have created a simple plane MFC application using VS 2015 and if i try to run the exe in another windows 10 machine where VC++ 2015 redistributables are present, then exe is not getting launch.
If i change it to Unicode then it works fine in another machine where VC++ 2015 redistributables are present, its failing specific MBCS.
in the Event viewer i noticed below error,
"Application popup: MFCApplication2.exe - System Error : The code execution cannot proceed because mfc140.dll was not found. Reinstalling the program may fix this problem."
i checked the mfc140.dll its present in system 32 folder, also i placed the same dll at the exe level and run. again new error noticed in event viewer like
Application popup: MFCApplication2.exe - Application Error : The application was unable to start correctly (0xc000007b). Click OK to close the application.
For testing purpose, i made the application as static linkage, in that case its working fine in another machine, but for dynamic linkage the exe is not launching in another machine.
Here are the list of VC++ Redistributes present in the windows 10 machine.
How we can fix the issue?
Edit,
Here i found MBCS installer for 2013 (http://go.microsoft.com/?linkid=9832071). But if i run i'm seeing below error, why we require VS for running MBCS i'm not understanding.
thanks

Related

Unable to attach to process. General Exception

This is from Visual Studio Community 2022 64-bit 17.1.1, "Current."
The binary to be debugged was compiled on Windows 11 with the same IDE, but I'm running it on Windows 10 Pro. Once it starts, I'm trying to attach the debugger.
The same file system contains all exe, lib, dll, obj, and source, all in the same places and full paths, as it's mounted in the same position on both computers (T:).
Attachment type is "Automatic." I'm doing Debug->Attach to Process, and clicking on a PID.
The same workflow succeeds on connecting the debugger on the same IDE on the Windows 11 box where the exe was compiled.
All processes belong to the same user (me).
Googling is finding nothing at all except red herrings about remote debugging (I'm trying to debug on the computer running the binary) and permissions.
OK, I'm not sure if this answer will help others, but on Windows 11, when I select the binary in question, the "Attach to:" menu comes up as "Native Code" automatically. On Windows 10, the same Visual C++ release, attaching to the exact same binary, for some reason is detecting it as Python. Manually setting the Code Type to "Debug these code types:"-->Native allowed the debugger to attach correctly.

Cannot run CMake executable with or without debugger under Visual Studio 2017: "Access is denied."

I'm attempting to run a program built with a CMake-generated solution file under Visual Studio 2017's debugger in order to debug a problem. However, whenever I try selecting Start Debugging or Start Without Debugging I get the following error popup.
Unable to start program
'E:\build\someprogram\build\x64\Debug\ALL_BUILD
Access is denied.
At first glance the problem sounded like the one described here. However, that bug was allegedly fixed in VS 2017 15.5, and I currently use 15.6.7. And the location of the compiled executable isn't on a RAM disk or network drive, but on a physical drive. And the error happens when running without a debugger also.
Also I wondered about whether or not the executable was not properly configured, since it looks like the error is related to the ALL_BUILD target, but in my CMakeLists.txt I have this declaration:
add_executable(someproject ${SOURCE_FILES})
I would think that would add the executable to run. It also appears as a subproject in the Solution Explorer.
The compiled .exe runs outside of Visual Studio fine, although it crashes, which I'm trying to debug. Strangely, I cannot enter the Visual Studio debugger from the Abort/Retry/Ignore dialogue that appears after the crash by clicking Retry like it instructs; the window for choosing the Visual Studio version never appears.
It does not seem to be a permissions issue since I manually adjusted the permission of all the build directories with all permissions, with no changes. I'm also running Visual Studio with administrator privileges, and it makes no difference. Additionally I replicated the build process on an entirely different machine (Windows 10, as opposed to Windows 7) and the exact same error occurs, so I'm suspecting it's a CMake issue.
You need to set a different project as startup project (right click on your target executable project "someproject" and select "Set as StartUp Project" from the context menu). ALL_BUILD is a symbolic target and is not connected to an executable.

ProteusDebugEngine Attaching the debugger to process '...' on machine '..' failed [duplicate]

When loading a C# / .NET 4 project into VS 2010 Ultimate on my main machine (Win 7 ultimate 64 bits), I am getting the error message
Attaching the ProteusDebugEngine debugger to process '[XXXX] YYYY.vshost.exe'
on machine ZZZZ failed. The debugger is not properly installed.
Cannot debug the requested type of code.
Run setup to install or repair the debugger.
This only happens when I set the target to 'Any CPU' or 'x64'; I don't get this message for a x86 target.
I have already uninstalled and reinstalled VS 2010 two times, and also have tried a repair. Manually re-registering oleaut32.dll does not help either.
When installing VS 2010 Ultimate on my notebook (Win 7 home premium 64 bits), I do not get this error message at all.
Both machines have a pretty similar software setup. There is also VS 2010 Express installed on both machines, and I do not get this error with it on any of the two computers either.
Help on this would be greatly appreciated.
Recently I encountered this problem too, but in addition to it I also faced with another error message box showing up in SQL Server Management Studio when I tried to connect to a server, which says:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider' ...
so this time I googled for this error and found a solution which I found at below urls:
Martin Poon - Microsoft MVP blog - Unable to cast COM object of type ...
Stack Overflow - Unable to cast COM object of type 'System.__ComObject' to ...
So it seems those problems happen when you have installed new version of Internet Explorer on your windows manually or using windows update.
in my case it's related to installing the IE9 using windows update on my Windows 7 x64 which has been resolved by following the instruction at above urls.
or in short:
open Command Prompt as Administrator and execute below command(s):
regsvr32 "C:\Program Files\Internet Explorer\ieproxy.dll"
for 64 bit windows, also try this:
regsvr32 "C:\Program Files (x86)\Internet Explorer\ieproxy.dll"
and voila both problems just faded away :-)
Had the same message popping up after I installed Visual Studio Ultimate 2010 on a new system. I had pulled the source from tfs and everything compiled. The configuration had been set to Any CPU for each project, however the setting up top was "Mixed", once I set the overall type to AnyCPU and cleaned the solution, it started fine in the debugger.
Running the following in the Visual Studio Command Prompt (2010) solved this for me.
devenv /resetskippkgs
In my case this helped:
1. Open preferences of the project
2. Unchecked "Prefer 32 bit" in Platform targets section from a build tab.

Visual Studio 2010 Build Fails to File Copy Error

I'm building a project in Visual Studio 2010 and the build fails because it cannot copy the assemblyname.dll file from obj to bin folder. The exact error message is:
Error 7
Unable to copy file "obj\Debug\AssemblyName.dll" to "bin\AssemblyName.dll". The requested operation cannot be performed on a file with a user-mapped section open.
I think this is because the previous file in bin-folder is not accessible. When I try to delete the file manually, I get an error "The action can't be completed because the file is open in another program". If I try to see what application locks the file with Unlocker, I don't get any results (No Locking handle found).
If I restart Visual Studio, the error goes away but happens again after a build or two. Goes without saying that this is seriously slowing me down. Any advice how to start solving this?
VIsual Studio 2012 on Windows 8. I was receiving the same error message on my project. Restarting Visual Studio or cleaning the obj folder manually did not help. Finally I closed all open files (Windows -> Close All Documents) and the problem went away.
This behavior was due to a newly installed Visual Studio extension called Visual Studio Achievements (http://visualstudiogallery.msdn.microsoft.com/bc7a433b-b594-48d4-bba2-a2f24774d02f)
I noticed that the .pdb file was locked by FxCop (using Unlocker) and I think that the Achievements -extension uses it. After disabling the extension I've no longer got the error mentioned above.
This bug has been fixed in recent versions of the extension (>1.7). It was released as a beta, btw...
This behavior of VS happen very often even on my computer (and on computers of my coworkers).
In my experience it happen more frequently when:
I have some form opened in design when i compile
I stop the execution od the application by pressing the "stop" button
in VS instead of exiting the application
So, closing the form in design before compile, and exiting the application instead of stopping it, somewhat mitigate the issue... but it still happen :-|
My computer is Win 7 x64 SP1 with VS 2010 SP1, 8Gb ram, and no swap file
Platform: Windows 8 Pro, Visual Studio 2012
I found that I receive this error when I am accessing the folder in Windows Explorer.
I was creating PDF documents with Visual Studio 2012. To review the sample document I would right click in Solution Explorer and use Open Folder in File Explorer.
On Windows 7 I would get a SYSTEM.IO error if the actual PDF document was open in Adobe Reader which is expected. With Windows 8 I found that I receive the above error if I have the folder open. I suspect there is a conflict with the Windows 8 preview.
If I close the folder and run the program it works fine.
Check if you open the dll in visual studio.
I open the dll in visual studio and this error happen!!

R6034, but really don't know why

I have no problem with Microsoft,but they hate me that's true. I have an application written in Visual Studio 2005,where it's build works fine (VS2005 SP1, Win XP SP3). But I have another PC where I would like to run it. When I try to start it then comes the R6034 error, then I click Retry, then the error comes again, then again Retry and the program starts and works fine.I don't want to see this error message again.
The OS in this PC is Win 7 (64bit). I have installed the required vcredist also.
I have read that I must build my application with a manifest which i have done. I have done the linker one , and I have also embedded a manifest. I have copied all the requied DLLs from the Visual Studio library with their manifest files into the folder where the exe exists, but still nothing.
I'm really disappointed because I have tried almost everything.Please, if someone know's anything which I can try then help me.If you need more info just tell me.
Thanks in advance!

Resources