I have a very strange occurrence in an application I am writing to transmit an XML file to a customer's https server. I am using the httpwebrequest with x509Certificates to authenticate to their system and post these files to them. Here's where it gets strange.
(Stage 1 - Manual Submittal of Files)
I have been successful in sending these files to their system and continue to be successful when I directly call the sub procedure used for sending the files from a button on a form. This has been validated and the customer has valdiated that they are receiving the files ok under this circumstance.
(Stage 2 - Automatic Submittal of Files)
We are trying to automate the process which includes monitoring a folder for new files and when files are found, calling a subprocedure that loops through all of the files in the folder and for each file, then calls the subroutine to transmit the individual file to the customer. This is whhere the system errors out, returning a 403 error stating that "The remote server returned an error: (403) Forbidden."
Any help would be greatly appreciated.
(Stage 1 - Manual Submittal of Files)
I have been successful in sending these files to their system and continue to be successful when I directly call the sub procedure used for sending the files from a button on a form. This has been validated and the customer has valdiated that they are receiving the files ok under this circumstance.
(Stage 2 - Automatic Submittal of Files)
We are trying to automate the process which includes monitoring a folder for new files and when files are found, calling a subprocedure that loops through all of the files in the folder and for each file, then calls the subroutine to transmit the individual file to the customer. This is whhere the system errors out, returning a 403 error stating that "The remote server returned an error: (403) Forbidden."
Any help would be greatly appreciated.