Problem when executing asp.net mvc project in visual studio 2012

0

I have a project in asp.net mvc 5 that I needed to pass to mvc 4, so I created another asp.net mvc 4 project, copied all the folders from the other project, references such and gave a build and does not return any errors, but running the project opens all blank. How to fix this error?

My View:

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <h3>Seja bem-vindo. Informe seu login e senha do portal. </h3>
            <div id="loginPrincipal">
                @if (HttpContext.Current.User.Identity.IsAuthenticated)
                {
                   <text>
                        Seja bem vindo @HttpContext.Current.User.Identity.Name <a href="/Conta/LogOff">Sair</a>
                   </text>
                }
                else{
                    {
                        using (Html.BeginForm()){
                            <text>
                                <label>Login: @Html.TextBox("login")</label> 
                                <label>Senha: @Html.Password("senha")</label>
                                <label><input type="submit" value="Entrar" /></label>
                            </text>
                          }
                    }
                }
                <p class="msgErro">
                    @ViewBag.Message
                </p>
            </div>
        </div>
    </section>    
}
    
asked by anonymous 13.07.2015 / 15:35

0 answers