Hi,
I have developed a web site where I use this function:
Dim report1 As New Report1()
Dim mimType As String = String.Empty
Dim extension As String = String.Empty
Dim encoding As Encoding = Nothing
Dim buffer_it As Byte() = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", report1, Nothing, mimType, extension, encoding)
Dim fs_it As New FileStream(strAttachment_pdf_path & id_ordineRif & "_1_ITALIANO.pdf", FileMode.Create)
fs_it.Write(buffer_it, 0, buffer_it.Length)
fs_it.Flush()
fs_it.Close()
to create a PDF file from a telerik report at runtime.
On the development machine it works well.
When I deploy the web site on the remote server, I have this permission error:
"Access to the path 'c:\windows\system32\inetsrv\1159_MauroCattaneo_1_ITALIANO.pdf' is denied"
I understand that telerik code use this folder to create a temporary file, am I wrong?
I ask my provider to give my website permission to this folder, but I don't know if they agree...
Is there another way for me?
Thanks in advance...
Best Regards
Mauro Cattaneo - Italy
I have developed a web site where I use this function:
Dim report1 As New Report1()
Dim mimType As String = String.Empty
Dim extension As String = String.Empty
Dim encoding As Encoding = Nothing
Dim buffer_it As Byte() = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", report1, Nothing, mimType, extension, encoding)
Dim fs_it As New FileStream(strAttachment_pdf_path & id_ordineRif & "_1_ITALIANO.pdf", FileMode.Create)
fs_it.Write(buffer_it, 0, buffer_it.Length)
fs_it.Flush()
fs_it.Close()
to create a PDF file from a telerik report at runtime.
On the development machine it works well.
When I deploy the web site on the remote server, I have this permission error:
"Access to the path 'c:\windows\system32\inetsrv\1159_MauroCattaneo_1_ITALIANO.pdf' is denied"
I understand that telerik code use this folder to create a temporary file, am I wrong?
I ask my provider to give my website permission to this folder, but I don't know if they agree...
Is there another way for me?
Thanks in advance...
Best Regards
Mauro Cattaneo - Italy