以下のエラーに精通している人はいますか?Webアプリケーションを実行してローカルマシンから動的なExcelドキュメントを生成すると、正常に機能しますが、サーバーで同じコードを呼び出すと、次のエラーが発生します。それは私のマシンでは機能しますがサーバーでは機能しないため、アクセス許可の問題のようですが、問題を特定するためにどこから始めればよいのかわかりません。どんなガイダンス/助けも大歓迎です!
Server Error in '/' Application.
--------------------------------------------------------------------------------
This command is unavailable because the license to use this application has expired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: This command is unavailable because the license to use this application has expired.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x800a03ec): This command is unavailable because the license to use this application has expired.]
Microsoft.Office.Interop.Excel.Workbooks.Add(Object Template) +0
PaymentsReport.Page_Load(Object sender, EventArgs e) +70
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
サーバーにOffice/Excelがインストールされており、サーバーでExcelドキュメントを開いたり保存したりできます。サーバーとローカルマシンのExcelのバージョンでしょうか?もしそうなら、どうすればサーバーに最新のものがあることを確認できますか?