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
URL:
Depends on:
Blocks:
 
Reported: 2015-04-14 06:09 UTC by Volker
Modified: 2015-04-14 06:10 UTC (History)
1 user (show)

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


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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 29069 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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