Я пытаюсь сохранить файл pdf на сервере.Локально на моем компьютере, он работал нормально, но когда я пытаюсь записать на сервер, появляется сообщение «Форматы URI не поддерживаются».
string filename = DateTime.Now.ToString("yyyy-M-dd--HH-mm-ss");
string reportFilesPath ="http://xxx.xx.xx.xx:xxxx/Files/";
streamBytes = rv.LocalReport.Render("PDF", null, out mimeType, out encoding, out filenameExtension, out streamids, out warnings);
File.WriteAllBytes(Path.Combine(reportFilesPath, filename + "test.pdf"), streamBytes);
ошибка произошла при попытке выполнить эту строку
File.WriteAllBytes(Path.Combine(reportFilesPath, filename + "test.pdf"), streamBytes);
обратите внимание, что когда я беру следующий путь http://xxx.xx.xx.xx:xxxx/Files/filename.pdf
и вставляю его в Googleя вижу это.