MSBuild – Error – ‘error MSB4066: The attribute “Version” in element is unrecognized.’

Background Wanted to highlight an error one might experience trying to build a Visual Studio Application from the command line. Error Error - Image Error - Text error MSB4066: The attribute "Version" in element is unrecognized. Troubleshooting Google Googled on the error message and thanks goodness Stack Overflow came to rescue. The solution is to … Continue reading MSBuild – Error – ‘error MSB4066: The attribute “Version” in element is unrecognized.’

Visual Studio.Net – Build Error – “Error CS0229 Ambiguity between …”

Background Experiencing error building a project in Visual Studio. Error Error Image   Error Message Error CS0229 Ambiguity between '_jobSummary' and '_jobSummary' Error CS0121 The call is ambiguous between the following methods or properties: 'ExecJobActionAsync(Func<DbConnection, Task<int>>)' and 'ExecJobActionAsync(Func<DbConnection, Task<int>>)' Error CS0229 Ambiguity between 'IsEnabled' and 'IsEnabled' Error CS0229 Ambiguity between 'IsRunning' and 'IsRunning'   Troubleshooting … Continue reading Visual Studio.Net – Build Error – “Error CS0229 Ambiguity between …”

Visual Studio – Xamarin – Traffic Light

Background Here we go with our first small CSC 101 application in Xamarin. Outline addControls instantiate Button Object If in manual mode Add event handler for Button Click Instantiate StackLayout Add Button OnButtonClick handle buttonclick event call triggerNextState triggerNextState Call Device.BeginInvokeOnMainThread Have next method be processed on main thread reflectState Update Button Text Base next … Continue reading Visual Studio – Xamarin – Traffic Light

.Net Frameworks – Installed Products

Background Wanted to get a list of Microsoft .Net Frameworks installed on a machine. Windows Management Interface ( WMI ) Introduction In this post, we will use Windows Management Interface, WMI.   Powershell Outline Get-WmiObject Class :- Win32_Product Filter :- Microsoft .Net Framework Columns :- Name Version Code Images Powershell Outline Get-WmiObject Class :- Win32_Product … Continue reading .Net Frameworks – Installed Products

Visual Studio – Error – “Could not load file or assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies.”

Background Upon preparing Visual Studio to be able to develop mobile applications courtesy of Xamarin, ran into a blocking issue right away. Set the Stage Setting the stage for our error is easy  and it goes :- Launch Visual Studio Elected to design new Project Chose Project based on Mobile / Xamarin The system prepares … Continue reading Visual Studio – Error – “Could not load file or assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies.”

.Net / Error “log4net:ERROR [AdoNetAppender] Failed in DoAppend System.TypeInitializationException: The type initializer for ‘log4net.GlobalContext’ threw an exception”

Background Ran into a nice easy to fix error. Error Here is the error: Image Text   TroubleShooting / Remediation Error Message The key data from our error message is highlighted below: System.TypeInitializationException: The type initializer for 'log4net.GlobalContext' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Only one <configSections> element allowed … Continue reading .Net / Error “log4net:ERROR [AdoNetAppender] Failed in DoAppend System.TypeInitializationException: The type initializer for ‘log4net.GlobalContext’ threw an exception”

.Net – Raise the Debugger in the event of an error

Background Many years ago a good friend showed my a programming trick he learnt from a Vendor. The trick goes like this: If a file is present, launch the debugger. To offer an incline on how long people have been using this trick, I saw it on a computer running IBM OS/2.  And, the programming … Continue reading .Net – Raise the Debugger in the event of an error