Showing posts with label SharePoint2010. Show all posts
Showing posts with label SharePoint2010. Show all posts

Friday, October 9, 2015

Redirect from one page to another Page in SharePoint 2010

Redirect from one page to another Page in SharePoint 2010

Today I got a new request from the client for the Page redirection in SharePoint.
This will be possible with adding a content Editor WebPart with the following JavaScript.


<meta http-equiv="refresh" content="0;url=http://server/sites/default.aspx">

Thursday, September 5, 2013

Sys.WebForms.PageRequestManagerServerErrorException: An unexpected error occured.

 Issue:Sys.WebForms.PageRequestManagerServerErrorException: An unexpected error occured.
 
 
When a Site Collection is created,  by default a Style Resource Readers group is created.  This group contains all authenticated users, and has:

  • Restricted Read permission over the Style Library
  • Read permission over the Site Collection Images library

The Style library is used to hold CSS and styling for the SharePoint site, therefore permission IS needed over this.
 
NOTE: In some cases it might be required to add the users that have the Wiki Problem to Style Ressource Readers manually. Haven't had the time to go after that tough, just keep it in your mind if you need it.
ANOTHER NOTE: A customer once accidentially deleted the Style Ressource Readers Group. Deleting SharePoint OOTB groups is never a good idea. He recreated the group (just manually added a new group) but it didn't work as expected. If you have to recreate Style Ressource Readers also check the following settings:
The group has to be given read permissions to the Master Page Gallery and the Style Library. This is done under Site Actions > Manage Content and Structure > (Master Page Gallery) Edit Properties > Permissions for the document library > New
 
 
Resources reference:
http://blogs.technet.com/b/sharepointjoe/archive/2011/01/19/sp2010-wiki-pages-quot-sys-webforms-pagerequestmanagerservererrorexception-an-unexpected-error-occured-quot-when-editing-a-page.aspx 

Wednesday, August 14, 2013

Create redirect for Top Visitors Metrics Report



This is related to Url redirection for the TopVisitors link from the Site- Web analytics reports .
 Url :/_layouts/WebAnalytics/Report.aspx?t=SummaryReport&l=sc  and please click on “TopVisitors”  link from the left hand side quick launch.( provided access to all of you on this site )

From the Out of the box features of IIS, implemented the redirecting the Top visitors link to “The Webpage cannot be found”. This will applicable to entire web application level.




unable to view workbook1.xlsm excel


workbook1.xlsm  excel is containing unsupported features to render in SharePoint.

They are:

Ø  Macros Enabled
Ø  Sheet Protection
Ø  File format should be - .xlsx not xlsm

Disable Macros in excel 2010:
  Click the Microsoft Office Button , and then click Excel Options.
  Click Trust Center, click Trust Center Settings, and then click Macro Settings.
  Click the options that you want:
  • Disable all macros without notification Click this option if you don't trust macros. All macros in documents and security alerts about macros are disabled. If there are documents with unsigned macros that you do trust, you can put those documents into a trusted location. Documents in trusted locations are allowed to run without being checked by the Trust Center security system.
  • Disable all macros with notification This is the default setting. Click this option if you want macros to be disabled, but you want to get security alerts if there are macros present. This way, you can choose when to enable those macros on a case by case basis.
·         Change the file Format name from XLSM to xlsx:
·              Save the File format from .xlsm to .xlsx

Unable to view "View Workflow Reports"


Issue Description:
----------------------
Error loading the template {guid} for the Cancellation & Error Report report.

Error:  Value does not fall within the expected range.

Resolution:
--------------

After investigating, found that the issue was happened due to the reporting feature in the Site collection.

Deactivate and activate the Reporting service within the Site collection level,  will  allow to display all the reports related to workflows.

Tuesday, June 4, 2013

Activating SharePoint Server Publishing features through STSADM commands


Activating SharePoint Server Publishing features through STSADM commands:
=========================================================

stsadm -o activatefeature -filename publishing\feature.xml -url   -force
stsadm -o activatefeature -filename publishingresources\feature.xml -url     -force
stsadm -o activatefeature -filename publishingSite\feature.xml -url     -force
stsadm -o activatefeature -filename publishingweb\feature.xml -url    -force
stsadm -o activatefeature -filename publishinglayouts\feature.xml -url    -force
stsadm -o activatefeature -filename navigation\feature.xml -url   -force

Ref:http://chugene.blogspot.in/2012/02/can-not-activate-sharepoint-server.html

Tuesday, May 14, 2013

Errors with Webanalytics Reports in SharePoint 2010

Error:

There is no data available for this report. Here are some possible reasons: 
(1) Web Analytics has not been enabled long enough to generate data; 
(2) There is insufficient data to generate this report; 
(3) Data logging required for this report might not be enabled;
(4) Data aggregation might not be enabled at the level required for this report

