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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:23:18+00:00 2026-05-13T20:23:18+00:00

I recently migrating my ASP.Net MVC 1 application from VS.Net 2008 / C# 3.5

  • 0

I recently migrating my ASP.Net MVC 1 application from VS.Net 2008 / C# 3.5 to VS.NET 2010 / C# 4.0.

I massively used a builder to get URL strings from the strongly typed calls.
It looks like this :

// sample call :
string toSamplePage = Url.To<SampleController>(c => c.Page(parameter1, parameter2));

the code is added as an extension to the default UrlHelper :

public static string To<Tcontroller>(UrlHelper helper, Expression<Action<Tcontroller>> action) where Tcontroller : Controller
{
    // based on Microsoft.Web.Mvc.dll LinkBuilder
    return LinkBuilder.BuildUrlFromExpression<Tcontroller>(helper.RequestContext, helper.RouteCollection, action);
}

The only problem of this, is the reference to Microsoft.Web.Mvc dll, but the gain in readability was worth it.

Problem : it does not work anymore, return (null) whatever the parameters.

Questions :

  1. is there a better way now to build links from an expression ?
    (yes I tried to google it without success)

  2. is there a trick to have the former LinkBuilder.BuildUrlFromExpression works ?
    I tried to recompile it into C# 4.0, but the problem is that it implies working on my own compilated version of System.Web.Mvc which is not an option.

I’m currently trying to migrate to MVC 2 but I still have issues…
Waiting for your suggestions…

  • 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-13T20:23:19+00:00Added an answer on May 13, 2026 at 8:23 pm

    Oki, I found the problem.

    I had assemblies versioning problems.
    After rebuilding Microsoft.Web.Mvc + unistalling MVC 1 + refreshing all references it finally worked again.

    It sucks because I still need MVC 1 for others projects, but at least my main problem has been solved.

    To developpers new to the MVC framework : consider starting directly with MVC 2 / VS.Net 2010 / C# 4.0

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

Sidebar

Related Questions

Recently i am working on migrating the ASP.NET Web application to MVC. I am
I have a asp.net mvc site that references a couple of libraries. Recently I
Recently I have been investigating the possibilities of caching in ASP.NET. I rolled my
I've recently done a migration from a really old version of some application to
I am considering migrating from eclipse to vim for c++ development- I've recently rediscovered
Using Visual Studio 2010 SP1, SQL server 2008: Motherboard recently failed and I migrated
Recently, I've been dealing with an error with accessing MAPI via the .NET framework
Recently I ran into this error in my web application: java.lang.OutOfMemoryError: PermGen space It's
We recently installed Team Foundation Server 2008 and we are using it for both
Recently I had to type up some documentation on .net data providers and ado.net.

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.