Hi,
I have an app. that works somewhat. It is designed to go into the mailbox and download the attachments to a folder. Sometimes it works no problem, others it will give 404 error. While debugging I can see that it goes into the mailbox and can see the attachments but then will give 404 error Not Found. That makes no sense to me, how can something not be found when it is right there in the code.
I have attached my code. It usually errors on this line.
What am I doing wrong?
I have an app. that works somewhat. It is designed to go into the mailbox and download the attachments to a folder. Sometimes it works no problem, others it will give 404 error. While debugging I can see that it goes into the mailbox and can see the attachments but then will give 404 error Not Found. That makes no sense to me, how can something not be found when it is right there in the code.
I have attached my code. It usually errors on this line.
Code:
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();