Solution:

Clear SharePoint CONFIGURATION cache. (not output cache, configuration cache).
  1. Stop the Windows SharePoint Services Timer service
  2. Navigate to the cache folder
    • In Windows Server 2008, the configuration cache is in the following location: %SystemDrive%:\ProgramData\Microsoft\SharePoint\Config\GUID
    • In Windows Server 2003, the configuration cache is in the following location: %SystemDrive%:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\GUID
  3. Locate the folder that has the file "Cache.ini" in it
  4. Back up the Cache.ini file. DO NOT DELETE THIS FILE
  5. Delete all the XML configuration files in the GUID folder.
    • Make sure that you do not delete the GUID folder and the Cache.ini file that is located in the GUID folder.
  6. Edit the Cache.ini file and replace all content with "1" (without quotes).
  7. Start the Windows SharePoint Services Timer service
  8. Make sure the the xml files are re-created in after you start the service
  9. Wait untill all files are re-created and the value in the Cache.ini file matches the one on the backup file and repeate the procedure on every SharePoint servers in the farm.
References:
http://www.rogeriocruzeiro.com/tech-blog/item/clear-the-sharepoint-configuration-cache

Wednesday, April 10, 2013

Collaborate editing in Excel by multiple users concurrently in SharePoint 2010


The Excel webapp(Edit in the browser) is the only the procedure to do collaborate editing in Excel by  multiple users concurrently.

Steps:
1.       Choose the file to update
2.       Tick the “Type” field
3.       “Edit in browser”
4.       Update fields
5.       Click on Folder>Test File
6.       Go back to sheet to ensure update is there

References:

http://office.microsoft.com/en-us/excel-help/about-shared-workbooks-HP005262294.aspx
http://www.kraftkennedy.com/blog/bid/102003/Simultaneous-Editing-in-Office-2010-Web-Apps-Only-in-Excel
http://blogs.office.com/b/microsoft-excel/archive/2010/01/21/collaborative-editing-using-excel-web-app.aspx

Friday, April 5, 2013

Step by step Configuring PDF IFilters in Sharepoint2010 Search

Step by step Configuring PDF IFilters in Sharepoint2010  Search

Reference:
http://www.codeproject.com/Articles/82546/How-to-configure-PDF-iFilter-for-SharePoint-Server
http://www.mossgurus.com/adnan/Lists/Posts/Post.aspx?ID=9
http://www.sharepointdiary.com/2011/03/pdf-search-ifilter-configuration.html
  1. Install PDF iFilter 9.0 (64 bit) from here.
  2. Download PDF icon file from pdf16.gif and copy at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\.
  3. Add the following entry in docIcon.xml file, which can be found at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML.
    <Mapping Key="pdf" Value="pdf16.gif" /> 
  4. Add PDF file type on the Manage File Type page under Search Service Application.
  5. Open registry by executing regedit on the Start --> Run.
  6. Navigate to the following location:
    \\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\
    14.0\Search\Setup\ContentIndexCommon\Filters\Extension 
  7. Right-click Extension, a menu will appear.
  8. Click New--> Key to create a new key for .pdf. See screen shot below:
  9. Enter .pdf and save key.
  10. Now add the following GUID in the default value as shown in the figure below.
    {E8978DA6-047F-4E3D-9C78-CDBE46041603} 

  11. If you are configuring SharePoint Server 2010, then restart Search service by executing the following command on the command line:
    net stop osearch 
    net start osearch 
  12. If you are configuring PDF iFilter on Search Server 2010, then restart the SharePoint Server Search 14 service as shown in the figure below:
  13. Perform incremental to include PDF files.
  14. PDF iFilter is successfully configured. Now you can search for the content of PDF file. See screen shot below:

Thursday, February 7, 2013

Configure object cache user accounts

Configure object cache user accounts

