by Burhan Ramay
Problem
During deployment of InfoPath 2010 form in SharePoint 2010 with one web front-end server I encountered an unknown error which I am going to describe and hopefully will be helpful to others.
Publish form to SharePoint Library through InfoPath Designer
In the publishing process, option Enable this form to be filled out by using a browser is disabled or showing a message like “Publish administrator approved form”. In this scenario, the browser enabled form can’t be published but can be published if someone wants to use client application to fill the form. But web services to access User Profile will not work in any case.
Publish form by using Central Administration
In this situation another option is to publish the form by using central administration. First save the form template by using Administrator-approved form template (advanced). Then upload it through central administration:
When Browse the form template from saved location and hit Upload button I got the following error:
You cannot deploy this solution on this type of server computer as it is configured. This solution must be installed on a server of type: front-end Web server.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 6696fa4c-b682-4f94-8ecf-a0f599245c32
ULS Logs showed the following error:
System.InvalidOperationException: You cannot deploy this solution on this type of server computer as it is configured. This solution must be installed on a server of type: front-end Web server. at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CanRunOperationInLocalServer()
Solution
It usually happens due to SharePoint loopback check and following are the steps need to be performed on server as a workaround:
- Click Start, click Run, type Regedit, and click OK
- In Registry Editor, find registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA
- Right-click LSA, point to New, and click DWORD Value
- Type DisableLoopbackCheck, and press ENTER
- Right-click DisableLoopbackCheck, and click Modify
- In the Value data box, type 1 and click OK
- Quit Registry Editor
- May need to Restart Server