Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Thu May 10, 2018 9:41 am

Hi!

I'm using XLS Spire to generate an excel in my backend, but when I upload the Spire version at my https website, I found the connection secure error.
I generate the excel with "SaveToResponse" and "SaveToFile" but it doesn't matters, I found the same error...
Is there some problem with https??

Thanks for your attention,
Sergio

sergiogm
 
Posts: 5
Joined: Wed Apr 25, 2018 11:29 am

Thu May 10, 2018 10:07 am

Hello,

Thanks for your inquiry.
It is not related to the https.
Could you tell us what web browser you were using?
In addition, please try to use our product to save the document to stream first. And then deal with the stream using the "HttpWebResponse" in System.Net to see if the issue still occurs.

Code: Select all
wb.SaveToStream(fs);
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;
filename=filename.xls");
Response.AddHeader("Content-Length", fs.Length.ToString());         
fs.CopyTo(Response.OutputStream);
Response.OutputStream.Flush();
Response.OutputStream.Close();


Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri May 11, 2018 11:22 am

Hello,

I try your solution, but i found the samen problem, "Connection secure failed", in Mozilla Firefox 59.0.3.
I test my old code using each one of the posible solutions, saving in a file, as the iostream and as Response, every one worked in my dev website (http) but it explotes in my real website (https), thats why i think the problem maybe be there.

Thanks for all,
Sergio

sergiogm
 
Posts: 5
Joined: Wed Apr 25, 2018 11:29 am

Mon May 14, 2018 6:01 am

Hello Sergio,

Thanks for your feedback.
If you still get the same result, the issue should be related to your web browser rather than our product.
Below is an article for troubleshooting the problem, hope it could help. Or you could change a web browser as an alternative.
https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.XLS