Could not find part of the path?

Discussions about DocuVieware integration in GdPicture.NET.
Post Reply
michaelt
Posts: 5
Joined: Wed Aug 26, 2020 5:13 pm

Could not find part of the path?

Post by michaelt » Thu Aug 27, 2020 9:50 pm

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!
Attachments
6625b.png

User avatar
Fabio
Posts: 39
Joined: Thu Aug 27, 2020 9:57 am

Re: Could not find part of the path?

Post by Fabio » Fri Aug 28, 2020 10:06 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests