Posts

Showing posts with the label SharePoint 2013

WSP not deployed in all SharePoint servers in the farm

Image
If you want to deploy wsp file on the SharePoint farm ... and the installation failed on some of the farm servers -  then the solution is the timejob SharePoint deploy Run this code at SharePoint PowerShell $farm  = Get-SPFarm $disabledTimers = $farm.TimerService.Instances | where {$_.Status -ne "Online"} if ($disabledTimers -ne $null) {     foreach ($timer in $disabledTimers)     {         Write-Host "Timer service instance on server " $timer.Server.Name " is not Online. Current status:" $timer.Status         Write-Host "Attempting to set the status of the service instance to online"         $timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online         $timer.Update()     } } else {     Write-Host "All Timer Service Instances in the farm are online! No problems found" } PowerShell timer job Before reinstalling recycle time Job on each ...

SharePoint Service Provisioning - the service stuck on starting

Image
When I tried to run SharePoint service - Manage Metadata Web Service on the Central Admin ... I wait and still Staring (Stuck)... So again I ran the command (From SharePoint PowerShell) Get-SPServiceInstance -Server SERVERNAME| where-object  {$_.TypeName -eq "Managed Metadata Web Service"} | Start-SPServiceInstance -confirm:$false > $null And I got the Error Start-SPServiceInstance : An object of the type Microsoft.SharePoint.Administration.SPServiceInstanceJobDefinition named "job-service-instance-ba7339e3-fb42-49c4-ac66-ab08e84eae0f" already exists under the parent Microsoft.SharePoint.Administration.SPTimerService named "SPTimerV4".  Rename your object or delete the existing object. At line:1 char:111 + ... eb Service"} | Start-SPServiceInstance -confirm:$false > $null +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ...

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

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

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...

Value does not fall within the expected range

Image
Time introduced some strange problem. I needed to build a list with a lookup field. So build fields.. Then create content type.. and than a list detention.... Just.. Piece of cake. As you know, Lookup field problem must be linked to an existing list. So checking founder of the source list and then create the field. Something that looks like the following code plus or minus < Field Type ="LookupMulti" DisplayName ="Your List" Required ="FALSE" EnforceUniqueValues ="FALSE" Direction ="None" List ="Lists/YourList"      ShowField ="Title" Mult ="TRUE" Sortable ="FALSE" UnlimitedLengthInDocumentLibrary ="FALSE" Group ="YourGroup" ID ="{448f00a7-6cb5-4340-985f-990dd354f135}" SourceID ="{1ce2cabb-bea1-4137-aee8-b4f12b17abcc}"      StaticName ="YourName" Name ="YourName" Version ="3" /> The ...

Update and synchronize user names in SharePoint

Image
Often - people change their names in the organization - getting married, getting divorced, or just decide to change their name because ... For some reason, SharePoint can not synchronize the new names. Here's a command  for a version of SharePoint 2007 and up that will help you stsadm -o migrateuser -oldlogin Domain\OldUserName -newlogin Domain\NewUsername -ignoresidhistory For a version of SP 2010 and up , With PowerShell Move-SPUser –Identity " Domain \ OldUserName " –NewAlias "Domain\ NewUsername " Enjoy, Roi

SharePoint 2013 - view all site content

Image
Finally, after not significantly changed even from SharePoint 2003, SharePoint 2013 at this time, you could say changed the UI screen " view all site content sharepoint " In SharePoint  2010 it looks like this In SharePoint  2013 it looks like this Instead of "Create" has " Add an app ". Changed shape - more like squares of Windows 8 (Metro) And even the setting is on the top menu and not in the side I'm just beginning to learn in 2013 - that expects you to much more updates on It is currently Thank you all, Roi Kolbinger

Familiar programming model using web standards in SharePoint 2013

Image
One of the interesting things I see in this SharePoint 2013 - Familiar programming model using web standards According to the article - What's new for developers in SharePoint 2013 , Although the article does not specifically extends,, But it gives us a big picture of the structure of SharePoint 2013. Like I said before - the SP 15 gives us the OAuth 2 protocol - available to help us connect to other social like Facebook. Then of course there is support for HTML, CSS and JavaScript. Also has support for OData (Open Data protocol). and it has a support for ReST ( Represntationl State Transfer). I will update soon after I will learn it. Yours, Roi

Apps for SharePoint 2013

Image
A few days ago out version of the SharePoint  2013   (15) Beta. An emerging idea of SharePoint 2013 is the Apps . What is Apps for SharePoint? And how is it different from the Solutions? To the best of my understanding, App is Package (. App) also contains a WSP course, but also AppManifest.xml and Other files. While solution (WSP) can build by self-developed or from Third-party. The app can be obtained from Internal App Catalog (contains apps approved and uploaded by the organization) or from Public SharePoint Store. Apps can be used in your hosted or on-premises SharePoint App code is installed on a separate web site from your other sites in its own, isolated, domain or in the cloud (cloud-based apps). While Solutions can be used in your hosted (sandbox solutions only) or on-premises SharePoint Solution code is installed as a full trust solution (in the global assembly cache) or as a sandboxed solution. For more information. You  can be viewed at … ...

OAuth 2.0 protocol

Image
Today to share information of sharepoint with Facebook, Twitter, linkedin, google or live edu you need to create a SSO (single sign-on). As it seems, in sharepoint 15 (2013) we get a new protocol called OAuth 2.0. What is OAuth 2.0 protocol? OAuth 2.0 is an upgrade of Frotokl OAuth from 2006 (a more advanced generation evolution of the protocol). It allows us to authenticate a user and give it a specific and temporary approval of our application. OAuth specification is being developed in IETF WG and shell based on OAuth. The protocol has been implemented in applications of Android and iPhone user receiving the operating system (Yes. .. Android does not send the details of your gmail any foreign entity). Think now about a world in which the SP talking to him Ioser of Facebook, and get him to only specific permissions to share some information. SharePoint  15 will be continued... Roi

SharePoint 2013 is here

On the horizon loomed a new version of SharePoint! On the Microsoft site appeared SharePoint 2013 Technical Preview Managed Object Model Software Development Kit . What is it? On the download page says that the functionality described in the SDK, only applies to the interaction with other applications, Microsoft. So, what will happen with CAML-queries, receive a further development of Linq to SharePoint is still not clear. Download here : http://www.microsoft.com/download/en/details.aspx?id=28768 SharePoint App Store Much points to the fact that the new SharePoint'e appears something like the online application directory (sandbox solutions) that you can download and install on your portal. That such a method SPWeb.LoadAndInstallApp, which takes a parameter of type Stream (ie package) and returns an object of type SPAppInstance (Represents an SPApp object installed to a specific SPWeb site). We'll have to reconsider plans for boxed portals like Deskwork. All hope ...