Skip to main content

Posts

Showing posts from September, 2013

Nuget Error: "No more data is available"

Unable to install Nuget Package Manager on Visual Studio 2010 SP1, Windows 7, 64 bit machine. When creating new MVC4 Project, getting Nuget Error "No more data is available".

Here are the steps which will resolve the issue.

1. Open Visual Studio -> Tools -> Extension Manager...


2. From Online Gallery, Download Nuget Package Manager


If you get error like "No more data is available", Download it from Nuget Website.

3. Once downloaded, change the extension "vsix" to "zip"
    For example:  Nuget.Tools.vsix  -> Nuget.Tools.zip

4. Goto path
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\ide\Extensions\Microsoft Corporation\NuGet Package Manager\1.6.21205.9031
if it is not existing, create the folders so path could look like above path.

5. Unzip the Package (see step 3) in the folder (see step 4)

6. Now ...\NuGet Package Manager\1.6.21205.9031 should have all dlls and respective files

7. Restart Visual Studio and now it should…

Steps to migrate from other CMS to Sitecore

Here are few easy steps to migrate the data from other CMS to Sitecore1. Get the detail of CMS from where to migrate in Sitecore

2. Export the articles or items in xml format. Generally all CMS gives this option to export it in xml file format

3. Read the xml tags one by one to get all related details (code given is just for reference)




//Get all files under specific directory string[] files = Directory.GetFiles(path);
List<ArticleData> articleList = newList<ArticleData>();
//Read each file one by one foreach (string filePath in files) { XmlDocument xmlDoc = newXmlDocument();     xmlDoc.Load(filePath);             
ArticleData article = newArticleData();     article.FileName = filePath.Substring(path.Length + 1, (filePath.Length - (path.Length + 1)));
XmlNodeList list = xmlDoc.SelectNodes("record/item[@name='it_article_title']");                    article.Title = list[0].InnerText;
XmlNodeList list1 = xmlDoc.SelectNodes("record/item[@name='it_publication_date…