Solved

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

Posted on 2010-09-22
4
2,424 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 75

Expert Comment

by:käµfm³d 👽
ID: 33734687
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
ID: 33742417
Try to set: Properties -> Specific Version -> True
0
 
LVL 55

Accepted Solution

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

Expert Comment

by:avanceconsulting
ID: 35322953
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

896 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

17 Experts available now in Live!

Get 1:1 Help Now