Posts

Showing posts from 2021

Add Google reCAPTCHA v2 to ASP.Net Website

Image
The official document to add google reCAPTCHA v2 to the asp.net website is here:   https://developers.google.com/recaptcha/docs/display A good article to follow is here: https://www.c-sharpcorner.com/article/integration-of-google-recaptcha-in-w After registering the  reCAPTCHA keys from here: https://www.google.com/recaptcha/admin Step 1- Add following code to the aspx file to show the reCAPTCHA control:         <div class="form-item" id="divRecaptcha" runat="server">                 <div class="slickbutton clearfix" style="margin:5px auto;width:100%;text-align:center;">                     <div data-theme="light" class="g-recaptcha" data-sitekey="sample public key"></div>                 </div>            </div>            <sc...

Install WordPress on Azure Windows Server 2016 VM with IIS 10 and MySQL

Image
 I have an Azure Windows Server 2016 VM with IIS 10 and MySQL. The VM comes with 2 VCPU and 4GB. It has been working properly to host my website developed with Asp.Net 4.5 and MySQL for a few years. I am thinking about moving my WordPress website to this server as well. Step 1:  Install and configure PHP on IIS 8 in Windows 8 On Windows Server 2016, the Web Platform Installer installed following the above instructions does not show on the program files. It has to be manually started from the following folder.  C:\Program Files\Microsoft\Web Platform Installer With Web Platform Installer, the PHP installation is quite easy. After PHP is installed, the FastCGI module mapping needs to be configured following the instruction in this article: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/fastcgi/ Next, perform the handler configuration: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/handlers/ Now it is time to test the environment to ...

How to Change the Company Name of Dynamics 365 Portal

Image
 By default, the portal home link shows the company name of  Contoso, Ltd.  The company name can be changed in organization administration/setup/organization/legal entities but you cannot change the company account name. Below is the official document to manage the banner and logo https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/get-started/tasks/change-banner-or-logo The place to change the home title is in the content snippet of the website. The content snippets contain all required labels for the website for English and the language you prefer, such as Home Tile, which is Contoso by default. Review all the items in this view and update each of them. By default, there are about 239 items if 2 languages are supported. Click each one to modify.

Map a Google Domain to MS Dynamics 365 Portal and Add SSL Certificate

Image
 I have an account with MS Dynamics 365. So I decide to play with it and create a website using the Dynamics portal. I bought a domain name from Google Domain.  It does not take too much time to update the portal setting and google domain setting to map the domain name with the portal. 1.  Go to the portal management page, there is a tool to set up a custom domain. Add custom domain here. 2. Go to Google domain management, in the DNS page, add a CName with WWW and point it to the yourportal.powerappports.com After a couple of minutes, the setup will take effect and the portal will work with the custom domain. However, the Chrome browser complains that the website is unsafe. To resolve this issue, the only way is to buy an SSL certificate. Since this is a personal website, I do not want to spend too much on SSL. I checked around and found that Namecheap provides SSL at a really low price. My impression is that SSL usually cost hundreds of bucks. However, with Namecheap, an...