Posts

Showing posts with the label System

Limit access to your IIS site to specific security Active Directory groups

You can limit access to your IIS site to specific security Active Directory (AD) groups. Here are the steps to do this: Step 1 : Create or Identify the Security Group in Active Directory 1. Open Active Directory Users and Computers (ADUC)  on your domain controller. 2. Navigate to the Organizational Unit (OU)  where you want to create the group. 3. Right-click the OU, select New  > Group . 4. Name your group and ensure the Group scope  is set to Security . 5. Add users to this group who should have access to the IIS site. Step 2: Configure IIS to Use Windows Authentication 1. Open IIS Manager  on your web server. 2. Select your site from the Connections  pane. 3. Double-click Authentication in the Features View . 4. Enable   Windows Authentication  and Disable  other authentication methods like Anonymous Authentication . Step 3 : Set NTFS Permissions for the Site Folder 1. Navigate to the folder containing your IIS site's content. 2. Ri...

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

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

How to set as Secure Store Service in SharePoint 2010

Image
This time I'll introduce how to install   SSS (Secure Store Service) in SharePoint 2010 in 9 Easy Steps (tutorial) 1. Go to Central Admin -> Application Management On Service Applications link   Manage services on server 2. Start  Secure Store Service 3. Now, Click Applications Management then Manage Service Applications 4. Click New and then  Secure Store Service 5. Write Your Data 6. Click OK and you get this screen 7. On  Manage Service Applications you can see your service 8. Now you can create a new key - click Generate New Key 9. Write your key It all my friends, Roi

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

Add-SPSolution: Failed to extract the cab file in the solution

Image
Did you happen to get the following error message when you did the command  Add-SPSolution at PowerShell (or stsadm -o addsolution ...)? Add-SPSolution: Failed to extract the cab file in the solution Add-SPSolution: Failed to extract the cab file in the solution In my case a file called by graphic artist as q&a.jpg (questions and answers). Apparently not to use the characters in solution as ~ ! @ # $% ^ & * Who had written DDF files should know that. I've forgotten :) Enjoy, Roi Kolbinger

Enable-SPFeature: The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url

Image
After running the following command Enable-SPFeature-Identity DocumentSet-URL http://url I received the following error Enable-SPFeature: The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url ... Why ??? It happened to me because I copied some files at the time manually (not using the solution). The team system locks the files to ReadOnly . And the command fails (the readonly found only a deep excavation in the log files of sharepoint) The solution: D isables the ReadOnly for all the files in sub folders. It can be found here: Uncheck read only file for all sub folder with PowerShell I use this code at 14\Template folder Thanks, Roi

SharePoint 2010: Set session timeout on an FBA enabled site

One of the problems SharePoint 2010 when trying to work on Forms Based Authentication (FBA), all the settings in IIS (and web.config) enable sessions of not working. After researching on google, I realized it was a problem in SP 2010. There are many blogs that give code that fixes the problem by correcting the global.asax . I checked and indeed it works, but it does not seem the ultimate solution. Best solution is (for me) working on SharePoint 2010 SP1 . A code of PowerShell . Code: $sts = Get-SPSecurityTokenServiceConfig $sts.LogonTokenCacheExpirationWindow = (New-TimeSpan –minutes 20) $sts.WindowsTokenLifetime = (New-TimeSpan –minutes 20) $sts.FormsTokenLifetime = (New-TimeSpan -minutes 20) $sts.Update() Iisreset You can change the 20 minutes, of course. Hope I helped, Roi

Custom Timer Jobs: func FeatureActivated Access denied

Things worked in the past - do not work more And today issue timer job At MOSS 2007 on the timer job worked, and Today at SharePoint 2010 the timer job runs on owstimer.exe and get an error that the timer job does not work The Error Message: The description for Event ID 0 from source Application can not be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: Custom Timer Jobs: func FeatureActivated Access denied . The solution - PowerShell Run this code: $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService # turn off remote administration security $contentService.RemoteAdministratorAccessDenied = $false # update the web service $contentS...

SharePoint - Export to Spreadsheet (excel) Not Work

Image
Did you have a case where you wanted to work in Excel at sharepoint list view, but you had no some fields (like lookup field)? Can not " Export to Spreadsheet "? I had the case! Two solutions: 1 - Install SPD (is free). 2 - Because not every time we run straight to install the SharePoint Designer. The solution to install SharePoint.ExportDatabase activeX . Here's how to install the activeX of the excel Run from Address Bar this code javascript: var x =new ActiveXObject("SharePoint.ExportDatabase"); Address bar To see that it worked, do the following ... 1. Go to (from IE) tools -> Internet Option Internet Option 2. Programs -> Manage add-ons Manage add-ons 3. All add-ons All add-ons And see that ActiveX is enable :) There are more activexs needed to operate the sharepoint javascript: var x = new ActiveXObject("Microsoft.XMLDOM"); javascript: var x = new ActiveXObject("ListNet.ListNet...

Server is too busy

Image
This time I came across a seemingly simple problem I received the following message at the portal Server is too busy CPU processor of Windows SharePoint Server yield was 100% !!! CPU 100% Thanks to RRaveen - How to resolve the “Server Too Busy” error in asp.net , I understand what the problem. Previously explained how to solve a problem of " large data transfer in web service " I showed how to change executionTimeout on the web.config To correct the error - You need to change the variable " executionTimeout " to 3600 (this an hour because it a number of seconds - 60 * 60 = 3600) Go to the web.config and set the tag httpRuntime the following code on the " system.web " tag. < system.web >   < httpRuntime executionTimeout = " 3600 " maxRequestLength = " 51200 " > ... This should solve the problem. If not, Should reduce the number (the default is 110 seconds). thanks, Roi

