I have an infopath form with qRules and it published successfully. But when i try to add the form into the library, it gives following error
"The custom code in the form cannot be run. This functionality maybe deactivated on the server. For more information contact the Farm Administrator".
I have verified the service "Microsoft SharePoint Foundation Sandboxed Code Service" in Central Administration and its Started
I have also verified windows services "SharePoint 2010 User Code Host" and "SharePoint 2010 Timer". Both services are running with "Network Service" account.
I have also tried to clear the SharePoint Cache and restarted SharePoint 2010 Timer Job and SharePoint 2010 User Code Host services but of no help.
I found following error in SharePoint log.
Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. - userCodeWrapperType = "Microsoft.Office.InfoPath.Server.Host.FormServerUserCodeWrapper", userAssemblyGroupId = "B8B3F332CE2D495581DF220333D1D968-bkqmCNGmhDGgcdKdLKi++tZXwMGgg6LTENTjYQM8DFI=", siteCollectionId = "ef92b8b6-a263-4bcb-8340-9111a729f321" - Inner Exception: Microsoft.SharePoint.UserCode.SPUserCodeSolutionProxiedException: Could not load type 'Microsoft.SharePoint.Administration.SPService' from assembly 'Microsoft.SharePoint, Version=14.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.
For your information. If i publish the Infopath form without qRules, it works fine.
Please guide me how to fix this bug.