Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8436891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:18:14+00:00 2026-06-10T07:18:14+00:00

I have just turned my mvc3 project into a mvc4 project. I made a

  • 0

I have just turned my mvc3 project into a mvc4 project. I made a new project, did not modify any config files, moved my controllers, views and models. I then imported mysql to the project.

Everything works fine but I got a problem with the whole authorization process.

If I add that in my view:

 @if (User.Identity.IsAuthenticated)
        {
            // Something
        }
        else
        {
             // Another Thing
        }

It will always trigger something. It will think that I am authenticated even if I am not (I have checked my cookies and I have none).

And of course I can reach all of my controllers which should be protected with [Authorize].

Any idea how to fix this issue?

Thank you very much for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:18:15+00:00Added an answer on June 10, 2026 at 7:18 am

    I have fixed my problem.

    The problem comes from the fact that I created an empty project. It seems that no configuration at all has been made.

    You have to make a default project in order to have the correct setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we have just started using a git account of our Django website project so
I have just started implementing ISet 's instead of IList 's in my project
I have just started to learn how to code iOS apps. I have made
I just installed trac for this project I'm working on, since it's turned out
I'm pretty new to J2ME development scene. And for that matter, have just recently
I have a WHM server running Centos 4 (yes I know it just turned
I have just turned on page compression on a table (SQL 2008 Ent) using
I have a set of macros that I have turned into an add-in in
Near the end of my program I have turned my user input into a
I have just created this table: create table dbo.OrderTypes ( ID smallint primary key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.