SharePoint 2010
14 out of 22 rated this helpful - Rate this topic
Published: June 17, 2010
The object cache stores properties about items in Microsoft SharePoint Server 2010. Items in this cache are used by the publishing feature when it renders Web pages. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. The object cache makes its queries as one of two out-of-box user accounts: the Portal Super User and the Portal Super Reader. These user accounts must be properly configured to ensure that the object cache works correctly. The Portal Super User account must be an account that has Full Control access to the Web application. The Portal Super Reader account must be an account that has Full Read access to the Web application.
ImportantImportant:
The Portal Super User and Portal Super Reader accounts must be separate accounts, and they must not be accounts that will ever be used to log in to the site.
This article explains why these object cache user accounts must to be configured and describes how to configure the accounts. For information about the object cache, see Cache settings operations (SharePoint Server 2010).
In SharePoint Server 2010, querying for items is linked with the user account that makes the query. Various parts of the publishing feature make queries for which the results are cached in the object cache. These results are cached based on the user making the query. To optimize the cache hit rate and memory requirements, the queries must be based on whether a user can see draft items. When a publishing control requests the object cache to make a query to get data for the control, the cache makes the query, not as the user making the request, but instead it makes the query twice: once as the Portal Super User account and once as the Portal Super Reader account. The results of these two queries are stored in the object cache. The results for the Portal Super User account include draft items, and the results for the Portal Super Reader account include only published items. The object cache then checks the access control lists (ACLs) for the user who initiated the request and returns the appropriate results to that user based on whether that user can see draft items. By adding the Portal Super User and Portal Super Reader accounts to the Web application, the cache must store results for only two users. This increases the number of results that are returned for a query and decreases the amount of memory that is needed to store the cache.
By default, the Portal Super User account is the site’s System Account, and the Portal Super Reader account is NT Authority\Local Service. There are two main issues with using the out-of-box accounts.
  1. The first issue is that some items get checked out to System Account, so when a query that includes these items is made, the checked out version of the item is returned instead of the latest published version. This is a problem because it is not what a user would expect to have returned, so the cache has to make a second query to fetch the correct version of the file. This negatively affects server performance for every request that includes these items. The same problem would occur for any user who has items checked out, if that user’s account was set to be the Portal Super User account. This is why the accounts configured to be the Portal Super User and the Portal Super Reader should not be user accounts that are used to log into the site. This ensures that the user does not inadvertently check items out and cause problems with performance.
  2. The default Portal Super Reader account is NT Authority\Local Service, which is not correctly resolved in a claims authentication application. As a result, if the Portal Super Reader account is not explicitly configured for a claims authentication application, browsing to site collections under this application will result in an “Access Denied” error, even for the site administrator. This error will occur on any site that uses any feature that explicitly uses the object cache, such as the SharePoint Server Publishing Infrastructure, metadata navigation, the Content Query Web Part, or navigation.
In this article:

Configure object cache user accounts by using Central Administration and Windows PowerShell

You can configure the user accounts for the object cache by using Central Administration and Windows PowerShell. You must first create the accounts in the Central Administration Web site and then add the accounts to the Web application by using Windows PowerShell. You must add the user accounts to each Web application.
CautionCaution:
At the end of this procedure, you must reset Internet Information Services (IIS) to apply the changes to the Web application. Be sure to perform this procedure when there will be minimal disruption to users that are connected to the site. For more information about IISReset, see IIS Reset Activity.

To create the user accounts by using Central Administration

  1. Verify that you have the following administrative credentials:
    • To create the user accounts in Central Administration, you must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.
  2. On the Central Administration Web site, in the Application Management section, click Manage web applications.
  3. Click the name of the Web application that you want to configure.
  4. On the Web Applications tab, in the Policy group, click User Policy.
  5. In the Policy for Web Application window, click Add Users.
  6. From the Zones list, select All zones, and then click Next.
  7. In the Users box, type the user name for the Portal Super User account.
  8. Click the Check Names icon to ensure that the account name can be resolved by the authentication providers on the application server.
  9. In the Choose Permissions section, check the Full Control - Has full control box.
  10. Click Finish.
  11. Repeat Steps 5 through 8 for the Portal Super Reader account.
  12. In the Choose Permissions section, check the Full Read - Has full read-only access box.
  13. Click Finish.
  14. Make note of how the names for the Object Cache Super Reader and Object Cache Super User accounts are displayed in the User Name column. The displayed strings will be different depending on whether you are using claims authentication for the Web application.

To add the user accounts to the Web application by using Windows PowerShell

  1. Verify that you meet the following minimum requirements: See Add-SPShellAdmin.
  2. Copy the following code and paste it into a text editor, such as Notepad:
    $wa = Get-SPWebApplication -Identity ""
    $wa.Properties["portalsuperuseraccount"] = ""
    $wa.Properties["portalsuperreaderaccount"] = ""
    $wa.Update()
    
  3. Replace the following placeholders with values:
    • is the name of the Web application to which the accounts will be added.
    • is the account to use for the Portal Super User account as you saw it displayed in the User Column field mentioned in Step 14 of the previous procedure.
    • is account to use for the Portal Super Reader account as you saw it displayed in the User Column field mentioned in Step 14 of the previous procedure.
  4. Save the file, naming it SetUsers.ps1.
    noteNote:
    You can use a different file name, but you must save the file ANSI-encoded as a text file whose extension is .ps1.
  5. Close the text editor.
  6. On the Start menu, click All Programs.
  7. Click Microsoft SharePoint 2010 Products.
  8. Click SharePoint 2010 Management Shell.
  9. Change to the directory where you saved the file.
  10. At the Windows PowerShell command prompt, type the following command: ./SetUsers.ps1
  11. Reset Internet Information Services (IIS). For more information about IISReset, see IIS Reset Activity