[Mono-bugs] [Bug 380951] New: System.Web.HttpException Type "Handler" is not unique

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 17 12:02:01 EDT 2008


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


           Summary: System.Web.HttpException Type "Handler" is not unique
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: i586
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: banderso at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other


This bug is very easy to reproduce.
>From MonoDevelop create an empty Web Application.
>From the new application add a new Web Handler to the project.
Compile and Execute.  MonoDevelop will launch XSP rooted at your project and
bring up a browser.  Attempt to load the page of your new handler and you will
get the following error:

   1.
      System.Web.HttpException: Type TestAsp.UploadService is not unique.
   2.
        at System.Web.UI.SimpleWebHandlerParser.GetTypeFromBin (System.String
tname) [0x00187] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.UI/SimpleWebHandlerParser.cs:477
   3.
        at System.Web.Compilation.SimpleBuildProvider.LoadTypeFromBin
(System.Web.Compilation.BaseCompiler compiler,
System.Web.UI.SimpleWebHandlerParser parser) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/SimpleBuildProvider.cs:77
   4.
        at
System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.SimpleWebHandlerParser].GetGeneratedType
(System.CodeDom.Compiler.CompilerResults results) [0x00016] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/GenericBuildProvider.cs:128
   5.
        at System.Web.Compilation.BuildManager+BuildCacheItem..ctor
(System.Reflection.Assembly assembly, System.Web.Compilation.BuildProvider bp,
System.CodeDom.Compiler.CompilerResults results) [0x0001a] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:162
   6.
        at System.Web.Compilation.BuildManager.BuildAssembly (System.String
virtualPath) [0x00251] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:889
   7.
        at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x0001b] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:432
   8.
        at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x0000c] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:264
   9.
        at System.Web.UI.SimpleHandlerFactory.GetHandler
(System.Web.HttpContext context, System.String requestType, System.String
virtualPath, System.String path) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web.UI/SimpleHandlerFactory.cs:44
  10.
        at System.Web.HttpApplication.GetHandler (System.Web.HttpContext
context, System.String url) [0x0003c] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:1249
  11.
        at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext ()
[0x0077a] in
/private/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/System.Web/System.Web/HttpApplication.cs:942


I have tried this package on Mac and Linux with the same result.
I then moved the project over to Windows loaded it in Visual Studio 2005,
compiled and ran the application just fine.


-- 
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