Posts

Visual Studio 2019: Switch an existing project from TFS to Azure DevOps

Steo 1: Create the empty projetc on  Azure DevOps Step 2:   Open existing project, Click Solution/File/Source Control/Advanced/Remove Map, Advanced/Change Source Control/Unbind all Step 3: Team Explorer/Manage Connections/Connect to project Step 4: Right click the Solution, Create Git repository/Other: Existing remote/Paste the URL of the remote repository/Create and push

"Your connection to this site is not private" in SharePoint 2016

This happened only when access from localhost. SharePoint 2016 Management Shell New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword Credit to:   https://www.enjoysharepoint.com/your-connection-to-this-site-is-not-private-sharepoint-2016/

Common WCAG / AODA Web Accessibility issues and Quick Fixes

Web Accessibility Evaluation Tool:  https://webaim.org/services/evaluation Empty link Before:  <a href="#"><span class="fa fa-search"></span></a> After:   <a href="#" aria-label (or title) ="Search"><span class="fa fa-search" aria-hidden="true"></span></a> Missing form label Before:                                                         <input type="text" class="form-control" placeholder="Search for..." id="searchQuery"> After: <label class="control-label sr-only" for="searchQuery">Search for...</label> <input type="text" class="form-control" placeholder="Search for..." id="searchQuery">

Visual Studio 2019: SharePoint 2010 Visual Webpart issue

Now days I have to use the modern Visual Studio 2019 to update the old SharePoint 2010 web site to meet the AODA accessibility standard.  Issue 1: ScriptManager and UpdatePanel not found in namespace System.Web.UI Solution:  Firstly locate the project where <asp:ScriptManager> is used. Usually it's used in the master page (in the branding project). Then add a reference to the assembly  System.Web.Extensions . Select Project-> Add Reference and then select the assembly name.  https://stackoverflow.com/questions/19122286/scriptmanager-and-updatepanel-not-found-in-namespace-system-web-ui Issue 2 The auto-generated webart.ascx.g.cs is missing 1. The “Site URL” property of your project The “Site URL” property of your project should be correct. 2. Click on the *.ascx and see its property The “Custom Tool” property should be set to “SharePointWebPartCodeGenerator” value. Configure properties, save *.ascx, make any temporary changes to *.ascx file, save again and PU...

SameSite Cookies

 https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/ https://www.thinktecture.com/en/identity/samesite/prepare-your-identityserver/ https://brockallen.com/2019/01/11/same-site-cookies-asp-net-core-and-external-authentication-providers/ For debugging purpose Go to chrome://flags and disable #same-site-by-default-cookies. If needed, also disable #cookies-without-same-site-must-be-secure . Restart Chrome for the changes to take effect. https://support.google.com/chrome/thread/34237768?hl=en

Visual Studio 2019: https://localhost:xxxx does't work on IIS Express

VS 2019 version 16.4, Net Core 3.1 SDK https://stackoverflow.com/questions/58175973/visual-studio-2019-this-site-can-t-provide-a-secure-connection-on-localhost/58209538#58209538 Try 1: dotnet dev-certs https --clean dotnet dev-certs https --trust didn't work Try 2: Repairing Visual Studio 2019: didn't work! Solution: Uninstall IIS 10.0 Express and then reinstall it!

Common Net Core Issues when debugging a web app using IIS Express

Remote Access to Local ASP.NET Core Applications from Mobile Devices - Kloud Blog https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti Error: unable to connect to web server 'IIS Express' Solution: restart Visual Studio as Administrator Error: Bad host name when starting using http://localhost:xxx Solution:  Delete .vs folder (requires to close Visual Studio 2017) The ssl port is used. Please check launchSettings.json, set  "sslPort" to 0.  Error: This site can’t be reached when starting a SSL site Solution:  To fix self-signed certificate on the local machine you need to:  Delete .vs folder (requires to close Visual Studio 2017) Run these commands in cmd As Administrator: cd "C:\Program Files (x86)\IIS Express" IisExpressAdminCmd.exe setupsslUrl -url:https://localhost:12345/ -UseSelfSigned Make sure you run VS2017 As Administrator and check if the issue addressed Note:...