Canadian Batch Process Application Setup steps
- HIREN.AMIN
Create a .net Console Application
Add WSE3.0 via Nuget
Create WS client stub via “Add Service Reference”
Run mmc.exe and add certificates snap-in to import certificates/key-pair
Add certificate snap-in, and make sure “Computer account” is chosen.
Import mpdis.cer(attached) to “Trusted People”
Path : \\Tc4s0a\groups\AARA\AARAD\Software Library\Developer Tools\DotNet DAPLS WS Client
Import dapls.12(attached) to “Personal”
Path : \\Tc4s0a\groups\AARA\AARAD\Software Library\Developer Tools\DotNet DAPLS WS Client
You will be asked for the password, enter dapls
Install winhttpcertcfg from https://www.microsoft.com/en-ca/download/details.aspx?id=19801
Run the following command to allow the user who runs the application to access the installed private key( installed at step c)
"C:\Program Files (x86)\Windows Resource Kits\Tools"\winhttpcertcfg.exe -g -c LOCAL_MACHINE\My -s dapls -a "MachineName\\Username"
(Make sure to change the username in RED to your environment)
Update the Build Output Path:
Open your project properties.
Navigate to the Build section.
Set the Output Path to your desired directory where the executable will be saved
Build the Project:
Compile your project by selecting the Build option from the menu.
Ensure there are no errors in the build process.
Copy Files to Server:
Locate the output folder specified in your build settings.
Copy the generated executable file and any necessary dependencies from this folder.
Navigate to the server where you want to deploy the executable.
Replace the existing executable file on the server with the new one you just copied.
Verify the Deployment:
Test the executable on the server to ensure it runs correctly