Posts

Redirect HTTP/HTTPS IIS

Image
Setting up an HTTP/HTTPS redirect in IIS Once the SSL certificate is  installed , your site still remains accessible via a regular insecure HTTP connection. To connect securely, visitors must specify the https:// prefix manually when entering your site’s address in their browsers. In order to force a secure connection on your website, it is necessary to set up a certain HTTP/HTTPS redirection rule. This way, anyone who enters your site using a link like “yourdomain.com” will be redirected to “https://yourdomain.com” or “https://www.yourdomain.com” (depending on your choice) making the traffic encrypted between the server and the client side. Below are steps to setup a IIS HTTPS redirect: Download and install  the “URL Rewrite” module. Open the “IIS Manager” console and select the website you would like to apply the redirection to in the left-side menu: Double-click on the “URL Rewrite” icon. Click “Add Rule(s)” in the right-side menu. Select “Blank Rule” in the ...

Allow ASPNET access folder in server machine

To avoid "Access to the path "...." is denied". We need to allow full access to ASPNET Right click on your folder on your server or local machine and give full permissions to IIS_IUSRS

Bootstrap Icons common to use

<link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.7.0/css/all.css' integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ' crossorigin='anonymous'> <i class='far fa-save'></i> <i class='fas fa-list' style='color:#111E6C;'></i> <i class='fas fa-edit' style='color:#111E6C;'></i> <span class="glyphicon glyphicon-trash" style='color:#111E6C;'></span> <span class="glyphicon glyphicon-option-horizontal" style='color:#111E6C;'></span> <span class="glyphicon glyphicon-expand"></span>

Make DataGridView full screen when screen resize

Option 1: Anchoring: Top, Bottom, Left, Right Option 2: Set the property of your DataGridView: Anchor : Top , Left AutoSizeColumn : Fill Dock : Fill

Some information for amonline web server

Image
You will find following the Amwin Video / Web / Test server as promised. Please note that we have done updates as part of the commissioning of this server and have provided the following as a start point. Please also note that this is virtualized so we can ramp Space, memory, Vcores etc at any time and at your request. Pricing would be as quoted previously but as mentioned earlier we will hold off until you are ready to make it more of a production (full time) system. Server Windows Server 2012r2 external IP 103.195.52.69 and the internal IP 192.168.20.200/24 *If you would like this IP attached to amwincloud or any domain that we have admin for, feel free to call. It is a simple A record for any domain / subdomain.  Credentials L: Admin P: -X`Gm43du7 Provisioned Resources 2vCPU 4Gig Ram 55GB HDD Setup AITS N-Central Probe Installed AITS MSP Anywhere Access Client .NET 4.6.2 Installed AV Defender Anti-Virus Installed Current Ports Op...

Deploy web app into IIS and troubleshoot

Image
Public project to install: - Run Visual Studio as Admin role - Right click on Project -> Public -> 1. create profile 2. Connection: Publish method: File System                         Target Location: Select a folder in the computer 3. Settings:  Configuration: Release -> publish - Open IIS management - right click on Sites -> add Website with Physical Path is Target Location  - Restart the web site Troubleshoot: 1. Features have to be enabled in IIS: Goto Control Panal -> Programs and Features -> Turn Windows features on or off in session Internet Information Services -> World Wide web Services -> Application Development Features: turn on all features under Application Development Features HTTP Error 500.22 - Internal Server Error (An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.): Open IIS Management, Click on Application P...

Print content of iFrame to Printer using javascript

function printFrame ( ) { // id is id of iFrame var frm = document . getElementById ( id ). contentWindow ; frm . focus (); // focus on contentWindow is needed on some ie versions frm . print (); return false ; }