Posts

The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web at SharePoint

Image
I recently had the following error when I tried to add a document to a document library. The URL <file name>  is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.  A quick search on google said that brought the resources of SQL Server. I checked and indeed I increased the resources but to no avail. Even my examination chrome and Internet Explorer. I checked Word file, PDF, and even a small text file. A.  Nothing helped. I opened a new document library, and in fact it could add document :)  Ok ... what is the problem ???  It should be noted in the document library came from List Definition and Content Type preset. I started to check each field and field Then I got a Date Field in the file probably was not his elemet.xml incubated right.  When I set it to Today date .... it worked  All it needed was simply to write the true definition of the field  ...

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