Skip to main content

Posts

“An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.”

While running the product configuration wizard of Sharepoint foundation 2010, if you have come across the following error “ An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.” Here is the solution to overcome the issue,. Open the SQL server configuration manager.Select the SQL Server Network Configuration and select the Protocols for MSSQLSERVER. Make sure that TCP/IP protocol is enabled. If it is disabled, make it enable by right clicking on the TCP/IP ,Click on Enable option. Hope ...

The timer job for this operation has been created………..”

While deploying/retracting the solution using stsadm command , you may come across this error message The solution for the above problem as follows: § Go to central admin->monitoring->Review job definitions under Timer jobs §   Search for .wsp on the page .You will find a timer job “ XYZ.wsp is deploying / retracting ……blab la. ” §   Click on the XYZ.wsp is retracting/deploying timer job and click on the “DELETE” button. §   Now goto Services . goto start->Run->enter the text services.msc .find the service name “ Sharepoint 2010 Administration ” and start the service. §   Now continue with the process of deployment or retraction using stsadm command. This may help some one Cheers Pradeepa Achar

error occurred in deployment step 'recycle iis application pool' :object reference not set to an instance of an object

While deploying using Visual studio, we may get an error "error occurred in deployment step 'recycle iis application pool' :object reference not set to an instance of an object" Solution:  Don't get  panic ..Simply restart the visual studio with the solution which you wanted to deploy on to the site This may help some one. -cheers pradeepa achar

Programmatically read the value from web.config file

Here is a situation where you need to keep a key value pair element in the web.config file and read them during the run time. I suggest, better keep key /value pair under <appSettings> element and read it programmatically . <appSettings>   <add key=" LicenseKey " value=" 987jKouterhsk " /> </appSettings> Assume , you have added a license key as above in the web.config file. You need the license key during run time. You can access the license key class named "ConfigurationManager". write a property  called getLicenseKey and return the corresponding license key. public string GetLicenseKey {    get{   return  ConfigurationManager.AppSettings[" LicenseKey "]; } } Now the property GetLicenseKey will have the value 987jKouterhsk. Use this value as per your requirement. -Cheers Pradeepa Achar

How to get youtube video id ,prepare the IFrame and play the video using jQuery

<body>     <form id="form1" runat="server">     <div>     <input id=" vdo " />     </div> <div> <button id=" btn" >Click</button> </div> <div id=" fnl "> </div> <script> $(document).ready(function () { $(" #btn ").click(function (e) { e.preventDefault(); var url = $(" #vdo ").val(); var youtubeUrl = url.match(/watch\?v=([a-zA-Z0-9\-_]+)/); var source ="http://www.youtube.com/embed/" + youtubeUrl[1] ; output = '<iframe width="420" height="420" src="'+ source +'"  frameborder="0" allowfullscreen></iframe>'; $(" #fnl ").html(output); }); }); </script>     </form> </body> Hope this will help Cheers Pradeepa Achar

How to avoid refreshing of page on clicking on BUTTON in jQuery?

Suppose you might have created a button on page.When you click on that button without page refresh some other custom things have to happen. But instead of that, on clicking on the button the page is getting refreshed. How to avoid this?.. Simple, The button click event has default event as refreshing the page. The solution is to "prevent the default event". $("#ButtonID").Click(function(e) {   e.preventDefault(); //Write your custom code here } ); Hope this may help Cheers Pradeepa Achar