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
  https://test/info/Agreement/"

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;

        report.Export();
        report.Close();

Please assist.
SirdotsAsked:
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 ...
0
 
mlmccCommented:
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.

mlmcc
0
 
masterpassCommented:
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
0
 
SirdotsAuthor Commented:
This is in Dev. Thanks.
0
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.