Skip to main content

The Execute method of job definition “SPSolutionDeploymentJobDefinition” threw an exception, Value cannot be null.

I have developed an Timer Job Definition,feature & feature receiver to create the timer job.

On WSP deployment on my local machine it install with no issue 🙂

Now when deploying on the WebFarm environment with a Front end server , I faced following error.

The Execute method of job definition “SPSolutionDeploymentJobDefinition” (id “030bb074-94a8-4f5d-bf34-b4ca735c1693”) threw an exception. Failed to create feature receiver object from assembly “Company.Project.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1f12345e9c67bc89”, type “Company.Project.Business.EventReceivers.MyTimerJobFeatureReceiver” for feature C0857DB8-1636-11E0-AC62-40DFDED72085: System.ArgumentNullException: Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)

at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

Initially I thought It is something wrong with the Event Receiver Class and the application could not find the class. Changed the scope of Class, changed the name of the class, restarted IIS, But I no result.

After two hours of troubleshooting, I restarted

SharePoint/MOSS Enter Key On Search Box Not Working In Firefox

I cam across a strange situation where the page of my SharePoint website just refreshes itself when I search on my site using the Enter key. I noticed this was only a problem when I use Firefox.

On Goggling I found following solutions

http://social.msdn.microsoft.com/Forums/en-US/sharepointecm/thread/87574c13-91d6-48fe-8346-01e77e0094b3

http://blog.drisgill.com/2009/08/firefox-doesnt-respond-to-enter-key-in.html

http://blogs.msdn.com/b/jjameson/archive/2009/10/01/enter-key-does-not-submit-search-in-moss-2007-from-firefox.aspx
I modified the solution by Jeremy Jameson, to suit my requirements.

    <script language="javascript"> function replaceOnKeyPress()
    {
    var theInputID = $("input[name$='InputKeywords']").attr("id");
    if(typeof(theInputID) != "undefined")
    {
    var theFunction=theInputID.replace("InputKeywords", "");
    var LastindextOf =theFunction.lastIndexOf("");
    if (LastindextOf >0)
    {
    theFunction=theFunction.substring(LastindextOf+1,theFunction.length);
    theFunction = theFunction + "_Submit();";
    var txt = document.getElementById(theInputID);
    var browser = navigator.appName;
    if (txt && (browser == "Netscape"))
    {
    txt.onkeypress = function(e)
    {
    var key = String.fromCharCode(e.keyCode);
    if (key == "\n" || key == "\r")
    {
    eval(theFunction);
    return false;
    }
    }
    }
    }
    }
    }
    replaceOnKeyPress();
    </script>