I need to create a stand alone EXE of a solution. This solution contains two projects i.e:
- A-project (set up as start)
B-project (A web services)
B-project uses a external
DLLwhich is reside on sameB-projectfolder. Above solution runs perfectly after building it. Now i want to create a stand aloneEXE. So that i can sell my product for commercial use (in my school).
To do this i have performed following points:
- Add a new project(
SETUP Project) in the solution withtestname. - Now add
project outputand chooseA-projectfrom theprojectdrop down. - Then i do the same for the
B-projecti.e. Addproject outputand chooseB-projectfrom theprojectdrop down. - Check the
.net framework 4dependencies which was fine. - Build it.
- Install it.
I went to the my program files directory and run test.exe with run as administrator, and try to open the web services URL.
I got to know that web services runs perfectly but when i enter the url it returns me Request error which happens when the method written in instance class didn't execute perfectly. In my project the method written in Instance classcalled the externall dll.
How should i link that dll with my EXE. so that it runs perfectly fine?
Should i change the path in code?