48
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Ta
sk task)
at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation,
CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke[TResult](Func`1 callback,
DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke[TResult](Func`1 callback)
at
Autodesk.DataManagement.Client.Framework.Internal.ImageUtils.GetFileSystemImage(String
fileName, ShellIconSize size, String key)
at
Autodesk.DataManagement.Client.Framework.Vault.Internal.PropertyExtensions.FilePropert
yExtensions.PostGetPropertyValues(Connection vltConn, IEnumerable`1 entities,
PropertyDefinitionDictionary propDefs, PropertyValues resultValues,
PropertyValueSettings settings)
at
Autodesk.DataManagement.Client.Framework.Vault.Services.Connection.Implementation.Prop
ertyManager.getPropertyValuesByEntityClass(String eclassId, IEnumerable`1 entities,
IEnumerable`1 propDefs, PropertyValueSettings settings)
at
Autodesk.DataManagement.Client.Framework.Vault.Services.Connection.Implementation.Prop
ertyManager.getPropertyValues(String eclassName, IEnumerable`1 entities, IEnumerable`1
propDefsToRetrieve, PropertyValueSettings settings, BackgroundWorker worker,
LoadPropertiesThreadRequestArgs workerArgs)
at
Autodesk.DataManagement.Client.Framework.Vault.Services.Connection.Implementation.Prop
ertyManager.GetPropertyValues(IEnumerable`1 entities, IEnumerable`1
propDefsToRetrieve, PropertyValueSettings settings)
In the powerShell.exe you will see the error like this:
AutoCAD COM exceptions
The message filter indicated that the application is busy
This can appear at several places when using
in the JobProcessor. Here is an example of this exception:
AutoCAD engine
2014-06-10 07:14:14,785 [Pipeline Execution Thread] ERROR . - An error occurred during
exiting AutoCAD Application
System.Runtime.InteropServices.COMException (0x8001010A): The message filter indicated
that the application is busy. (Exception from HRESULT: 0x8001010A
(RPC_E_SERVERCALL_RETRYLATER))
at Autodesk.AutoCAD.Interop.IAcadApplication.Quit()
at ..Stop()
Details
To prevent this problem we introduced an IMessageFilter for a better communication between the .Net environment and the COM process.
IMessageFilters are working only in STA appartements, therefore publishing with AutoCAD works perfectly when using powerGUI or powerShell