Skip to main content

Posts

HTTPS with Visual Studio's built-in ASP.NET Development Server

You need to enable the SSL in the project by using the below steps: Enable the SSL with in IIS Express, you have to just set “SSL Enabled = true” in the project properties window. Then you can start your project with IIS Express normally and it will start using SSL, the new Port will be 44301 Note : https and http both ports are generally different. By default SSL enabled is set to false with IIS Express; so if you run your web application first time, you will only be able to find the default URL and you can access the site over http.

Ms Sql Server - The Visual Studio Component is out of date. Please restart Visual Studio. (Mscorlib)

SSMS Error: "The Visual Studio Component is out of date. Please restart Visual Studio. (Mscorlib)" When you are trying to open Query or execute query in Microsoft SQL Server Management Studio, you may see the following message: The Visual Studio Component is out of date. Please restart Visual Studio. (Mscorlib). Cause: Sometimes cache of the Sql Server corrupted due to Updates in the visual studio or Sql-Server components updates. Solution :  STEP 1: Delete the Temp Files. Shortcut to delete the temp files STEP 2: Restart Microsoft SQL Server Management Studio and the error message will have disappeared.

A network-related or instance-specific error occurred while establishing a connection to SQL Server - microsoft sql server error 2

SSMS Error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server" When you are trying to connect to a SQL Server using Microsoft SQL Server Management Studio, you may see the following message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that the SQL Server is configured to allow remote connections. (provided: Named Pipes Provider, error: 40- Could not open a connection to the SQL Server) (Microsoft SQL Server, Error: 2). While the message tells you to check some of the items that can cause this issue, it fails to mention that if your SQL Server Service is not started, then you cannot connect. One of the first things that you should check is that the SQL Server (MSSQLSERVER) is started. You can go to the Services Console (services.msc) and look for SQL Server (MSSQLSERVE...

WooCommerce Order Cancelled After Successful Payment: Unpaid Order Cancelled – Time Limit Reached

After upgrading to WooCommerce 2.0 and Above, you have experienced the issue  that all the purchased order changes to the “canceled” status.  In the admin area, all the orders appear as “canceled”  with the message “ Unpaid order canceled – time limit reached “. When this happens, you need manually change the statuses of all the canceled orders. The problem arises due to the Hold Stock feature in WooCommerce Inventory management. In this feature, you can set a certain period of time to hold the stock for an unpaid order. To Resolve the issue, Go to the admin side of your WordPress store, and navigate to   WooCommerce > Settings > Products > Inventory . From this page, you can see that the Hold Stock field is set to 60 minutes by default. If you are using WooCommerce stock management, you can disable this feature by leaving the field blank. Simply delete the value in the field and then save the changes.

Sql Server - Create a copy of database and Renaming it

Steps to attach a database with different name: Detach database from local PC Copy the mdf and ldf files and rename them. Copy\Move the files to the server directory where the original Database is stored. Use the below code USE [ master ] GO CREATE DATABASE [example_db] ON ( FILENAME = N 'D:\Data\example_db.mdf' ), ( FILENAME = N 'E:\Logs\example_db_log.ldf' ) FOR ATTACH GO you can also copy by using the Sql-server Management studio: go to database and tasks->Copy Database Select the source and destination server (same if you wants to make a copy on the same server) change the destination database name to required. Done

Wordpress - How to revert to classic editor / old editor?

How to revert to classic editor / old editor? if you wants to move back to the old Classic Editor By WordPress Contributors, please install the Plugin https://wordpress.org/plugins/classic-editor/ Classic Editor is an official plugin maintained by the WordPress team that restores the previous (“classic”) WordPress editor and the “Edit Post” screen. It makes it possible to use plugins that extend that screen, add old-style meta boxes, or otherwise depend on the previous editor. This plugin also gives you an option to keep both Gutenberg and the Classic editor at the same time. You can configure this in the plugin’s settings. Simply go to the Settings » Writing page in your WordPress admin area. You will see the option to do this under “Classic editor settings”. Don’t forget to click on the save changes button to store your settings. You will now be able to see a new link under the Posts menu to create new posts using the classic editor. You will also be able to ed...