Solved

file conflicts - type exist in both A and B files

Posted on 2010-11-23
5
542 Views
Last Modified: 2012-05-10
Compiler Error Message: CS0433: The type 'System.Web.UI.UpdatePanel' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7073199f\ac695c9f\assembly\dl3\b2531efd\00b86e4c_ff3cc701\System.Web.Extensions.DLL'

If I am getting a lot of these, or the same error over and over, even after deleting all sub items in my Temporary ASP.NET Files folder...what is likely the problem here?

How do I fix this, both quickly....and also permanently?


This is very frustrating, as the files (or folders!!!!) are often locked and I have to find the process and kill it, usually inetinfo.exe.

I have published on other hosted environments and not had this problem with conflicting DLLs
0
Comment
Question by:knowlton
  • 2
  • 2
5 Comments
 
LVL 5

Author Comment

by:knowlton
ID: 34201612
How do I view files in the GAC?
0
 
LVL 21

Expert Comment

by:Alfred1
ID: 34202062
You can use the .NET Framework Configuration Tool

http://msdn.microsoft.com/en-us/library/2bc0cxhc%28v=VS.90%29.aspx

if you haven't installed it yet.  Check this out.

http://www.technowise.in/2009/03/net-framework-20-configuration-tool.html
0
 
LVL 21

Accepted Solution

by:
Alfred1 earned 450 total points
ID: 34202077
I believe your error is due to multiple System.Web.Extension existing in your web.config.  Try removing one of them in the web.config.

<compilation debug="true" strict="false" explicit="true">
                  <assemblies>
                        
                        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                        
                  </assemblies>
            </compilation>
0
 
LVL 20

Assisted Solution

by:informaniac
informaniac earned 50 total points
ID: 34202091
Go to Run and type C:\WINDOWS\assembly\gac_msil
0
 
LVL 5

Author Closing Comment

by:knowlton
ID: 34207660
thx for your time and advice!  :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now