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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:08:52+00:00 2026-06-07T08:08:52+00:00

I have a web application that began using WebForms. We’ve been steadily converting each

  • 0

I have a web application that began using WebForms. We’ve been steadily converting each page to use ASP.NET MVC instead, and we’re finally just about done removing all WebForms dependencies entirely.

Are there any dependencies that get baked into a WebForms project, but which can be removed if we’re only using MVC pages?

(I’ve found a post talking about how to remove the WebForms view engine, but I think that’s talking about the MVC .ascx-based view renderers, which we haven’t entirely eliminated yet.)

  • 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-07T08:08:54+00:00Added an answer on June 7, 2026 at 8:08 am

    How to remove WebForms dependencies from an MVC application

    It’s simple, 3 steps:

    1. Ctrl+F for System.Web.UI in your entire solution. If you have more than 0 occurrences found you still have legacy code. Remove them. As a consequence of this removal your project won’t probably compile => fix the compile time errors. Fixing the compile time errors doesn’t mean anything yet. At runtime you might still hit glitches with some server side controls left in your views.

    2. Ctrl+F for runat="server" in your entire solution. If you have more than 0 occurrences found in a place other than a content placeholders you still have legacy code.

    3. Ctrl+F for HttpContext.Current in your entire solution. If you have more than 0 occurrences found you still have legacy code.

    But the correct way to port a classic ASP.NET application to ASP.NET MVC is not by doing an in-place replacement. You will most certainly forget stuff. The correct approach is by starting from scratch. By using the Create New ASP.NET MVC 3 application wizard in Visual Studio and progressively migrating the code and views.

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

Sidebar

Related Questions

I have a Web Application that use Hibernate 3.0. When I restart my database
I recently have began using prepared statements again in a web application, and I
We have a web application that runs on IIS using .NET 2.0 developed and
I have a web service application that I deployed successfully on Apache Tomcat using
We have an ASP.NET web forms application that is probably vulnerable to Cross-site request
I have a web application that makes use of a Spring TaskExecutor. The task
I have a location using our ASP.NET 4.0 web application which was running fine
I am working on an ASP.NET WebForms application, and I have been asked to
I have a web application that allows users to enter search criteria and the
I have a web application that will be used on iPhones, and want to

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.