I am trying to save the pdf file to the server. Locally on my computer, its worked fine but when I try to write to the server an error says "URI formats are not supported. " appear.
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);
the error happened when trying to execute this line
File.WriteAllBytes(Path.Combine(reportFilesPath, filename + "test.pdf"), streamBytes);
please note that when i take the following path http://xxx.xx.xx.xx:xxxx/Files/filename.pdf
and past it to google i can see it.