Visual Studio 2013: IIS express, ssl disable but ssl is requiered

1.5k views Asked by At

I've recently updated my version of Visual Studio from 2010 to 2013. I have a web project which i can launch with no problem on 2010.

However every time i try to launch the same project on 2013, i get:

Error HTTP 403.4 - Forbidden

In 2010 version, I use visual studio development server for debug. However on 2013, there is no such option, so I have to utilize IIS Express. Despite of the project is not configured to use SSL, it throws me the previously exception.

My solution properties

Do you know if it's necessary to do further configurations?

2

There are 2 answers

2
Peter Hahndorf On BEST ANSWER

In your web.config file or the ApplicationHost.config of IIS Express search for

<access sslFlags="Ssl" />

and remove the whole node.

0
ተስፋ ሚካኤል ብዙዓለም On
using System.Web;
using System.Web.Mvc;

namespace YourProjectName
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
            filters.Add(new RequireHttpsAttribute());


        }
    }
}

remove filters.Add(new RequireHttpsAttribute()); from app_start folder in FilterConfig > RegisterGlobalFilter >