Solved

Want to use Visual Studio 2010 with older framework components but getting GAC errors

Posted on 2010-09-22
4
2,415 Views
Last Modified: 2013-12-16
Im trying to work on a web application built using .net 3.5/vs 2008 with VS 2010 but when I compile the project I get the following:

Error      1      The type 'System.Web.Compilation.WCFBuildProvider' is ambiguous: it could come from assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll' or from assembly 'C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Please specify the assembly explicitly in the type name.      App_WebReferences/      


I dont know how to get this sorted out.
0
Comment
Question by:rochestermn
4 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
This is saying there are two DLLs with the same name--one for framework version 3.5 and one for 4.0. The compiler is seeing both right now and can't tell which one you want to use. You must instruct the compiler which you would like. Expand the references section of Solution Explorer and make sure you don't have have the System.Web.Extensions.dll listed twice.
0
 
LVL 7

Expert Comment

by:DanSo1
Comment Utility
Try to set: Properties -> Specific Version -> True
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
Comment Utility
I would suggest to delete the reference and re-add, taking care of the version.
0
 

Expert Comment

by:avanceconsulting
Comment Utility
1: there are no multiple references - this solution is not working
2: Try to set: Properties -> Specific Version -> True :  for this reference the specific version attribute is not comming..so unable to set this property
3: I've tried to re-add the reference by deleting..even this one laso not working

the original issue is
Error      258      The type 'System.Web.Compilation.WCFBuildProvider' is ambiguous: it could come from assembly 'C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' or from assembly 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Please specify the assembly explicitly in the type name.      App_WebReferences/      
...please give me the solution...this issue was came when i've converted vs2008 solution to 2010...Please give me the answer as soon as possible
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

771 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

13 Experts available now in Live!

Get 1:1 Help Now