A procedure imported by 'Microsoft.VisualBasic.Activitie

Posted by Community Admin on 04-Aug-2018 11:09

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

All Replies

Posted by Community Admin on 12-Jan-2016 00:00

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 : localhost/.../



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:
----------------------------------------

Posted by Community Admin on 15-Jan-2016 00:00

I'm getting the exact same error.  Trial version of 8.2.  Need help please!

Posted by Community Admin on 18-Jan-2016 00:00

Same here, please help.

Posted by Community Admin on 18-Jan-2016 00:00

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.

support.jamsscheduler.com/.../206864648-System-IO-FileLoadException-A-procedure-imported-by-Microsoft-VisualBasic-Activities-Compiler-dll-could-not-be-loaded-

 

Posted by Community Admin on 18-Jan-2016 00:00

This solved my issue. Seems like VB compiler was broken by security update. support.microsoft.com/.../3118750

Posted by Community Admin on 18-Jan-2016 00:00

Uninstalling updates KB3098779 and KB3097997 has done the job.  Thanks guys.

This thread is closed