Error when creating a Layout - TemplateWizard

Posted 07-05-2016 by Albraa Nabelsi


Recently, while going through the Sitecore Experience Platform 8.0 course manual, I encountered the following error while trying to add a layout: 

Error Message

Error: this template attempted to load component assembly 'Sitecore.Rocks.TemplateWizard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c9e2eeb5a3dd9908, processorArchitecture=MSIL'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.

The Solution

This error occurs because Sitecore Rocks needs the Sitecore.Rocks.TemplateWizard.dll file. Normally, when Sitecore Rocks starts, it copies the file to C:\Program Files (x86)\Microsoft Visual Studio {Your VS version}\Common7\IDE\PublicAssemblies. However, if this did not happen, the file needs to be copied to the folder manually.

The Sitecore.Rocks.TemplateWizard.dll file can be located in the Bin folder of your Sitecore webroot (C:\inetpub\wwwroot\BasicSitecore\Website\bin). However, some users have reported that they were unable to find the file in the bin folder. 

In the case where the file is not found in the BIN folder, navigate to C:\Users\{Your User Name}\AppData\Local\Microsoft\VisualStudio\{Your VS version}\Extensions. This folder contains several files and folders, so you may need to do a search to find the Sitecore.Rocks.TemplateWizard.dll file. I found the file under an obscure folder named "vxg4qgri.swq".

dll Location

Once you have found it, copy the Sitecore.Rocks.TemplateWizard.dll file to C:\Program Files (x86)\Microsoft Visual Studio {Your VS version}\Common7\IDE\PublicAssemblies

Restart Visual Studio and remember to "Run as Administrator"!

You should now be able to successfully create a Sitecore layout.

Success

Add your comment

 
 
 

Comments

  • Hi Anand, I will need some more information before I can help you. Did you find the Sitecore.Rocks.TemplateWizard.dll file? Did you copy it over to C:\Program Files (x86)\Microsoft Visual Studio {Your VS version}\Common7\IDE\PublicAssemblies? After doing all of these steps, what errors are you getting? Are you getting the same "this template attempted to load component assembly" error? In the error message above, the requested dll version is 1.0.0.0, is the version of the dll you manually copied over correct? Also, does visual studio have the correct permissions to access this copied dll? Thanks, Albraa Nabelsi

  • Hi, Tried exactly as per your post and still not successful. I am using VS 2013 Ultimate... Can you please let me know if I have to do anything different. Thanks