Dúvida, estou usando a versão errada? Na imagem mostra o Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274
No meu servidor de hospedagem informa isso:
ASP, Asp.NET 3.5, Asp.NET 4.0, Asp.NET 4.5 Extensões Ajax para Asp.NET HTML, CSS, XML e JavaScript MVC3, MVC4, MVC5 Painel de Controle Plesk em português Suporte a Flash, WML e WAP
Após subir um site feito em asp.net mvc, eu tenho uma mensagem de erro: 403 - Forbidden: Access is denied.
Então eu fiz um site com apenas 1 controller e gerei a view, adicionei no web.config :
Para me mostra o erro e subir os arquivos para o diretório principal httpdocs, agora me gera uma mensagem de erro:
No route esta assim:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace WebSiteTeste
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
}
}
}
no Controller:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebSiteTeste.Controllers
{
public class DefaultController : Controller
{
// GET: Default
public ActionResult Index()
{
return View();
}
}
}
no index:
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
No web config:
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<customErrors mode="Off"/>
<httpRuntime targetFramework="4.5"/>
</system.web>
403 - Forbidden: Access is denied.
. Poderia especificar melhor seu problema?