Sunday, May 27, 2012

The language-neutral solution package was not found

So there I was happily coding/debugging the latest Contoso solution when all of a sudden, while trying to deploy via VS’s CKSDev plugin, my productivity streak was broken by the following error set.

#001:
Error 2
Error occurred in deployment step 'Retract Solution': 
Access to the path 'C:\ProgramData\Mi...xml.GUID.tmp' is denied. 

#002:
Error 2
Error occurred in deployment step 'Retract Solution': 
The language-neutral solution package was not found. 

#003:
Error 2
The language-neutral solution package was not found. 

After wasting some time looking at the logs and trying to get to the root cause of the issue, I turned to my trusty default search engine but again no luck.

Fortunately PowerShell (SharePoint 2010 Management Shell) provides us with a way of drilling into SharePoint or in this case SP issues and ripping them out, as the error occurs when trying to retract the solution.

Get all installed WSP's:
Get-SPSolution


Delete problematic one:
(Get-SPSolution solutionName.wsp).Delete()

PS. After removing the solution using the above ps1 script deployment went back to normal.

Thursday, May 17, 2012

SyntaxHighlighter Guide

SyntaxHighlighter Home Page:
http://alexgorbatchev.com/SyntaxHighlighter/

Easy Installation Guide:
http://www.cyberack.com/2007/07/adding-syntax-highlighter-to-blogger.html


SyntaxHighlighter - Themes :
http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/
NameFile
DefaultshThemeDefault.css
DjangoshThemeDjango.css
EclipseshThemeEclipse.css
EmacsshThemeEmacs.css
Fade To GreyshThemeFadeToGrey.css
MidnightshThemeMidnight.css
RDarkshThemeRDark.css


SyntaxHighlighter - Brushes Manual :
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
Brush nameBrush aliasesFile name
ActionScript3as3, actionscript3shBrushAS3.js
Bash/shellbash, shellshBrushBash.js
ColdFusioncf, coldfusionshBrushColdFusion.js
C#c-sharp, csharpshBrushCSharp.js
C++cpp, cshBrushCpp.js
CSScssshBrushCss.js
Delphidelphi, pas, pascalshBrushDelphi.js
Diffdiff, patchshBrushDiff.js
Erlangerl, erlangshBrushErlang.js
GroovygroovyshBrushGroovy.js
JavaScriptjs, jscript, javascriptshBrushJScript.js
JavajavashBrushJava.js
JavaFXjfx, javafxshBrushJavaFX.js
Perlperl, plshBrushPerl.js
PHPphpshBrushPhp.js
Plain Textplain, textshBrushPlain.js
PowerShellps, powershellshBrushPowerShell.js
Pythonpy, pythonshBrushPython.js
Rubyrails, ror, rubyshBrushRuby.js
ScalascalashBrushScala.js
SQLsqlshBrushSql.js
Visual Basicvb, vbnetshBrushVb.js
XMLxml, xhtml, xslt, html, xhtmlshBrushXml.js


C#:
// Hello.cs
using System;

public class Hello
{
   public static int Main(string[] args)
   {
      Console.WriteLine("Hello World!");
      return 0;
   }
}

JavaScript:
 
   function myFunction()
   {
      alert("Hello World!");
   }

Plain Text:
Hello World!

PowerShell:
$greeting = "Hello" <-- Comment example.
$name = read-host "What is your name?"
 "$greeting, $name!"

SQL:
CREATE PROCEDURE HelloWorld AS
PRINT 'Hello, world!'
RETURN (0)

XML:

   An XSLT Programmer
   Hello, World!


Above Text:
Above Text:
Some text.