InfoPath form with qRules gives error "The custom code in the form can not be run" - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

InfoPath form with qRules gives error "The custom code in the form can not be run"

Last post 09-09-2014 08:08 AM by Jim Cantwell. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 09-05-2014 07:59 AM

    • AjayS
    • Not Ranked
    • Joined on 09-05-2014
    • Posts 3

    InfoPath form with qRules gives error "The custom code in the form can not be run"

    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.
  • 09-05-2014 08:15 AM In reply to

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Hi - can I see a copy of your template? You can attach it under the Options tab in a reply. Thanks!

    Hilary Stoupa

  • 09-08-2014 05:58 AM In reply to

    • AjayS
    • Not Ranked
    • Joined on 09-05-2014
    • Posts 3

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Thanks for your reply. I have added the copy of template.
  • 09-08-2014 09:58 AM In reply to

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Thanks - I'll take a look later today and post back. :)

    Hilary Stoupa

  • 09-08-2014 11:26 AM In reply to

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Okay, I was able to publish to one of our 2010 servers and it opened in the browser w/out an issue. So it seems that it is likely to be something related to your server (which I know is not terribly helpful). Can you attach more of the log file for the correlation ID?

    Hilary Stoupa

  • 09-09-2014 05:36 AM In reply to

    • AjayS
    • Not Ranked
    • Joined on 09-05-2014
    • Posts 3

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Thanks for your reply. Find the more of the log file attached.
  • 09-09-2014 08:08 AM In reply to

    Re: InfoPath form with qRules gives error "The custom code in the form can not be run"

    Correction: I was mistaken, Microsoft.SharePoint.Administration is available in the sandbox. I will review the logs further to maybe see why it was unable load the assembly.
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.