Posts

Version mismatch! global tsc (2.1.5) != VS Code's language service (2.2.2)

I recently was working on an angular 2 project and came across the below error when I opened the project in VS code: Version mismatch! global tsc (2.1.5) != VS Code's language service (2.2.2) I did the below steps to resolve the issue: Step 1 : In VS Code,  Open 'Integrated Terminal' ( View>Integrated Terminal) Step 2: Type in below command -   >npm install -g typescript@2.2.2 Step3: Close and reopen VsCode and error will disappear.

Fixed: Error 503 Service Unavailable

I setup a site with few html pages for my SPA application on my windows 8.1 and IIS 8.5 laptop. When I tried viewing the site in browser, I kept getting  'Error 503 Service Unavailable'. I viewed app pool, it was stopped.  In some cases, just starting the Application pool for the site may very well fix the error. But my site did not start!. When I looked at the event viewer I could see the below errors repeated many times: The Windows Process Activation Service failed to create a worker process for the application pool '<sitename.com>'. The data field contains the error number. When I clicked the Details tab on the event viewer, I could see :  Binary data - In words : '8007012B'. I did not get much help when I viewed the data via Err viewer. The way I fixed the issue was to switch 'Load User Profile' to false. It can be accessed by getting into IIS > Application Pools>' select your application pool'> Advanced Setting

Error when Installing SQL Server 2008 R2 Management Studio

Yesterday, I downloaded and tried installing the 64bit version of the Sql Express Mangement Studio, but I received the below error message   Another version of Microsoft Visual Studio 2008 has been detected on this system that must be updated to SP1. Please update all Visual Studio 2008 installations to SP1 level, by visiting Microsoft Update This message was particularly baffling since my laptop was a new build and I had installed VS 2010 only. On further investigation I found that one of the software installation that I did had installed VS 2008 components. The Add Remove programs in Control panel wasn't helpful. I used the VS2008 uninstall tool from microsoft site http://go.microsoft.com/fwlink/?LinkId=105801 This removed the VS2008 instance completely. I reran the setup for Management Studio and all worked well. To do it manually try http://blogs.msdn.com/b/joy/archive/2008/10/21/how-to-remove-visual-studio-2008-manually.aspx Hope it works out for you..

How to get Ajax webmethods to work on Sitecore

Recently I created webmethods on my aspx page and called them using jquery ajax. But they returned a 401 error message. after further investigation using Fiddler I realized that Site core intercepting the ajax calls and throwing error messages. Once I found this, the idea was to stop sitecore from intercepting the ajax request. To do this, I tracked the setting node called "IgnoreUrlPrefixes" in web.config and added the webpage name which contained the webmethods. The IgnoreUrlPrefixes node tells sitecore to ignore the urls (separated by pipe). So my web.config read as <setting name="IgnoreUrlPrefixes" value="/sitecore/default.aspx|/trace.axd| pagewhichcontainswebmethod.aspx </setting>  Happy coding

Drupal site deployment - deploy drupal 6 site from localhost to a hosting server

Deploying a drupal site to live is an easy process. But if you are doing this for the first time, like I recently did, it can be a frustrating experience. I deployed a drupal 6 site from my localhost to my hosting provider account. This was my first deployment in drupal and there were lots of stop and starts before I got the site working. I decided to record all the steps I followed to get the deployment working. Step-By-Step instruction on how to deploy a drupal site to live server STEP 1. PREPARE DATABASE Open your development drupal site and empty the cache(Administer>Site Configuration>Performance and click the 'Clear Cache Data' button). It is important to do this, it will cause you headache later on live if you leave it. Login to your Phpmyadmin (http://localhost/phpmyadmin) Select the development database (you can find the database name and credentials used by your drupal site on /sites/default/settings.php file) and click 'Export'. Make sure you select

How to change .NET framework version without restarting IIS

When we want to change the .NET Framework version for an existing site, IIS will display a warning message saying it will restart the W3SVC service. We may not want to do this, as it will stop other websites running in IIS. Below is Step By Step instruction to change the .NET framework version without restarting the W3SVC service. Step 1 : In IIS navigate to the website (which requires change in .net framework version) Step 2 : Right click on the site and select All Tasks> Save Configuration to a File and save the configuration to a file. Step 3 : Open the configuration file and look for the IISWebServer tag which contains the siteid. Below is a sample line in the configuration file: IISWebServer Location ="/LM/W3SVC/1890249283" the number 1890249281 is the site id. Step 4 : Navigate to C:\windows\microsoft.net\Framework\<new framework version>\ for example if you want to switch the site to .NET Framework 4.0 then navigate to the 4.0 framework folder f

ubuntu copy command throws cp: omitting directory

I wanted to backup some directories before making some changes, and came across an error cp:omitting directory This is because I did not include a recursive argument in my copy command. So the solution is to include a -R (for ubuntu and CentOS) command in copy command like : cp -R websites/myshinywebsite .

Drupal - How to display webform node in a block?

While building a site in Drupal 6.x, I had a requirement to display a contact us form box in all the pages of the site - except, on the Main Contact Us Form page(ofcourse, you wouldnt want and extra contact us box sticking!). I started by creating a new content type using the WebForm module. I added fields like firstname, lastname, emailaddress, company url and message and saved it. After this, I tried to figure out a way to add the form to a block. The idea was to stick the form in a block and place it on a content region and configure it to show on all pages except admin pages. But, I was stuck on how to display the webform node in a block. One idea was to use the NodeToBlock module. I had a feeling that there could be an easier way to implement this and went back to the webform page and dug up all the options in the webform form and hey presto! buried at the bottom of the settings was a check box 'Available as block'. I checked this and a block was created for this f