- December 9, 2008 at 6:20 pm #73
If installing Perfectforms in an environment with Sharepoint, the installation will go smoothly, but upon access the application, you may run into this error:
‘Request for the permission of type ‘System.Data.SqlClient.SqlClientPermission, System.Data, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089′ failed.’
The application will stop working all together.
Cause: The problem itself comes from the application assemblies being run under a low level of trust by the web server. The default installation of the web server assumes a full trust level for all web applications. This is, however, overridden by Sharepoint. Thus, the problem is susceptible of occurring on all machines where Sharepoint is installed.
Solution: Resolution The trust level for the application must be manually added in the ‘web.config’ files of the /services and /API folders of the installed application. Setting the trust level to “Full” solves the problem always but may upset the web server administrators, who may chose to allow PerfectForms a lower trust level. The modification is to be brought in the respective ‘web.config’ files, under the <system.web> entry by adding a like like this:
<trust level=”Full” originUrl=””/>
Of course, the trust level must be modified as seen fit by the web server administrator. Here is an introduction on trust levels for IIS:
You must be logged in to reply to this topic.