Console Application Error on Windows 2012 server R2 standard application - windows

I have created a console application in visual studio 2013 on windows server 2012 standard version and the exe file seems to run ok but when I copy it to the windows server 2012 R2 standard version it come up with the following error when I try to run it - Application erro - The application was unable to start correctly (0xc000007b). Click ok to close the aplication. Can anyone help me fix this issue?

It's look like your 32-bit application tried to load some 64-bit "dll".
Try to check by Dependency Walker

Related

Delphi Rio application doesn't start on Windows 2003 Server (Missing d2d1.dll)

Since the Delphi Rio 10.3.3 update (before: Delphi Seattle) my application has not been started on a Windows 2003 server.
Error message like: The application could not be started because d2d1.dll was not found. Reinstalling the application can fix the problem.
I have copied the file d2d1.dll from my PC to the Windows 2003 Server. The following error message appears: The application or DLL d2d1.dll is not a valid Windows file. Check this with the installation chain.
Then I tried to register the DLL via CMD as follows: regscr32 / i d2d1.dll
Error message: d2d1.dll is not an executable file and is not a registration tool that is registered for this file type.
Any ideas? (I know that Windows 2003 Server is very old and nasty but I need any solution)
EDIT: A simple Hello World Application works.

VS 2012 on windows 8 and click once publish

I've got a fresh build of windows 8 running Visual Studio 2012 version 11.0.60610.01 Update 3. I have a winform app that I have been using (when the machine was running windows 7). The file structure where i'm trying to get to is the same as it was on windows 7. I'm a local admin. I'm trying to publish the to the location of c:\inetput\wwwroot\deploy\SCC (again.. where I was doing it on windows 7, but on windows 7 I was using Visual studio 2010). I receive an error on each file that is a application files. The errors follow this line
Error 1 Failed to copy file 'C:\Bob\SCC\SCC\MailProcessor\bin\Release\app.publish\Application Files\MailProcessor_1_0_0_32\dbConfig.dll.deploy' to 'C:/inetpub/wwwroot/Deploy/SCC/Application Files/MailProcessor_1_0_0_32/dbConfig.dll.deploy'. Unable to add 'Application Files/MailProcessor_1_0_0_32/dbConfig.dll.deploy' to the Web site. Unable to add file 'Application Files\MailProcessor_1_0_0_32\dbConfig.dll.deploy'. The system cannot find the path specified.
1 1 MailProcessor
The solution builds without errors, just get these errors when I attempt to publish to my local IIS. Was hoping someone had already figured out how to fix this.
Thanks
Shannon
I am able to publish ClickOnce apps to localhost in Windows 8/VS2012. Are you running Visual Studio as an administrator? You have to do this in order to publish to the local webserver. Are there any files at all being deployed to the inetpub folder? Do you have full IIS installed locally (not IIS Express)?

SideBySide Application Error

I've got an application that has been built with TideSDK.
When trying to run the application on the machine that it was packaged with (runs Windows 8) the application works no problem. When I try to run this program on a Windows Vista machine that I've got, I get a
"The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail."
error.
Here's the event viewer information:
Activation context generation failed for "C:\Users[blah blah blah]\Program.exe". Dependent Assembly Microsoft.VC80.CRT, processorArchitecture="x86", publicKeyToken="1fc8b3b9a1e18e3", type="win32", version="8.0.50727.4053" could not be found. Please use sxstrace.exe for detailed diagnosis.
Some solutions say to update windows or reinstall visual c++ redist.
Do these errors signify a needed windows update or visual c++ redist reinstallation?
Thanks in advance!
Vince
Hi The MSVC Redistibutable files are outdated in your system. You need to install "Microsoft Visual Studio 2005 Service Pack 1" Redistributables.
they can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=14431

Visual Studio 2008 Debugging Windows Embedded CE 6.0 application

I'm trying to debug a Windows CE 6.0 embedded application built with the STANDARDSDK_500 (ARMV4I) SDK using Visual Studio 2008. It builds and deploys however when it gets to the stage of starting the application it throws up the error "Unable to start debugging".
I am able to connect to the remote registry so CoreCon is running and connecting OK. I have connected as a "Windows CE Device" using a fixed IP address (although I have also tried dynamic IP address).
At this stage I have no idea what the problem is, I've checked the executable with dependency walker and the only 2 DLL's missing are COREDLL.DLL and WS2.DLL which are both present on the CE device in \Windows.
I've tried starting the built executable on the device and nothing happens. I have configured the CE device to create dump files but nothing is created.
Any ideas what could be wrong? What I can check next?

Setup Project for Windows Service won't build under Server 2008 (Visual Studio 2008)

We've got new machines here for doing development on running Server 2008.
With Visual Studio 2008 we're having problems building a Setup Project which installs the Windows Service - Under Custom Actions then Uninstall, "InstallerClass property is only valid for assemblies".
This builds and installs fine on XP SP3.
Has anybody else had any similar problems?
Workstation OS: Server 2008
Software: Visual Studio 2008
Make sure you add the service in the custom actions otherwise the service will not be registered. Other than that, are you having any compilation errors?
I recommend against using the VS install project. Use Wix instead, it's easier than you think.
I did find this - http://msdn.microsoft.com/en-us/library/447a3y7x(VS.71).aspx
Ive made the changes to the Solution and now waiting for it to be tested on a Server 2008 machine - Im still on XP SP3.
I was getting this error when running commandline devenv.exe to build a .vdproj file (in Nant scripts). The problem was I was not also building the dependant project first, so once that was done it worked fine.
It had nothing to do with the configuration of the InstallerClass property after all.

Resources