Bug 13606 - Consecutive + operators yield unexpected results
Summary: Consecutive + operators yield unexpected results
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-07-30 09:56 UTC by Michael Lovett
Modified: 2013-07-30 10:12 UTC (History)
2 users (show)

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

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 13606 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 Michael Lovett 2013-07-30 09:56:44 UTC
In an aspx.cs page (ASP.NET) we had several erroneous statement such as the following, which contain multiple consecutive + operators. We would have expected this to have generated some sort of "syntax error" (which would have led us to examine the bad code) but instead we got "Cannot read from a closed StreamReader".


 cell.Text = dataAccess.GetTranslatedUILabel("BFOM_RD_FILTERED") + 
             + "<br>" + 
            SageMath.MakePercentString((filteredRespondentCount / (double)totalRespondentCount) * 100);




Error details:

Server Error in '/blink2_m120326cn' Application
Cannot read from a closed StreamReader

Description: HTTP 500. Error processing request.

Stack Trace:

System.ObjectDisposedException: Cannot read from a closed StreamReader
  at System.IO.StreamReader.ReadToEnd () [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.AspParser..ctor (System.String filename, System.IO.TextReader input) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.AspGenerator.InitParser (System.IO.TextReader reader, System.String filename) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, Boolean doInitParser) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode () [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 

Version information: Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-1~dhx1~lucid1); ASP.NET Version: 2.0.50727.1433