Qamar Aftab
Qamar Aftab

Reputation: 62

Removing SSL From an ASP.NET MVC project

How can I remove SSL from my asp.net mvc site in Visual Studio?

When I change SSL from True to False it shows this error:

SSL removal error

Upvotes: 3

Views: 5789

Answers (2)

ali-myousefi
ali-myousefi

Reputation: 872

  1. Copy the URL.
  2. In Solution Explorer, right click the project name and select Properties.
  3. Select the Web tab, and then paste the URL into the Project Url box. Save the file (Ctl+S).
  4. now change SSL from True to False.

Upvotes: 2

Bernardt
Bernardt

Reputation: 65

Try this. Have a look in your FilterConfig.cs file and remove the line that says. filters.Add(new RequireHttpsAttribute()); Line.

public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
    filters.Add(new HandleErrorAttribute());
    filters.Add(new System.Web.Mvc.AuthorizeAttribute());
    filters.Add(new RequireHttpsAttribute()); 
}

Upvotes: 0

Related Questions