[Mono-bugs] [Bug 422895] New: system.web.extensions included in 2.0 profile [w/ possible fix]

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 3 20:45:28 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=422895


           Summary: system.web.extensions included in 2.0 profile [w/
                    possible fix]
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: mmorano at mikeandwan.us
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Upgraded to latest version of mono in svn, and after a clean install, ran into
issues running my website that includes asp.net ajax functionality.  I was
getting the following exception (some superfluous content snipped out):


Server Error in '/' Application
Compilation Error

Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error.

Compiler Error Message: CS0433: The imported type
`System.Web.Script.Services.ScriptServiceAttribute' is defined multiple times

Source Error:

Line 17:     [WebService(Namespace = "http://mikeandwan.us/")]
Line 18:     [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
Line 19:        [ScriptService()]
Line 20:     public class PictureService
Line 21:         : WebService


Source File: /tmp/mmorano-temp-aspnet-0/80a836cf/App_Web_5dd6a3c2_37.cs  Line:
19

Show Detailed Compiler Output:

gmcs /target:library /debug+ /optimize- /warn:0
/out:"/tmp/mmorano-temp-aspnet-0/80a836cf/App_Code.7487d890.dll"
/r:"/usr/local/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll" [SNIP]
/r:"/usr/local/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll"
/r:"/usr/local/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"
/r:"/usr/local/lib/mono/gac/System.Web.Extensions/1.0.61025.0__31bf3856ad364e35/System.Web.Extensions.dll"
[SNIP]

/tmp/mmorano-temp-aspnet-0/80a836cf/App_Web_5dd6a3c2_37.cs(19,10): error
CS0433: The imported type `System.Web.Script.Services.ScriptServiceAttribute'
is defined multiple times
/usr/local/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/System.Web.Extensions/1.0.61025.0__31bf3856ad364e35/System.Web.Extensions.dll
(Location of the symbol related to previous error)

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433


It was pulling in the 3.5 libs as well as the 1.0 ajax stuff as defined in my
web.config.  I was able to correct this by commenting out the reference to the
3.5 S.W.Extension dll in the web.config as part of the mono install, as
follows:


Index: data/net_2_0/web.config
===================================================================
--- data/net_2_0/web.config     (revision 112207)
+++ data/net_2_0/web.config     (working copy)
@@ -86,7 +86,7 @@
                                <add assembly="System.Drawing, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                                <add assembly="System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
                                <add assembly="System.Web.Services,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
-                               <add assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
+                               <!-- <add assembly="System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> -->
                                <add assembly="System.Xml, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" />
                                <add assembly="*" /> <!-- Add assemblies in bin
directory -->
                        </assemblies>


I think this is correct, as the 2.0 profile should not reference things in 3.5
by default as far as I understand.  I don't have a MS machine to test this on,
so perhaps I'm missing something else to properly set this up.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list