Web.Extensions 3.5 conflicts with 1.0.61025

G

Ganesh

I have a Webapp which was developed for framework v2.0/lower, it
references System.Web.Extentions 1.0.61025.0
I installed .net 3.5 on that box and the working webapp starts failing
with the below error:
error CS0433: 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'

There is no where System.Web.Extensions 3.5 is referenced but the
runtime compiler seems to be it picking up. I also removed assembly
redirect specified for System.Web.Extensions from machine.config but
it dint make a difference.


Any idea where is my webapp referencing the 3.5 version from?
 
A

Andrew Morton

Ganesh said:
I have a Webapp which was developed for framework v2.0/lower, it
references System.Web.Extentions 1.0.61025.0
I installed .net 3.5 on that box and the working webapp starts failing
with the below error:
error CS0433: The type ....
Any idea where is my webapp referencing the 3.5 version from?

You should have checked google for the error code, which would have brought
up, e.g,
http://forums.asp.net/t/980517.aspx

Also, you might want to make sure that the web site running the application
is using the 1.1 framework. Installing the 3.5 framework might have changed
it.
 
G

Ganesh

Thanks Andrew...I checked that... I kinda know why I get into the
problem. In the web.config of my webapp, I have just referenced 1.0
version of extensions. I have also removed any reference to 3.5
version of extensions in machine.config but still my web while
compiling in runtime references
I wana figure out from where the compiler is adding the reference to
3.5.
Configuration files checked for no reference to 3.5 dll:
webapp web.config
global web.config
machine.config


c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework
\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL
\Microsoft.Practices.EnterpriseLibrary.Common\3.1.0.0__1809b656db4db36f
\Microsoft.Practices.EnterpriseLibrary.Common.dll" /R:"C:\WINDOWS
\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:
\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:
\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization
\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:
\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions
\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll"
 
G

Ganesh

I found the problem. There was a web.config in c:\inetpub\wwwroot
which had references to system.web.extensions 3.5 dll
Removing the reference from wwwroot web.config made my old app work...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top