Posts

SharePoint 2013 - Get Item Url by REST API and Ajax

Hey, This time I will present code to get client-side item var  urlRequest = RoiGetItemUrl(item, listName, rootUrl);                     urlRequest.done( function  (data, textStatus, jqXHR) {                          var  path =  "" ;                         jQuery.each(data.d.results,  function  (i, result) {                             path = result.EncodedAbsUrl;                     ...

Delete SharePoint List by force with PowerShell

if cannot delete your SharePoint list try this PowerShell code - it will delete your list $web   =   Get-SPWeb   http://www.mysite.com $guid   =  [ Guid ] "a07a5c37-0f7c-423d- 846a-e9e525f7a8b7" $list   =   $web . Lists [ $guid ] $list . AllowDeletion   =   $true $list . Update () $list . Delete () $web . Dispose () Your, Roi

An error occurred while processing this request

Image
I recently started to develop a web form with knockout JS. The system is running on SharePoint 2010. The data given / taken  to  the form with JSON through WCF services. I had a problem, I did not want that the service will be expose to web. To prevent exposure, created casing in the SharePoint an Application Page. The WCF data services and any entity framework written in framework 4.5, and as you know that SharePoint 2010 and with the Application Page written in 3.5. This means that every reference to in the form of entity framework like linq or lambda expressions written in framework 3.5 - which created (and still creates) a lot of problems. I will present you one example of the problem we encounter - but Google unfortunately did not help. The following code in FW3.5 not working in Client Data Service if (ctx != null && ctx.UsersContext != null ) {      string username = "username" ;      v...

How to open a PDF file (or any file) in the sharepoint site

Image
Not long ago, I had to view a PDF file from sharepoint . But I got the following message: Do you want to save file-name from yours-site Who does not know this message? But I've  target ' self ' in 'a' tag html???? It turns out that SharePoint having your code to protect customers. They can only give you their familiar software like Office, but a pdf file - Microsoft unfamiliar terms. To resolve, you need to make a change in Central-Admin Go to your Web Application manage - General Setting Find Browser File Handling and Change the default to Strict . It all friends, now you can view any file on the portal (at your own risk). Your, Roi

Service Pack 2‏ (SP2) for Microsoft SharePoint 2010 and Office 2010

Last month came new version (Service Pack 2) for Office 2010, SharePoint 2010,  Project server 2010 and the Fast 2010. Here are some links that will help you Service Pack 2 for Microsoft Office 2010 (KB2687455) 32-Bit Edition http://www.microsoft.com/en-us/download/details.aspx?id=39667 Service Pack 2 for Microsoft Office 2010 (KB2687455) 64-Bit Edition http://www.microsoft.com/en-us/download/details.aspx?id=39647 Note: In addition to the products in the Office 2010 suite, service pack 2687455 also updates Microsoft Project 2010, Microsoft Visio 2010, and Microsoft SharePoint Designer 2010 Service Pack 2‏ (SP2) for Microsoft SharePoint Server 2010 (KB2687453) http://www.microsoft.com/he-il/download/details.aspx?id=39672 Service Pack 2‏ (SP2) for Microsoft SharePoint Foundation 2010 Language Pack (KB2687466) http://www.microsoft.com/he-il/download/details.aspx?id=39674 Service Pack 2‏ (SP2) for Microsoft FAST Search Server 2010 for SharePoint (KB2687446) http://...

Which w3wp process belongs to which App Pool

Image
Often you wonder which process belongs to which site (in my case usually SharePoint site)? Or maybe you just want to debug only your website on the development server . For this we have the appcmd. all you need is to run this command: %windir%\system32\inetsrv\appcmd.exe list wp Now you can see who is gobbling sites memory from is id (pid) Yours, Roi

Speedup Powershell at SharePoint 2013

Image
If you worked in stsadm in MOSS 2007 and even if it worked in SharePoint 2010 , you saw it slow. In 2010 we also added the powershell - who was sometimes slow. It turns out that in sharepoint 2013 not made significant changes - is suggested The solutions are Add crl.microsoft.com to your hosts file and point it to your local machine Go to Start -> Run Click "Drivers" (It need to open " C:\Windows\System32\drivers " - in not go to it) Go to folder " etc " and open " hosts " file with notepad and add this line 127.0.0.1       crl.microsoft.com Disclosure: this solution find a lot on Google - but my no significant change Disable the CRL check by modifying the registry for all user accounts that use STSADM and all service accounts used by SharePoint. Go to Start -> regedit and fund this location [HKEY_USERS\<userid>\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing] Yon need to change all y...