Link to home
Start Free TrialLog in
Avatar of sunilpasupunuri
sunilpasupunuriFlag for India

asked on

Not able to add dll into website using add reference

Hi,

When build the project, gets error as
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I am not able add reference  this .net extension system.web.extension.
What i can do? and the error dll version and .net 2.0 dll version different.
Not-able-to-add-dll-using-add-re.png
Avatar of Kiran Sonawane
Kiran Sonawane
Flag of India image

Have you installed AJAX?
Avatar of sunilpasupunuri

ASKER

Hi,

I have installed ajax  ASP.NET AJAX 1.0 then get error as

The type
'System.Web.Script.Services.ScriptMethodAttribute'
exists in both
'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'
and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'      

AJAX-Installed-after-get-error.png
Check your web.config
Remove one with version  Version=1.0.61025.0

<compilation debug="true">
   <assemblies>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    ..........
    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
   </assemblies>
  </compilation>
Hi, i have removed the above mentioned code then gets so many errors

I have  attached the screenshot for error and web config file
commented-mentioned-line.png
Web.config
Show your web.config
i already sent web config file
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial