Page 1 of 1

Could not find part of the path?

Posted: Thu Aug 27, 2020 9:50 pm
by michaelt
This is one of those things that works fine on my machine but not on the development web server.

If I copy the file path and paste it into Windows Explorer I find the file fine.

Everyone has read and write permissions on the folder.

Any ideas on what I'm doing wrong?

thank you!

Re: Could not find part of the path?

Posted: Fri Aug 28, 2020 10:06 am
by Fabio
Hello Michael,

Could you try this one:

docuVieware.LoadFromStream(new FileStream(ViewBag.Document, FileMode.Open, FileAccess.Read), true, Path.GetFileName(ViewBag.Document))

I think the issue come from the FileName.

Tell me if it worked!

Fabio de Rose
Solution Engineer