Search This Blog

Loading...

Monday, November 19, 2012

About InfoPath in SharePoint 2010


InfoPath 2010

·         Part of Office Professional Plus 2010

·         Tool to design electronic forms

·         These eForms can be published to SP Server

·         Two tools

o   InfoPath Designer 2010

o   InfoPath Filler 2010 (Only when used outside SharePoint)

·         In SharePoint

o   InfoPath Forms Services part of Enterprise Edition

·         Usage of InfoPath in SharePoint

o   InfoPath Customization for a Custom List

o   InfoPath Form Libraries

o   DIP – Document Information Panel

·         Two Development Approaches

o   InfoPath forms without code

o   InfoPath forms with code (Written using C# or VB.Net – this is called as VSTA – Visual Studio Tools for Applications)

·         InfoPath Form Templates

o   XSN : XML Schema Notation

Friday, October 19, 2012

HTTPS Site InfoPath Issue : You do not have permissions to access a web service that provides data required for this form to function correctly

Also, if you look at the Event Viewer, you might find the below issue:
An operation failed because the following certificate has validation errors.....
It could look something like this:
The solution to fix this issue is to add the root certificates of the SSL certificate to the SharePoint 2010:
  1. Open the SharePoint 2010 Central Administration
  2. Open the ‘Manage Trust’ section under the ‘Security’ Tab
    SharePoint 2010 - Manage Trusts
  3. Add the SSL Certificate and all the Root Certificates of the certificate chain.
    The best way to import the certificates is to store them in base-64 files with the file extension *.cer
  4. Now check if the SharePoint 2010 Portal is working via the Https url



Friday, June 15, 2012

The super user account utilized by the cache is not configured


Resolving "The super user account utilized by the cache is not configured."

If you have a SharePoint Publishing site and you check the event viewer every once in a while you might see the following warning in there:
Object Cache: The super user account utilized by the cache is not configured. This can increase the number of cache misses, which causes the page requests to consume unneccesary system resources.
To configure the account use the following command 'stsadm -o setproperty -propertyname portalsuperuseraccount -propertyvalue account -url webappurl'. The account should be any account that has Full Control access to the SharePoint databases but is not an application pool account.
Additional Data:
Current default super user account: SHAREPOINT\system

This means that the cache accounts for your web application aren’t properly set and that there will be a lot of cache misses. If a cache miss occurs the page the user requested will have to be build up from scratch again. Files and information will be retrieved from the database and the file system and the page will be rendered. This means an extra hit on your SharePoint and database servers and a slower page load for your end user.

If you are upgrading a SharePoint 2007 environment that used forms based authentication, or you are moving a content database with a web application that uses forms based authentication in there you will not only see this message, you will get continuous access denied errors instead.

As the warning in the event log suggests there is a way to fix this by running an STSADM command. Unfortunately this is only part of the story.

The way to correct this problem is to first create two normal user accounts in AD. These are not service accounts. You could call them domain\superuser and domain\superreader, but of course that’s up to you.

The domain\superuser account needs to have a User Policy set for that gives it Full Control to the entire web application. In order to do this you perform the following steps:
  • Go to Central Administration
  • Go to Application Management
  • Go to Manage Web Application
  • Select the web application we’re talking about
  • Click User Policy
  • Add Users
  • Click Next
  • Fill in domain\superuser
  • Select Full Control
  • Click OK
The domain\superreader account needs to have a User Policy set for that gives it Full Read to the entire web application. In order to do this you perform the following steps:
  • Go to Central Administration
  • Go to Application Management
  • Go to Manage Web Application
  • Select the web application we’re talking about
  • Click User Policy
  • Add Users
  • Click Next
  • Fill in domain\superreader
  • Select Full Read
  • Click OK
If your web application is using claims based authentication the users should be displayed like i:0#.w|domain\superuser and i:0#w|domain\superreader.
Now we need to assign the right values to the right properties of the web application. If you are using classic authentication you could use the STSADM command mentioned in the event log warning.

However if you are using any type of claims based authentication you will need to use Windows PowerShell. And Windows PowerShell is the hipper more modern and sustainable option anyway.
If you are using classic mode authentication run the following cmdlets on one of your SharePoint servers:
$w = Get-SPWebApplication "http://<server>/"
$w.Properties["portalsuperuseraccount"] = "domain\superuser"
$w.Properties["portalsuperreaderaccount"] = "domain\superreader"
$w.Update()
If you are using claims based authentication run these cmdlets on one of your SharePoint servers:
$w = Get-SPWebApplication "http://<server>/"
$w.Properties["portalsuperuseraccount"] = "i:0#.w|domain\superuser"
$w.Properties["portalsuperreaderaccount"] = "i:0#.w|domain\superreader"
$w.Update()
After you've run these PowerShell cmdlets you need to perform an IISRESET to finish it off.
Now you should be freed from the warnings in the event viewer. If you got access denied messages because you moved a content database with a web application that uses claims based authentication you should now be able to log in again.


Microsoft has published an article about the Object Cache User Accounts on TechNet. It can be found here: http://technet.microsoft.com/en-us/library/ff758656.aspx., but they don't talk about Claims Authentication here though! :(

Thursday, June 14, 2012

Hide Workflow History in WrkStat.aspx

There are times when you want to show the Workflow History only to Admin Users and not for normal users. But whenever a user clicks on the status of the Workflow, it redirects to the _layouts/WrkStat.asp and shows all information for all users.
In order to avoid that, we can take advantage of the SPSecurityTrimmedControl.

Open the WrkStat.aspx from 14->template->layouts in Visual Studio and then
add
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageLists"> in Line 128
and close the tag in Line 239.
You will have the Workflow History Page appear like this for non-admin users :)

Tuesday, June 12, 2012

Showing QuickLaunch in a WebPart Page

With SharePoint 2007 all you needed to do was edit the page in SharePoint Designer and remove the following 2 lines:

< asp:Content ContentPlaceHolderId=”PlaceHolderNavSpacer” runat=”server”></asp:Content>
< asp:Content ContentPlaceHolderId=”PlaceHolderLeftNavBar” runat=”server”></asp:Content>
With SharePoint 2010 you also need to delete the following:

< style type=”text/css”>
body #s4-leftpanel {
display:none;
}
.s4-ca
{
margin-left:0px;
}
</style>

The quick launch will now display on the web part page.

Make sure you do this in the Advanced Editor Mode of this WebPart page.

Tuesday, May 29, 2012

SharePoint 2010 Stop .debug.js files from downloading

http://sharepoint.stackexchange.com/questions/13455/can-all-the-layouts-xxx-debug-js-files-not-be-served-to-end-users


When I view my SharePoint site I see a lot of .debug.js files being added by SharePoint. Is there a way to stop this happening.
  1. cui.debug.js
  2. core.debug.js
  3. sp.debug.js
  4. sp.ribbon.debug.js
  5. init.debug.js
they account for around 400k of the page download.

Gotcha, in your masterpage, set the ScriptMode to Release, so that it looks like this: <asp:ScriptManager id="ScriptManager" runat="server" ScriptMode="Release" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true" />
 – James Love May 26 '11 at 18:25