+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / A procedure imported by 'Microsoft.VisualBasic.Activities.Compiler.dll' could not be loaded

A procedure imported by 'Microsoft.VisualBasic.Activities.Compiler.dll' could not be loaded

6 posts, 1 answered
  1. Mark Dawson
    Mark Dawson avatar
    2 posts
    Registered:
    15 Aug 2012
    12 Jan
    Link to this post

    I'm evaluating Sitefinity and have installed it on a Windows 2012 R2 Server with IIS 8.5.

    When attempting to create a page, creation fails and a pop-up dialog appears with the message "A procedure imported by 'Microsoft.VisualBasic.Activities.Compiler.dll' could not be loaded"

    The full error log is below along with an attached screenshot of the problem.   I'd be grateful if anyone could give any suggestions.

    Regards,

    Mark.

     

     

    ----------------------------------------
    Timestamp: 08/01/2016 10:36:00


    Message: HandlingInstanceID: 26fc9cfd-c85b-4244-b919-ab4f26c118bf
    An exception of type 'System.IO.FileLoadException' occurred and was caught.
    ---------------------------------------------------------------------------
    01/08/2016 10:35:59
    Type : System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : A procedure imported by 'Microsoft.VisualBasic.Activities.Compiler.dll' could not be loaded.
    Source : System.Activities
    Help link :
    FileName : Microsoft.VisualBasic.Activities.Compiler.dll
    FusionLog :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Linq.Expressions.Expression`1[System.Func`2[System.Activities.ActivityContext,T]] Compile[T](System.Activities.LocationReferenceEnvironment, Boolean)
    HResult : -2147024769
    Stack Trace :    at Microsoft.VisualBasic.Activities.VisualBasicHelper.Compile[T](LocationReferenceEnvironment environment, Boolean isLocationReference)
       at Microsoft.VisualBasic.Activities.VisualBasicHelper.Compile[T](CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationReference)
       at Microsoft.VisualBasic.Activities.VisualBasicHelper.Compile[T](String expressionText, CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationExpression)
       at Microsoft.VisualBasic.Activities.VisualBasicValue`1.CacheMetadata(CodeActivityMetadata metadata)
       at System.Activities.CodeActivity`1.OnInternalCacheMetadataExceptResult(Boolean createEmptyBindings)
       at System.Activities.Activity`1.OnInternalCacheMetadata(Boolean createEmptyBindings)
       at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList`1& validationErrors)
       at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack`1& activitiesRemaining, ActivityCallStack parentChain, IList`1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
       at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
       at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
       at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
       at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
       at System.Activities.WorkflowApplication.EnsureInitialized()
       at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
       at System.Activities.WorkflowApplication.InternalRun(TimeSpan timeout, Boolean isUserRun)
       at System.Activities.WorkflowApplication.Run()
       at Telerik.Sitefinity.Workflow.WorkflowManager.MessageWorkflow(Guid itemId, Type itemType, String providerName, String operationName, Boolean isCheckedOut, Dictionary`2 contextBag)
       at Telerik.Sitefinity.Workflow.Services.WorkflowService.MessageWorkflowInternal(KeyValuePair`2[] contextBag, String itemId, String itemType, String providerName, String workflowOperation)
       at SyncInvokeMessageWorkflow(Object , Object[] , Object[] )
       at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
       at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
       at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)


    Additional Info:


    MachineName : FHV85
    TimeStamp : 08/01/2016 10:35:59
    FullName : Telerik.Sitefinity.Utilities, Version=8.2.5900.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    ThreadIdentity :
    Requested URL : http://localhost/Sitefinity/Services/Workflow/WorkflowService.svc/MessageWorkflow/fe67a522-31b9-6814-ad29-ff000070faac/?itemType=Telerik.Sitefinity.Pages.Model.PageNode&workflowOperation=Publish



    Category: ErrorLog
    Priority: 0
    EventId: 90000
    Severity: Error
    Title:Enterprise Library Exception Handling
    Machine: FHV85
    App Domain: /LM/W3SVC/2/ROOT-2-130970683517797342
    ProcessId: 1200
    Process Name: c:\windows\system32\inetsrv\w3wp.exe
    Thread Name:
    Win32 ThreadId:972


    Extended Properties:
    ----------------------------------------

  2. Jay Mathis
    Jay Mathis avatar
    2 posts
    Registered:
    14 Oct 2004
    15 Jan in reply to Mark Dawson
    Link to this post
    I'm getting the exact same error.  Trial version of 8.2.  Need help please!
  3. Elvis
    Elvis avatar
    2 posts
    Registered:
    14 Jan 2016
    18 Jan
    Link to this post
    Same here, please help.
  4. Jay Mathis
    Jay Mathis avatar
    2 posts
    Registered:
    14 Oct 2004
    18 Jan
    Link to this post

    It has something to do with a patch to the OS.  We needed to uninstall some Windows updates. There is a KB article about it.

    http://support.jamsscheduler.com/hc/communities/public/questions/206864648-System-IO-FileLoadException-A-procedure-imported-by-Microsoft-VisualBasic-Activities-Compiler-dll-could-not-be-loaded-

     

  5. Elvis
    Elvis avatar
    2 posts
    Registered:
    14 Jan 2016
    18 Jan
    Link to this post
    This solved my issue. Seems like VB compiler was broken by security update. https://support.microsoft.com/en-us/kb/3118750
    Answered
  6. Mark Dawson
    Mark Dawson avatar
    2 posts
    Registered:
    15 Aug 2012
    18 Jan
    Link to this post
    Uninstalling updates KB3098779 and KB3097997 has done the job.  Thanks guys.
6 posts, 1 answered