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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:18:06+00:00 2026-05-14T23:18:06+00:00

I upgraded to VS 2010 Beta2. It upgraded my slns and csprojs when I

  • 0

I upgraded to VS 2010 Beta2. It upgraded my slns and csprojs when I opened them.
When it asked me, I opted to stay in .net 3.5 to keep compatability

NOTE: the original project was build with MVC2 Preview2 – the exact same version as what comes with VS2010

However, when I try to build my Web project including the views, I run into some compiler errors.

I have a Pager.ascx that does some paging magic using RouteValueDictionary, but I get this error at build time.

Error 50 The type ‘System.Web.Routing.RouteValueDictionary’ exists in both ‘c:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.dll’ and ‘c:\Windows\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll’ c:\Projects\Phase2\Source\Kk.Web\Views\Shared\Pager.ascx 8 Kk.Web

MvcBuildViews is true inside the project file.

How do I fix this build error?

I somehow need to tell the ASPX compiler to be v3.5 (or v2.0, not sure). But I don’t know how to do this.

Any help is greatly appreciated.

CV

  • 1 1 Answer
  • 2 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-14T23:18:07+00:00Added an answer on May 14, 2026 at 11:18 pm

    I revisited this problem and thanks to Maslow, I was able to google better and find this Microsoft Connect bug.

    http://connect.microsoft.com/VisualStudio/feedback/details/557798/visual-studio-2010-compile-asp-net-3-5-website-using-net4s-aspnet-compiler-exe

    The work around suggested on that issue works perfectly.

    The solution is listed here, http://forums.asp.net/p/1551418/3824696.aspx

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

Sidebar

Related Questions

I have upgraded projects to .net framework 4.0 (VS 2010) and I am getting
We upgraded to VS 2010, but we haven't yet upgraded to .NET 4.0. All
Just recently upgraded to Visual Studio 2010 SP1 and ASP.NET MVC3, but the only
I recently moved to Visual Studio 2010 and upgraded my website to work with
I upgraded to Visual Studio 2010 RC, and I remember filling one big form
We have recently upgraded from Delphi 2009 to 2010. One of the things in
I've just upgraded to Excel 2010 (it was free as I bought 2009 recently).
I get this FormatException after i upgraded to VS 2010. Not anything really special.
I upgraded to MS VC++ 2010 (Visual Studio Professional) and boost 1.45.0 but I
Immediately after we upgraded to visual studio 2010 and the 4.0 framework our trunk

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.