0

似乎 Forge Design Automation 无法在我的活动中运行当天早些时候工作的功能。未更改应用程序包或活动的更新。我该如何解决这个问题?

    [09/02/2020 16:11:16]     InventorCoreConsole.exe Error: 0 : Processing failed. System.IO.FileNotFoundException: Could not load file or assembly 'Autodesk.Inventor.Interop, Version=24.0.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564' or one of its dependencies. The system cannot find the file specified.
[09/02/2020 16:11:16] File name: 'Autodesk.Inventor.Interop, Version=24.0.0.0, Culture=neutral, PublicKeyToken=d84147f8b4276564'
[09/02/2020 16:11:16]    at UpdateUserParametersPlugin.SampleAutomation.GetQuote(String quoteFileName, String currentDir, Object doc, String quoteTemplate, String userName, String userEmail)
[09/02/2020 16:11:16]    at UpdateUserParametersPlugin.SampleAutomation.Run(Document placeholder) in C:\Users\kate.hilton\Desktop\da-update-user-params-master\da-update-user-params-master\UpdateUserParameters\UpdateUserParametersPlugin\SampleAutomation.cs:line 213
[09/02/2020 16:11:16] WRN: Assembly binding logging is turned OFF.
[09/02/2020 16:11:16] To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
[09/02/2020 16:11:16] Note: There is some performance penalty associated with assembly bind failure logging.
[09/02/2020 16:11:16] To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
[09/02/2020 16:11:16]     InventorCoreConsole.exe Information: 0 : Performing iLogic diagnostics...
[09/02/2020 16:11:16]     InventorCoreConsole.exe Error: 0 : Diagnostics failed: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
[09/02/2020 16:11:16]    at CallSite.Target(Closure , CallSite , Object )
[09/02/2020 16:11:16]    at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
[09/02/2020 16:11:16]    at IvCoreConsole.Inv.InventorServerApp.PerformiLogicDiagnostics()
[09/02/2020 16:11:16]     InventorCoreConsole.exe Information: 0 : End of iLogic diagnostics...
[09/02/2020 16:11:16]     InventorCoreConsole.exe Information: 0 : Deactivating plug-in: UpdateUserParametersPlugin
[09/02/2020 16:11:16]     InventorCoreConsole.exe Information: 0 : : UpdateUserParametersPlugin: deactivating... 
[09/02/2020 16:11:17] End Inventor Core Engine standard output dump.

第 213 行:

var quoteFileName = Path.Combine(Path.GetDirectoryName(pathName), "Quote.txt");
                    LogTrace($"Getting the quote: filepath = {quoteFileName}");

                    (213) GetQuote(quoteFileName, currDir, aDoc, quoteTemplate, userName, userEmail);
4

1 回答 1

0

奇怪的是它以前工作过。您似乎在以一种不适用于 FDA 的方式引用 Autodesk.Inventor.Interop DLL。您可以尝试将正确版本的 Autodesk.Inventor.Interop DLL 作为插件包的一部分。如果这不起作用,您可以在此处发布您如何在 csproj 文件中引用它吗?

于 2020-09-02T19:06:28.290 回答