So i was trying something and enabled SSL on my mvc5 project. Now i want to disable it, but whenever i run my project, the web site cannot be found (the url is different from the ssl one ofc). Any idea how to turn ssl back off ?
-
does the answer here help? stackoverflow.com/questions/18338368/…user4103496– user41034962015-02-03 15:16:58 +00:00Commented Feb 3, 2015 at 15:16
-
no :S because i only have the filters.Add(new HandleErrorAttribute()); attribute on that method :SPedro Costa– Pedro Costa2015-02-03 15:18:15 +00:00Commented Feb 3, 2015 at 15:18
-
create a filter attribute and do the opposite of this weblogs.asp.net/dwahlin/…Zaki– Zaki2015-02-03 16:42:45 +00:00Commented Feb 3, 2015 at 16:42
Add a comment
|
6 Answers
All of the above sound plausible, and none of them works for me! I have no strange filters, no RequireHttps decorations and no https ports. So my current only fix is to change the project property:
I can then happily debug and browse my test website. But if I exit Visual Studio and go back in, I have to reset the SSL enabled property again!
So this is only half an answer, but thought it might help someone ...
2 Comments
Adel Mourad
I also had to use Google chrome instead of Firefox ...
General Grievance
May also have to change the project URL, as mentioned here.
For me the solution was to remove
[RequireHttps]
from the index method inside the home controller
3 Comments
ganders
Thanks, this answer led me to do a string search, which ultimately made me find this code that was actually causing my issue:
filters.Add(new RequireHttpsUnlessLocalAttribute()); thanks for your answer!LKC
Saved my time, thanks, I forgot to remove [RequireHttps] after disabling SSL
midohioboarder
I had enabled SSL on my web project in VS 2017. Then changed the property back to false. It added the RequireHttps attribute to the home controller but did not remove it.


