Skip to main content

Posts

Showing posts from 2021

Disabling emails in Debug Mode Aspnetzero

I had this issue and just assumed the code was there for looks but didnt actually work (Meaning the only thing it did was show "test email sent" but no backend code did anything) After maliming's comment I realized it wasnt just me. I started checking what the log said as he mentioned and log mentioned: INFO [35 ] pNetCore.Cors.Infrastructure.CorsService - CORS policy execution successful. INFO [35 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO [35 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'companyName.Configuration.Host.HostSettingsAppService.SendTestEmail (companyName.Application)' INFO [35 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "SendTestEmail", controller = "HostSettings"}. Executing controller action with signature System.Threading.Tasks.Task SendTestEmail(companyName.Configuration.Host.Dto.SendTestEmailIn...

Import/Export Websites from IIS

  In order to perform this action, there are a few steps to take.  App pools are separate from the site, so first we will need to save off the app pools and bring that over to our other server and load it in. To export app pools, please run the following from an elevated command prompt: %windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml It will look like this, with the file generated where you want to specify it. Next, you'll want to export your entire default web site, so we can get each individual realm configuration.  We do this by another command of similar fashion. Please run this command on the same elevated prompt: %windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml It will look something like this, with again, the file where you specify it. Once you have exported your configuration, it is time to move these two xml files over to your other server, and run these two commands to load in these app pools and defa...

Generate Self Signed Certificate using powershell and install on

Run Following commands in Powershell PS C:\Users\Administrator> $cert = New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname *.domain.com PS C:\Users\Administrator> $pwd = ConvertTo-SecureString -String 'password' -Force -AsPlainText PS C:\Users\Administrator> $path = 'cert:\localMachine\my\' + $cert.thumbprint PS C:\Users\Administrator> Export-PfxCertificate -cert $path -FilePath d:\powershellcert.pfx -Password $pwd Directory: D:\ Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2/22/2021 8:16 PM 2661 powershellcert.pfx Install the PFX file generated on Server and client machines Please find steps below to install the attached self signed certificate. I have already installed it on IIS. and application is accessible without error on https if certificate is installed. 1. Select Local Machine: 2. Press next 3. Enter password: password...

File Upload : The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

TITLE: SQL Server Import and Export Wizard ------------------------------ The operation could not be completed. ------------------------------ ADDITIONAL INFORMATION: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. (System.Data) ------------------------------ BUTTONS: OK ------------------------------ Solution: Install Microsoft Access Database Engine 2016 Redistributable https://www.microsoft.com/en-us/download/details.aspx?id=54920

Connecting Xamarin Form Application with Dynamics CRM

Microsoft Dynamics CRM: Configure Client in Azure AD for Xamarin App https://dev.to/425show/user-authentication-in-xamarin-with-azure-ad-b2c-4clm User Login / Authentication: https://scaleablesolutions.com/connecting-xamarin-form-application-with-dynamics-crm/ Fetch Data from CRM: https://scaleablesolutions.com/displaying-microsoft-dynamics-crm-records-in-listview-using-xamarin/

SQL : Cross Join and CONCAT_WS

Create Table Structure: CREATE TABLE Meals ( MealName VARCHAR ( 100 ) ) CREATE TABLE Drinks ( DrinkName VARCHAR ( 100 ) ) INSERT INTO Drinks VALUES ( 'Orange Juice' ) , ( 'Tea' ) , ( 'Cofee' ) INSERT INTO Meals VALUES ( 'Omlet' ) , ( 'Fried Egg' ) , ( 'Sausage' ) SELECT * FROM Meals ; SELECT * FROM Drinks   SELECT CONCAT_WS ( '-' , MealName , DrinkName ) AS MenuList FROM Meals CROSS JOIN Drinks

AWS Text Extract : Extract Data from Any Document

Pricing: Availability Zones:  References: https://www.youtube.com/watch?v=5g48uf5sCu8 https://aws.amazon.com/augmented-ai/resources/?blog-posts-cards.sort-by=item.additionalFields.createdDate&blog-posts-cards.sort-order=desc