Skip to main content

Posts

IIS, Registering the ASP.Net with IIS server

You need to start command prompt by typing cmd at the Run command and then execute the command prompt with Administrator rights by right clicking and choosing Run as administrator from the context menu.   Then on the command prompt you need to navigate to the Directory that has the aspnet_regiis.exe file for that you need to type   CD C:\Windows\Microsoft.NET\Framework64\v4.0.30319\   Then you need to type the following command and hit enter to register ASP.Net with IIS   aspnet_regiis -i  

IIS, There was an error when trying to connect. Do you want to retype your credentials and try again?

IIS 8 error on windows server 2012 insufficient permission There was an error when trying to connect. Do you want to retype your credentials and try again? Details: Filename: \?\C:Windows\system32\inetsrv\config\redirection.config Error: Cannot read configuration file due to insufficient permissions screenshot: Solution: Steps to short out this issue: go to C:\Windows\Microsoft.Net\Framework64\v2.0.50727\CONFIG\machine.config here you got the redirection tag like the below <configurationredirection enabled="true" password="[enc:IISCngProvider:X0ObCWwZ4+PrTHiFVPtzFeCcL8u5P6KUOYfo1/0QrgZWATA5pKWqHvD8nL2crNJKyyqr4z/rBdLPjdRcaLxAMMj4l+lvp5EXXKSXueolvyGa34F4QZfbBVCM6oVNcq3M368TOTVjJv4POVFQWvu0MDVlGgReglXB+Lw5BRI4Htw=:enc]" path="C:\Windows\System32\inetsrv\config\import\" username="Administrator"> </configurationredirection"></li"> you need to change this to <configurationRedirection /> Th...

Tortoise SVN move SVN Repository To Another Server

How to take Backup and Restore of Tortoise SVN on window? Back SVN Go to Run with Administrator privilege and then type cmd and open command prompt Run the following command svnadmin dump c:\Repositories\RepositoryName > c:\Repositories\svnbackup.dump Here c:\Repositories\RepositoryNam e is the source path of the repository c:\Repositories\ is the destination where the dump will create svnbackup.dump name of dump file Restore SVN Go to Run with Administrator privilege and then type cmd and open command prompt Run the following command svnadmin load c:\Repositories < c:\Repositories\svnbackup.dump Here c:\Repositories  is the destination path of the repository c:\Repositories\ svnbackup.dump  name of dump file that will be loaded

C# - Copy DataTable from one DataSet to another

When we trying to add a DataTable (that is inside of a different DataSet) to new DataSet ds. If I add it directly, we will get the following error:                     DataTable already belongs to another DataSet. DataTable.Copy use DataTable.Copy to create a copy of your data table; then insert the copy into the target DataSet: dataSetX.Tables.Add( dataTableFromDataSetY.Table[0].Copy() ); DataSet.Merge You could also use DataSet.Merge for this: dataSetX.Merge(dataTableFromDataSetY); Note, however, that if you are going to use this method, you might want to make sure that your target DataSet doesn't already contain a table with the same name: If the target DataSet doesn't contain a table by the same name, a fresh copy of the table is created inside the data set; If a table by the same name is already in the target data set, then it will get merged with the one passed to Merge, and you end up with a mix of the two.

AWS - Message delivery to the remote domain failed for the following reason: The remote server did not respond to a connection attempt.

Error -  Message delivery to the remote domain 'gmail.com' failed for the following reason: The remote server did not respond to a connection attempt.  Amazon Web Services’  EC2  instances are throttled on port 25 by default as a spam prevention measure. This can cause connection issues when attempting to use SMTP to relay emails through Postmark in your EC2 instance. There are a couple ways to resolve this issue so that you do not receive connection errors when using Postmark in your EC2 instance.  How do I remove the throttle on port 25 from my EC2 instance? Issue I'm having trouble sending email over port 25 of my Amazon EC2 instance, or I'm getting frequent timeout errors. How do I remove the port 25 throttle on my EC2 instance? You can request Amazon Web Services to remove the throttling on port 25 using the Request to Remove Email Sending Limitations  form.  Note: you must sign in with your root account credentials . Amazon ...

AWS - Enabling Enhanced Networking with the Elastic Network Adapter (ENA) on Windows Instances

AWS - Transfer the AWS EC2 Instances to ENA instances Tags – Transfer m4 to C5 family, Transfer m4 to m5 family, Transfer m4 to R4 family, transfer to ENA instances Steps are as follows: 1.     Install and configure the  AWS CLI  or the  AWS Tools for Windows PowerShell  on any computer you choose, preferably your local desktop or laptop. For more information, see  Accessing Amazon EC2 . Enhanced networking cannot be managed from the Amazon EC2 console. 2.     Configure the AWS Command Line Interface , use the  aws configure  command $ aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Default region name [None]: us-west-2 Default output format [None]: json 3.     Take an AMI of the Instance to have as a backup 4.     Install the driver to the instance 5.     Stop the In...

WordPress line break not Working

Many WordPress users struggle around this issue of WordPress line break not working. In this article, we discuss some of the possible ways to get around this issue. 1. Use empty classes in HTML Elements You can make WordPress assume that your HTML elements contain certain attributes. This can be done by Adding attributes to the HTML elements with the use of empty classes. For example: Avoid writing: <p> <br> <span> Instead, write: <p class=""> <br class=""> <span class=""> 2. Disable Autop formatting The  Autop() function  in WordPress auto formats the paragraphs. The WordPress line break not working is due to the presence of a filter called “wpautop”. The “wpautop” filter executes whenever the content of a blog post is rendered. We can easily use the  remove_filter function  to disable the  wpautop filter . In the functions.php file you need to add the following code: remove_filter ('the_conten...

How to Disable WordPress Admin Bar for All Users Except Administrators

Disable Admin Bar for All Users Except for Administrators Paste this code in your theme’s functions.php file add_action( 'after_setup_theme' , 'remove_admin_bar' ); function remove_admin_bar() { if (!current_user_can( 'administrator' ) && !is_admin()) {    show_admin_bar(false); } } Disable Admin Bar for All Users If you want to disable it for all users, then simply put use this code in your theme’s functions.php file add_action( 'after_setup_theme' , 'remove_admin_bar' ); function remove_admin_bar() {    show_admin_bar(false); }

Wordpress media library not loading images

WordPress media library not loading images or Images are not displaying the images: Main cause of this issue is the plugin conflict, so please deactivate the plugin one by one and check that your issue resolved or not. WordPress always update it's software to avoid or overcome issues and it is depreciating the old functions. but some of our plugin using these functions and create problem. So in that case please update the plugin if possible otherwise deactivate it .