Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, January 17, 2014 9:37 PM
I just installed Visual Studio 2012 - after opening a project originally created in VS2010 in 2012 I now find that when I try to run the project on my local machine (Windows 7) I get the below error message:
Secure Connection Failed
An error occurred during a connection to localhost:XXXXX.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
The code still builds and if I publish it to my test server it works fine so it seems the code is still fine. Also, I checked my certificate and it's good (I can still run other projects that I haven't opened in VS2012 yet with no problem). Is there a setting somewhere that needs to be changed after a project is converted to VS2012?
All replies (2)
Monday, January 20, 2014 5:51 PM ✅Answered
Thanks for the response! I figured out what it was - I have the following check in my code:
if (!CookieUtility.isSecureURL)
{
Response.Redirect(Request.Url.ToString().Replace("http://", "https://"), false);
}
For some reason this wasn't an issue before on my local machine but perhaps VS2012 has additional checks in place to catch this and when it was redirecting to https and couldn't find the certificate it caused an error. Adding a check to verify whether I'm running the code on localhost fixed the issue.
Monday, January 20, 2014 12:11 PM
Hi zachfree,
Thank you for posting in the MSDN forum.
You are updating a web app, am I right?
Since this forum is to discuss the VS IDE issue, to make sure that it is not the VS2012:
- Create a simple web app in VS2010, and then open it in VS2012. Check it again.
- If you have other VS2012 Environment, please run it in other machine, if the same app worked well in other VS2012, so we could make sure that it would be related to your VS Environment.
But if it has the same issue, or a simple web app works well in your VS, I doubt that it would be related to this specific project.
Secure Connection Failed
An error occurred during a connection to localhost:XXXXX.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
Not the real web expert, but if possible, I suggest you post this issue to the ASP.net forum: http://forums.asp.net like this thread “SSL PRoblem”, I think you could get better response from the ASP.net expert. In addition, if possible, maybe you could share a simple sample in your new thread.
If I have misunderstood anything, please make free feel to let me know.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.