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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:02:19+00:00 2026-05-30T07:02:19+00:00

I migrated my ASP.NET project from 3.5 to 4.0 (VS2008 to VS2010) and when

  • 0

I migrated my ASP.NET project from 3.5 to 4.0 (VS2008 to VS2010) and when I tried publishing the site I encountered this error:

The type ‘TYPE’ exists in both
‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files…\App_Web_1z57x8dg.dll’ and
‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files…\App_Web_ofaxwney.dll’

However, when I went back to my .NET 3.5/VS2008 project it was publishable without a problem. I found a few SO questions with similar issues, this in particular was very informative. I did the batch="false" option but was still encountered the problem.

There had to be an issue with circular reference of sorts. Going back to the .NET 4.0 project I began looking a lot more closely at the errors and found many things like this:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ViewPresentationTabControl.ascx.cs" Inherits="Common_UserControls_PresentationTabControl" %>

If you look closely, the Inherits tag is pointing to the wrong control. This was a victim of copy and paste code (courtesy of offshore contractor we inherited this project from).

I went through all the errors and fixed the obvious mistake and the project was publishable in .NET 4.0/VS2010.

The purpose of this long drawn out post is why would 3.5 allow that to happen and not 4.0? It seems something like that would cause a major issue in any version, but it obviously didn’t.

Any information would be greatly appreciated.

  • 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-30T07:02:21+00:00Added an answer on May 30, 2026 at 7:02 am
    iisreset 
    

    and then delete everything from

    Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
    

    you can in fact clear it for every version of framework installed on your machine v3.0, v3.5, v4.0 etc.

    then try republishing the web site. If it doesn’t work then, you’ll need to go through every code file in the web project and check if namespaces are correct.

    If you look at the content of files \Temporary ASP.NET Files\ [projectname] \ *.cs, you’ll find out the magic behind the asp.net page code generation engine.

    The possible reason in your case is the differnce in build approach: 4.0 for some reason build the whole site content into one big application.dll assembly, so incorrect inherits are surfaced during the build. previously build was happening on a per page basis and one page was compiled into one assembly. To avoid this I normally build .msi packages for web site installation, that enforced the build of full website before packaging and all those errors were surfacing during the build

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

Sidebar

Related Questions

I am migration a site from asp.net-mvc and IIS onto apache. Everything is migrated
If I make a change in my ASP.NET project using VS2008 or VS2010, I
I've migrated an ASP.NET web application from Server 2003(x86) to a Windows 7(x64) machine.
hello I'm new to PHP programming and I migrated from ASP .net to PHP..
I have just migrated around 100 ASP.net sites from IIS 6 on Windows Sever
We just recently upgraded from VS2008 to VS2010. Our project compiles fine; but when
I am trying to migrate an ASP.net 2.0 Project from 32 bit windows xp
I am working on a project to migrate a website from asp.net to drupal
I've just migrated an ASP.NET MVC 3 project to MVC 4 / .NET 4.0,
i have as asp.net-mvc website and we are migrated a popup from using PartialView()

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.