While trying to modify a "Build .NET Project" script template, I'm consistently encountering an "Unexpected Error (500) Server Error" in the dialog window.
This is in a new Application for a DotNet platform, WindowsServer target.
I created a new local "Build .NET Project" script and where I seem to always run into issues is when I attempt to enter a value for "Build output directory" on the "dotnet Options" tab.
Every time I enter a value, like "bin/Release" and try to save the dialog window displays:
The logged error:
An error occurred in the web application: An item with the same key has already been added. Key: Output
URL: https://hidden/scripts/edit-template?applicationId=26&raftItemId=Default%3A%3AScada Data Importer%3A%3ADeploymentScript%3A%3ABuild
Referrer: https://hidden/scripts/edit-template?applicationId=26&raftItemId=Default%3A%3AScada Data Importer%3A%3ADeploymentScript%3A%3ABuild
User: hidden
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0
Stack trace: at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Inedo.BuildMaster.Web.WebApplication.Pages.Scripts.ScriptTemplates.ScriptTemplateEditor.Action(String name, ValueTuple`2[] args)
at Inedo.BuildMaster.Web.WebApplication.Pages.Scripts.ScriptTemplates.CreateDotNetBuildEditor.GetStatements()+MoveNext()
at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)
at Inedo.ExecutionEngine.ScopedStatementBlock..ctor(IEnumerable`1 statements, IEnumerable`1 templates)
at Inedo.ExecutionEngine.ScopedStatementBlock..ctor(IEnumerable`1 statements)
at Inedo.BuildMaster.Web.WebApplication.Pages.Scripts.ScriptTemplates.ScriptTemplateEditor.CreateScript()
at Inedo.BuildMaster.Web.WebApplication.Pages.Scripts.EditScriptTemplatePage.<>c__DisplayClass14_0.<CreateChildControlsAsync>g__save|0()
at Inedo.BuildMaster.Web.WebApplication.Pages.Scripts.EditScriptTemplatePage.<>c__DisplayClass14_0.<CreateChildControlsAsync>b__1()
at Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.Inedo.Web.Controls.ISimpleEventProcessor.ProcessEventAsync(String eventName, String eventArgument)
at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync()
at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context)
at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
::HTTP Error on 6/23/2025 2:00:43 PM::