Problem running Asp.net mvc project in visual studio 2012

Asked

Viewed 86 times

0

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

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>    
}
  • Go see the View he displays is blank :]

  • @Paulohdsousa is not no. : S

  • You can post a print of the view that opens and action.

  • @Paulohdsousa I’ll put the code.

  • You could put your project on Github and provide a link so we can examine it?

  • Wow rs, how do I do it @Gypsy ?

  • @Andreeh Get in here and I’ll explain: http://chat.stackexchange.com/rooms/25342/c-asp-net-asp-net-mvc-entity-framework-etc

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.