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

Last Reply 11 days ago By dharmendr

Posted 11 days ago


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

Posted 11 days 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")