I created an Access Services Database and published it to SharePoint. I created a BeforeChange macro that would calculate the next tracking number. The macro would execute fine when I ran it from the client Access, but when attempting to perform the same actions from the Web App, I’d get the following error. Access Services – Unexpected error occurred while running macro.
Error in the Event Logs on the Application Server:
(Event ID 6875) Error loading and running event receiver Microsoft.Office.Access.Server.AccessServicesListEventReceiver in Microsoft.Office.Access.Server.Application, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Additional information is below.
: "Microsoft.Office.Access.Server.Quickflow.Runtime.QuickflowContext, Microsoft.Office.Access.Server.Application, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" is not a type authorized for use in this workflow.
However, the web configs are set to:
<authorizedRuleTypes>
<authorizedType Assembly="Microsoft.Office.Access.Server.Application, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.Access.Server.Quickflow.Runtime" TypeName="*" Authorized="True" />
<authorizedType Assembly="Microsoft.SharePoint.WorkflowActions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WorkflowActions" TypeName="WorkflowCodeTypeReferenceExpression" Authorized="True" />
<authorizedType Assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Runtime.CompilerServices" TypeName="ExtensionAttribute" Authorized="True" />
</authorizedRuleTypes>