Posts

Showing posts from 2013

Android Fix: "Insufficient storage available"

If you have Android phone for few months which is running on version 4.2 or less,  while updating your apps  you might have faced issue of  "Insufficient storage available" . Resolution : Try to clear data from the play store in the application manager.  If that doesn't work, clear it again along with Google services framework.  You need to sign in to your Google account again. But this helps for sure. Enjoy updating apps on android.

Could not load file or assembly 'Microsoft.SharePoint.ApplicationPages'

Recently I received following error on SharePoint: Could not load file or assembly 'Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied. … In the error, we can see that obviously we do not have permission, but who is trying to access the DLL? It is not the Application Pool account, but the Anonymous IIS account.  Simple fix, check to see what account is running in Directory Security, give read permission to that user for the _app_bin folder, and recycle the application pool. Should be fixed. 

Sql Script Generator

During project development you might have come across a situation where you need Insert script along with values from SQL Table. Found a very useful tool  SQL Script Generator   at CodePlex.  SQL Script Generator is a tool for generate INSERT/UPDATE statement SQL script. With SQL Script Generator you can create script to copy data from one database to another.

Shrink LDF file in SQL SERVER 2005

I recently encountered an issue on one of our development box, where SQL log files on C:\ and transaction logs grew to 13GB, on the other hand the DB size is just 29 MB. Used following SQL query to reduce the size of log file to free up the space ALTER DATABASE [DBNAME] SET RECOVERY SIMPLE; GO --Shrink the truncated log file to 1 MB. DBCC SHRINKFILE ( [DBNAME_LOGFILE_NAME] , 1); GO --Reset the database ALTER DATABASE  [DBNAME] SET RECOVERY FULL; GO

Corrupt WMI Causing SharePoint Provisioning to Fail

Image
Recently our team ran into an issue where SharePoint where solution deployment is failing with following errors. After troubleshooting and going through the forums it was suspected that WMI might be corrupt on the Windows 2003 Server hosting SharePoint. To confirm the suspicion that WMI was indeed corrupt, we used the wbemtest.exe utility to check connectivity. Click Connect: Click Connect, using the default values: If no error is thrown, you have successfully connected to the local machine via WMI. If “Not Found” error message is received, you indeed have a corrupted WMI instance. To further test, you could execute the following WMI query to test the specific class SharePoint is querying during search provisioning, using the following example: If you received an error message when trying to connect, you can attempt to re-register the WMI .dll’s and .exe’s using the following seven steps: 1. Disable and stop the Windows Management Instrumentation service. 2. Right-

Mutual SSL Authentication

Detailed introduction to Mutual SSL Authentication by Elvin Cheng. http://www.codeproject.com/Articles/326574/An-Introduction-to-Mutual-SSL-Authentication

WCF WSDL location address Issue resolved when hosted over HTTPS with basicHTTPBinding

Image
Recently I was working on a WCF web service which needs SSL implementation using basicHttpBinding, so that the service remains inter-operable and cater to native clients. Everything was going well, I was able to host my web service over HTTPS (I will detail out the configuration for the same in section below). But when I deployed on Server, following errors were received when proxy is generated: " Metadata contains a reference that cannot be resolved: " " The WSDL document contains links that could not be resolved." The issue lies with the WSDL which generates the location url with client machine name, which restricts generation of appropriate proxy over Internet because it will never be able to resolve machine name over internet. Here is what the Soap Address location and WSDL Import location look like in my WSDL: < soap:address location ="https://MachineName.mydomain.com/MyService/Service.svc" /> < wsdl:import   locati