Daily alerts do not work at SharePoint

Did you encounter a problem alerts list ? Something strange happened to me ( hurray sharepoint ...). A lerts were working fine - just a list daily alerts stopped working . I really do not know why this list . After searching on google - I realized that take care stsadm commands such problems . All you have to do is make those commands in the order ( and of course replace the http://YOURSITE to your site ) . stsadm -o updatealerttemplates -url http://YOURSITE -f "c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\alerttemplates.xml" -LCID 1037 stsadm.exe -o setproperty -url http://YOURSITE -pn alerts-enabled -pv true stsadm.exe -o setproperty -url http://YOURSITE -pn job-immediate-alerts -pv "every 5 minutes" I would like to thank Noam - helped me find the solution and fix the problem. Your, Roi

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

Image
Did you receive the following error when you tried to compile a project of SharePoint 2010? 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. So - the solution is simple You should be Full Permission on the SharePoint Farm - including a data base (DB owner). After it is completed - open the visual studio as administrator. Cheers, Roi Kolbinger

Failed to extract the cab file in the solution / Root element is missing

Image
Did you encounter the following error message? Failed to extract the cab file in the solution. I came across this message - in my case it was install a solution . Another problem I had with the solution Root element is missing. After thorough testing - I found the solution The Size of File wss.xsd was 0k Is the stsadm command uses this file ????.... Yes! All you need do is to copy from server that work correctly the file wss.xsd. Those who do not know the file is sitting in 12Hive \TEMPLATE\XML for MOSS 2007 14Hive \TEMPLATE\XML for SharePoint 2010 The file is responsible for all schema of the SharePoint . Hope I helped, Roi Kolbinger

Problem with stsadm addwppack command

Image
Recently I came across an unfamiliar problem, when I tried to install web-part (stsadm addwppack command). I ran the following simple command: D:\>stsadm -o addwppack -force -globalinstall -url http://mySite -filename WP_Debloy.CAB And the message I received: This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application. What the hell's going on? After games of all kinds of trials, I got a solution: instead of running the command -url , I ran the command -nodeploy . And I got the following message: "wp_debloy.cab" has an unsupported extension, and cannot be added to the solution store. So it's easy - Suddenly, the CMD is important for me to write in small letters (insteand of -filename WP_Debloy. CAB - You need to write -filename WP_Debloy. cab ). Yes... I got Operation completed successfully. Now I ran the command again with the -url command and everything went correctly. Yours, Roi

How to install and work with lockdown feature in SharePoint

Image
Lockdown Feature - if you want to lock anonymous users out of your SharePoint Forms pages on public site, Follow these steps: 1. Write this command on the server stsadm.exe –o activatefeature –url http://YourSite -name ViewFormPagesLockDown 2. Define Anonymous 2.1 Go to: Central Administration > Application Management > Authentication providers 2.2 Choose your site 2.3 Anonymous Access -> Enable anonymous access Now go to your site and define the site Anonymous. 2.3 Site Actions > Site Settings > Modify All Site Setting Users and Permissions > Advanced permissions > Actions > Anonymous Access > All sites Tips: 1 - If you broken your Permissions you will need to it (2.3) to all your sites 2 - Look this link: Work with a SharePoint list and Lockdown Feature

This page allows a limit of ... controls, and that limit has been exceeded

Image
הפעם משהו קטן שסביר להניח שנתקלתם ואם לא תתקלו במהלך העבודה בSharePoint, במיוחד שניסיתם להוסיף Control בMasterPage. השגיאה הנחמדה הבאה: This page allows a limit of  ... controls, and that limit has been exceeded אני לא יודע למה מיקרוסופט מגבילים את מספר ה control 'ים לערך נמוך בכל מקרה, אני מגדיר את ההגדרה ב Web.Config ל500 control 'ים (MaxControls="500")– זה מספיק ויותר. כל מה שצריך לעשות, זה להכנס לשרת/ים ולתת בהגדרה MaxControls ערך גבוה  ב Web.Config . < SharePoint >     < SafeMode MaxControls = " 500 " CallStack = " true " DirectFileDependencies = " 10 " otalFileDependencies = " 50 " AllowPageLevelTrace = " false " >       < PageParserPaths >       </ PageParserPaths >     </ SafeMode > ... נשתמע, רועי

Work with a SharePoint list and Lockdown Feature

Tip time: When you want to prevent Anonymous Users access to forms of the list, such as Allitems.aspx, Newform.aspx, Editform.aspx and Diapform.aspx in a SharePoint anonymous web site - use the Lockdown Feature . But how can Anonymous Users view or edit details of the list? Two possible: Development WebPart that performs the action - sometimes worth especially in developing or buying that WebPart is generic. Create a Custom Form page with SharePoint Designer in the library that not found in the directory list. Intention to create a page in SPD in a Library such as Library Pages. The feature does not prevent the pages that are not the library related to the list itself.. The second way, Sveta and I found it in the hard way.

Problems with wrong Alternate Access Mappings in SharePoint

Image
Does it ever happen to you that you're overwhelmed with problems, and you have no idea where to start? ... That was recently the case for me. I started a new Internet Web site in SharePoint 2007 (Anonymous site). I created a new edit site in a different port . Everything looked normal, the web parts are standards. The usual design ... All good. Then ... Problems began to emerge: 1. One Web Part that works with the site columns , does not work well on the editing site. I looked the code, but everything looks ok... The usual site (port 80) is working properly. 2. For some reason, in the editor site, it's impossible to list using the datasheet . 3. The most serious problem, when entering into Share Point Designer, and trying to run " Detach from Page Layouts " to a page I get " object reference not set to an instance of an object ." What does this mean? I will not give you my rigors of the journey for finding a solution, (Google didn’t help this time),...