Skip to main content

Posts

Showing posts from 2015

Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm.

while deploying the solution using visual studio you may get this error -"Error occurred in deployment step 'Recycle IIS Application Pool': The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm. " Solution:   Hint for the solution is in the error message itself. It is not able to connect to sharepoint server means it is not able to communicate to  database instance. i.e the instance might have stopped. So goto SQL Server configuration manager. Click on start and search for "SQL Server configuration manager". You should know that the sharepoint installed to which instance? In my case it is sql server(sharepoint). It was stopped. Just start the instance by right click on that and select Start option. Now start deploying the solution from visual studio Hope this may help someone thanks pradeepa achar

[Solved]:How to make SharePoint site or any site to work in READONLY mode

Some times there will be situation where we have to make the site to work in read only mode for the end user so that they can access the site , get the contents . That's it. They should not add any more data .This type of situation comes because of certain reasons. one among them i can say is, we are moving the database to another server and later we are making all the users to access new server for further usage. During this process if the user adds data it will be big problem. So let's make users to use the site in readonly mode. Solution:   In order to achieve this , follow the following steps: 1. Open the visual studio management studio and right click on  the database to which your site is attached to save the data. Now select the Properties 2.click on the "Options" 3.Scroll down till "State" and make the Database Read-only to True Now..it is done!!!.. Let the user access the s

[SOLVED] : Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow) at Microsoft.SharePoint.SPListItemCollection.GetColumnNumber(String groupName, Boolean bThrowException) at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow) at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException) at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException) at Microsoft.SharePoint.SPListItem.get_Item(String fieldName) at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue

I wanted to retrieve a SPListItem  value and got error while debugging as- "   at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName, Boolean bThrow)    at Microsoft.SharePoint.SPListItemCollection.GetColumnNumber(String groupName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex, Boolean bThrow)    at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)    at XPoint.Base.Extensions.c_SPExtensions.GetFieldValue " I started banging my head like anything. because for another column of  same field type it was working fine and for one of the column of same field type it was giving this error. Those fields i have created through schema. So i created one more column of same type and tr

Extract / How to Get DLL from assembly folder or GAC or Global Assembly Cache

Some times we might have got typical question around how to get the particular dll from assembly folder. Because when you open that assembly folder it doesn't allow you to do normal operation as in windows explorer. Solution:  Click on start button Select RUN Enter the following path to the directory                     C:\windows\assembly\GAC_MSIL An window will get open.All the folders you see in that window are dlls . So select the required dll folder and open it by double click on that. Inside that one more folder will be there. Within that folder you can get your dll. Simply right click on that and copy . Paste it in required file system Hope this may help some one during site upgrade Thanks pradeepa achar

[jQuery] Sort arrays based on element in each of the array in alphabetical order

Hi All  you might be thinking how to sort arrays inside an array based on element in each of those arrays.By reading this sentence you got confused , isn't it? Yes. Let me explain now in detail Problem statement : You have an array which in turn has 2 or any number of arrays. Let us state as Parent Array and 'n' number of children arrays say it as child1,child2,child3 etc each children array has 3 or any number of elements.assume that child1[ badam , pista ] and child2[ apple , mango ] etc Now we need to sort children arrays by comparing items in each of these children arrays and sort the children array based on alphabetical order resulted by comparing items in each of children array. Mathematically we have 3 dimensional array. Lets resolve this issue using jquery as follows: Solution : Assume the parent array captured in jquery function as mainObject.Parent . Its first item is the array which holds two more arrays inside each of them items are there based on