Class var array corrupted by multi-dimensional enum array

The following code previously worked fine in v9, but causes problems in v10…


namespace WebApplication1;

interface

uses
System;

type
_Default = public partial class(System.Web.UI.Page)
protected
method Page_Load(sender: Object; e: EventArgs);
end;

type
TMyType = public enum(mtFirst=-1,mtSecond);

const
varArr1: array[Boolean] of String = [‘A’, ‘B’];
oneDimensionalArray: array[TMyType] of Boolean = [false, false];
varArr2: array[Boolean] of String = [‘C’, ‘D’];
twoDimensionalArray: array[TMyType,0…1] of Boolean = [[false, false],[false, true]];
varArr3: array[Boolean] of String = [‘E’, ‘F’];

implementation

method _Default.Page_Load(sender: Object; e: EventArgs);
begin
literal1.Text := varArr1[true]; // Works fine
literal2.Text := varArr2[true]; // Works fine
literal3.Text := varArr3[true]; // Fails as varArr3 is nil
end;

end.


It would appear to be the -1 in the enum causing the problem, although only vars defined AFTER the two dimensional array seem to be getting corrupted?

Thanks, logged as bugs://81250

bugs://81250 got closed with status fixed.

so the problem here was that I did find a bug where it didn’t compile if TMyType is in the same assembly, but I didn’t actually reproduce your corruption issue. Any chance you can give a more complete testcase?

That’s worrying as my issue wasn’t a compile time but a pretty brutal run-time corruption (.NET 4.0 for the record). I’ll keep an eye out for your next weekly build, which I’m assuming will be due today?

Yes.

Exactly that worries me too; so anything you can give me with the next build would be appreciated.

I wasn’t confident and sure enough it seems to have made matters marginally worse.

Firstly here is the screenshot. It still compiles but it now (always) errors on the first line of Page_Load i.e.

literal1.Text := varArr1[true];

Unlike the previous version which would at least get down to line 3 before doing so.

Changing mtFirst = 0 (or any positive int) is the only way to avoid the crash, or to use 0…1 for both of the two dimensions.

I can also successfully use TMyType in the oneDimensionalArray, providing I comment out twoDimensionalArray.

The error remains the same in all scenarios that it appears

Any chance I can get this project? It doesn’t sound like this reproduces on its own. If you send it privately I’ll keep it secret and delete after of course.

The project is entirely a test one, so privacy isn’t an issue.

The “Core” sub-project will appear a distraction, but can hopefully be ignored. It is only present as I thought, at one point, it may have been a factor.

hrmm using this project as is (had to copy your dlls in …\somedir\bin) as it prints:

B D F

in the browser. Do I need to do anything special? (Using ~ last fridays build)

That is it working correctly (sadly). What does that tell us then?

You didn’t re-compile at all?

My example was running/debugging via IIS Express, if that helps

It would always recompile yes.

‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: Domain 2): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll’. Cannot find or open the PDB file.
Exception thrown: ‘System.UnauthorizedAccessException’ in mscorlib.dll
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Tools\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Tools.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\462cc98c\8d87f451_6c6bd401\Core.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\b429d992\00d1c012_bf66d401\Estechco.Common.Core.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\ce723313\008a785b_bf66d401\Estechco.Common.DataAccess.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\b9a2132d\0029de55_12b8d101\RandomStringGenerator.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\07b0e12a\007ac411_f98cd201\ShortGuidUtil.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\assembly\dl3\3a7101be\a96f3573_6c6bd401\WebApplication5.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector\Microsoft.VisualStudio.Web.PageInspector.Tracing.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.Services.Design\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Services.Design.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Code\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Code.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Cooper\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Cooper.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Echoes\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Echoes.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Toffee\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Toffee.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.Elements.Island\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Island.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\assembly\GAC_MSIL\RemObjects.Elements.Cirrus\10.0.0.2338__3df3cad1b7aa5098\RemObjects.Elements.Cirrus.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\RemObjects.EBuild\v4.0_10.0.0.2338__3df3cad1b7aa5098\RemObjects.EBuild.dll’. Symbols loaded.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Elements\v4.0_10.0.0.2338__3df3cad1b7aa5098\Elements.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Framework\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Framework.dll’. Cannot find or open the PDB file.
Exception thrown: ‘System.ArgumentException’ in mscorlib.dll
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\App_global.asax.div50csp.dll’.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml.Hosting\v4.0_4.0.0.0__31bf3856ad364e35\System.Xaml.Hosting.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘A_bcfd1a1a_c65a_4c10_ae9d_2e8ef6a2afc0’.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll’. Cannot find or open the PDB file.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.resources\v4.0_4.0.0.0_nl_b03f5f7f11d50a3a\System.Web.resources.dll’. Module was built without symbols.
‘iisexpress.exe’ (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-131848459272296127): Loaded ‘C:\Users\carlokok\AppData\Local\Temp\Temporary ASP.NET Files\vs\b6b39ee6\47059336\App_Web_thzdjtyp.dll’.
‘iisexpress.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll’. Cannot find or open the PDB file.

seems I use IISExpress too (vs2017 if it matters)
If you change them to vars instead of const, does it still fail? You can set a breakpoint on the vars then. Does that show anything different?

What is that the output from?

I’m not in a position currently to make another v10 switch as I’m just starting another busy day, but will revisit when I can. I have a laptop that I may find time later on to repeat the whole process too

Also worth noting that I still use VS2015 as I could never seem to get VS2017 to work properly

the output is from VS itself; output panel.

Installed Element v10 onto a new-ish laptop with minimal developer gubbins lying around and after also installing IIS and IIS Express my test project works fine.

Got any suggestions for cleaning up what is looking increasingly like a murky development machine setup? Can you point at clean downloads of ASP.NET 3.5, 4.0 or 4.5 or any easy way to clean up all 3?