Web.Extensions 3.5 conflicts with 1.0.61025

Discussion in 'ASP .Net' started by Ganesh, Feb 26, 2010.

  1. Ganesh

    Ganesh Guest

    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?
    Ganesh, Feb 26, 2010
    #1
    1. Advertising

  2. Ganesh wrote:
    > 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.

    --
    Andrew
    Andrew Morton, Feb 26, 2010
    #2
    1. Advertising

  3. Ganesh

    Ganesh Guest

    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"
    Ganesh, Feb 26, 2010
    #3
  4. Ganesh

    Ganesh Guest

    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...
    Ganesh, Feb 26, 2010
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JonoMG

    Runtime Library Conflicts

    JonoMG, Apr 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    567
    JonoMG
    Apr 7, 2004
  2. Felix Wu [MSFT]

    RE: ASP.NET 1.1 conflicts with VS.NET 2002

    Felix Wu [MSFT], Jun 25, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    958
    Felix Wu [MSFT]
    Jun 25, 2003
  3. Cathy Boland

    MSN IM conflicts with Framework 1.1 ?

    Cathy Boland, Nov 18, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    315
    Daniel Melo
    Nov 19, 2003
  4. Cipher
    Replies:
    3
    Views:
    1,509
    coollzh
    Apr 30, 2004
  5. Bill E.
    Replies:
    3
    Views:
    348
    Bill E.
    Jan 14, 2008
Loading...

Share This Page