Bug 29069 - System.Web.Compilation.CompilationException with Global.asax and Mono-Basic
Summary: System.Web.Compilation.CompilationException with Global.asax and Mono-Basic
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: 3.12.0
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-04-14 06:09 UTC by Volker
Modified: 2015-04-14 06:10 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Testproject VB and C# (129.77 KB, application/x-zip-compressed)
2015-04-14 06:09 UTC, Volker
VB compile error message picture (31.71 KB, image/png)
2015-04-14 06:10 UTC, Volker
C# works picture (19.20 KB, image/png)
2015-04-14 06:10 UTC, Volker

Description Volker 2015-04-14 06:09:27 UTC
Created attachment 10748 [details]
Testproject VB and C#

Hello Monoteam,

since I have a Debian server version 2.10.2 of mono to mono version 3.10.0 updated, I get the following error message when calling all (* .asmx) files. When you upgrade to version 3.12.1 I get the same error message (see screenshot "VBCompileError").

The update was performed directly on checkout, compile and install from the Mono Git repository.

Meanwhile, I was able to bring it to the point that the error message only appears when a Global.asax file with Visual Basic codebehind is in the application directory. Located the same Global.asax file with C# codebehind in the application directory, function all (* .asmx) files again (see screenshot "CSharpWorks"). Even if the (* .asmx) files with Visual Basic were implemented. If you delete the Visual Basic code behind Global.asax file from the application directory, everything works again.

It seems right at the Global.asax processing in conjunction with Visual Basic to be a problem!

To adjust the problem, I still have a sample project for Visual Basic and C# created (see WebserviceMonoTestProject.zip).

System.Web.Compilation.CompilationException : Unhandled Exception:
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Details: : Unhandled Exception:
Error origin: Compiler
Error source file: ~/DefaultWsdlHelpGenerator.aspx
Exception stack trace:
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00365] in /opt/monobuild/mono/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:853 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] in /opt/monobuild/mono/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:731 
  at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00264] in /opt/monobuild/mono/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:838 
  at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x0011c] in /opt/monobuild/mono/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:461 
Mono version:
2.10.2 => works fine
3.10.0 => error
3.12.1 => same error

Mono-Basic version: 3.8
Mod-Mono version: 3.8
Operating system: Debian GNU/Linux 7.8 (wheezy)
Webserver: Apache

Thanks for the help in advance
Greeting Volker
Comment 1 Volker 2015-04-14 06:10:19 UTC
Created attachment 10749 [details]
VB compile error message picture
Comment 2 Volker 2015-04-14 06:10:51 UTC
Created attachment 10750 [details]
C# works picture

Note You need to log in before you can comment on or make changes to this bug.