Unable to save pdf file to virtual directory using crystal report on an asp.net page

I am creating a pdf file using crystal report in my aspx page.  I want to be able to save the generated pdf to the path below but I keep getting an error message saying The given path format is not supported

if I do this
 string sDesPath = this.MapPath("./store/" + fileName + ".pdf");
It is okay but I want the https path.

Here is my code below

       string sDesPath = this.MapPath("https://test/info/Agreement/" + fileName + ".pdf");      
        dFileDOpts.DiskFileName = sDesPath;
        ExportOptions eOpts = new ExportOptions();
        eOpts = report.ExportOptions;
        eOpts.ExportDestinationType = ExportDestinationType.DiskFile;
        eOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
        eOpts.DestinationOptions = dFileDOpts;


Please assist.
Who is Participating?
masterpassConnect With a Mentor Commented:
Like I said .. In DEV you cannot have HTTPS binding... just try to host it in a sample server and try ...
I am not a security expert but I suspect saving to a secure location requires the application to be a trusted application.  Check with your network security people on how to get the application certified as trusted.

Is this site LIVE or in DEV machine....

If it is in DEV machine the HTTPS CANNOT TAKE effect ... once you go live there should be any problems
SirdotsAuthor Commented:
This is in Dev. Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.