[Solved] System.IO.FileNotFoundException: Could not find file C:Program Files (x86)IIS Express

Last Reply 4 months ago By dharmendr

Posted 4 months ago

Hello,

I try your codes. It shows the error System.IO.FileNotFoundException: 'Could not find file 'C:\Program Files (x86)\IIS Express\1.  W-4 IRS Form'.' . I have no ideas how to fix it. Please help. Thank you

You are viewing reply posted by: dharmendr 4 months ago.
Posted 4 months ago

Hi KatieNgoc,

@"~/W-4 IRS Form/test.pdf"

If you are using like above the use Server.MapPath like below.

Server.MapPath(@"~/W-4 IRS Form/test.pdf")