Deploy C#.Net Console Application - c#-4.0

I am trying to deploy my C#.Net console application.
Methods i tried.
Build the application
go to bin directory
in debug directory copy the files and move to compressed folder
extract it in different machine and run .exe file
Problem i am having is:
I have used MSXML2 assembly in my project.
I guess this assembly is not copied to bin directory and the machine I am running .exe file doesn't not having this assembly in it.
when i run the .exe it get below error.
System.IO.FileNotFoundException: The system cannot locate the resource specified.
at MSXML2.IXMLHTTPRequest.send(object varbody
at projectname.Program.Main(String[] args))
how can i make sure this assembly is properly loaded to my deployed folder.
thanks for looking in to my question.
applying dotnetengineer suggession
set Copy Local to TRUE
New issue:
Could not load file or assembly 'Interop.MSXML2, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Click on and highlight the reference to MSXML2 in the Soultion Explorer. In the Properties pane, make sure "Copy Local" is set to "True".

Related

Cannot get assembly name for "obj\iPhone\Debug\MyApp.iOS.exe". Could not load file or assembly The system cannot find the file specified

Cannot get assembly name for "obj\iPhone\Debug\MyApp.iOS.exe". Could not load file or assembly 'MyApp.iOS.exe' or one of its dependencies. The system cannot find the file specified. Fail to build IOS app, exe is missing in directory
we have already cleaned and rebuild multiple times...
We would like the build to succeed and launch the app on the ios device

pdfsharp in visual c++

I am new to visual c++. I am trying to save a label as pdf file in visual c++. I linked pdfsharp dll by add resources from properties. When i run the .exe file in my system, it doesnt give any error. But when the .exe is run in other systems it gives error telling
"could not load file or assembly 'pdfSharp, version=1.31.1789.0, culture = neutral, publicKeytoken= f94615aa0424f9eb' or one of its dependencies"
But when i add the pdfsharp in the folder where this .exe stays, it doesnt give any error. What could be the problem. What should i do to run without adding pdf dll in the .exe folder.
An EXE that links to PDFsharp.dll cannot run without PDFsharp.dll. You can add PDFsharp.dll to a directory listed in the PATH environment variable if you do not want to have it in the EXE folder.

trouble creating an axis 2 .aar file: xml/services not found error

I am trying to create an aar file using OSX 10.7.5 (as a part of this tutorial). To generate the .aar, I navigate to the directory holding my webservice in my eclipse workspace and type
jar cvf FirstWebService.aar ./*
This is the command that Apache says to use to generate the aar in their Code Listing 9 from the apache axis 2 documentation.
The command creates an.aar -- but something is wrong with the process that I am using to create the .aar because when I go to load the .aar file into tomcat's /webapps I get an .xml/services not found error.
I am not sure what to do to fix this error. If I search my computer's file system for the services.xml file, I can find it in /path to eclipse workspace/workspace/MyFirstWebService/WebContent/WEB-INF/services/FirstWebService/META-INF
but I am not sure if this file is supposed to be rolled in to the .aar file somehow or if I can just manually plunk this file somewhere into the apache directory structure to get the thing to run.
Note: I do not think I am manually unzipping or unpacking the aar like in this question. Axis2 web service error: services.xml not found I am just running the command listed above from the apache documentation.
Here is the .aar file
note I am using all of the same versions of the software as in the tutorial -- but I am using OSX 10.7.5 where they use windows in the tutorial. Accordingly, I have changed the make-aar command for windows shown in the tutorial (jar cvf FirstWebService.aar com META-INF) into the one shown above. If I just try to run the command from the tutorial jar cvf FirstWebService.aar com META-INF I get the same xml/services not found error. It gives this output in the terminal...
com: no such file or directory
META-INF: no such file or directory
added manifest
I found the issue. When you type the command to create the aar file you have to be in the directory .../EclipseWorkspace/EclipseProjectName/WebContent/WEB-INF/services. This directory contains /META-INF/services.xml. The process that makes the .aar file must be looking in this folder.

Including DLL's In VC++(VS2010) Project Output

Disclaimer: Am a C# developer trying to understand a few C++ fundamentals
Have created a command line project which has the .lib of a DLL file linked under Linker > Input > Additional dependencies, and also has the location of the header files specified under C/C++ > General > Additional Include Directories. Ran a build and all compiled okay, with the .exe being built in the Debug/Release dir.
Problem is I also expected the .dll file the project depends on to be there (just like when you add a reference in a .Net project) - but it isn't. When launching the .exe it complains that it can't find the DLL. Fair enough, but why didn't the VC++ put the DLL there if it knows it's required?
And is there a "best practice" to ensuring the dependent DLL files are in the output dir, other than manually copying them there? I have a project that will require use of some third-party libraries, and I was hoping the IDE would help me manage them...
Big thanks for any guidance given!
If you create solution which contains exe and dll, all output files are created in $(SolutionDir) Debug or Release subdirectories, and exe runs successfully. Otherwise, you have one of the following options:
Copy Dll in Post-build step to directory where it is available for loading (usually .exe directory)
Add Dll directory to PATH.

got error Unable to find source file to my Windows-CE project

i try to build cab from my windows-CE project
and i got this error:
Error 5 Unable to find source file 'D:\MySetup_Setup\System.Data.SqlServerCe.DLL' for assembly 'System.Data.SqlServerCe.DLL', located in '%CE1%\MySetup' D:\MySetup_Setup.vddproj
all the dll are in place and the project works excellent
what can be the problem ?
thanks in advance
We'd have to see the source INF file that CABWIZ is using generate the CAB. My guess is that system.data.sqlserverce.dll is not in the d:\mysetup_setup folder on the development machine.

Resources