Solved

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

Posted on 2010-09-22
4
2,448 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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