Posts

Restore Problem "Restore-SPSite : The extension

Image
Next article - User's responsibility only! Years ago, I saw something in one of the blogs ... but I did not find any mention of it today (maybe Microsoft asked to delete the article because ...). I tried to migrate a DataBase between two environments, but I was told the versions did not match. Probably updates winsows Then I'll try through the power shell restore-spacesite But I got the following error Restore Problem "Restore-SPSite: The extension Microsoft.Office.Project.Server.Database.Extension.ProjectDatabaseExtension is version VVVV, and the backup was on version VVV These versions are incompatible. So what did I do? Do a backup before ... may be you will need it I opened the file in binary editor. In Visual Studio -> open file Open With Open as binary file editor And find the wrong virsion Now replace the number to your current virsion And try to run the command again (Restore-SPSite) For me it work ... hope for...

Converting SharePoint site from Version 2013 to 2016

Image
In this time Microsoft did a good job with Migration SharePoint 2013 to SharePoint 2016, and within a few hours it is possible to upgrade the site from 2013 to 2016 Even the code in Visual Studio was easy to upgrade  fron VS 2013 to VS 2015 update 3 with Office package I did this steps  Save wsp website (version 2013) Copy (backup restore) the DataBase from SQL 2012 DB 2016, and to ensure that it has sp admin privileges DB_Owner to the new DB In Central Adminstration -> Manage web applications a. Creating a Web Application with DB temporary b. Create a Site Collection c. Setting up the site in the hosts found in the C:\Windows\System32\drivers\etc\ with a local IP  Add the wsp site (Old from 2013) a. In powerShell -> Add-SPSolution -LiteralPath PATH b. Installing the solotion site (or in powerShell -> Install-SPSolution or in Central Adminstration -> System Settings -> Manage farm solutions) Remove the temporary DB site (in Central Adminstrati...

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