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 4602190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:56:43+00:00 2026-05-21T23:56:43+00:00

I have a MVC 2 project which I am trying to upgrade to MVC

  • 0

I have a MVC 2 project which I am trying to upgrade to MVC 3 but using tool I got the error that SLN file are invalid even it’s fine and work for me.

so I Upgrade them manually, It means

In sln file change the keys and change the config file in views and in main directory and remove the MVC 2 dll and add the MVC 3 dll.

now my project convert to MVC 3 but a little problem I fond that when I am trying to add a views I am unable to find the option, It’s only show me aspx in the New Window. I need MVC 3 razor based views & layout.

how I can get razor in the menu (add new View option)

  • 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-05-21T23:56:43+00:00Added an answer on May 21, 2026 at 11:56 pm

    You have to do a bit more with the project file. check out this post, similar problem: ASP.NET MVC3, Enable Razor


    to paraphrase:

    I fixed this by changing the ProjectTypeGuids element in the .csproj file to the following:

    <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    

    I can now choose either Razor or ASPX as my view engine.


    see if that fixes your issue.

    Personally I’d create a new MVC3 project and copy over the controllers and views and work on them as I need to.

    Remember though if you create a new razor view you will need to remove your existing aspx or ascx view as there are checked for first before cshtml (razor).

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

Sidebar

Related Questions

I'm trying to work on project using a proprietary mvc and we have a
Im currently trying to refactor a project(asp.net mvc) that doesnt have any separation at
I have a master page in my asp.net MVC project, which has code like
I have a question I have a project asp.net mvc which is developed in
I have an MVC project that I would like to write in .NET 4.0
Facts I have an mvc project. I am using jquery. The problem $('#ModalData').empty(); is
I'm tryingot get started with IoC, I have an MVC project in which is
In a MVC project am trying to create a view which has the Title
I'm using Ninject in an MVC project and am trying to implement Domain Events
I am using T4MVC in our ASP.NET MVC project. I have a statement like

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.