6

以下のエラーに精通している人はいますか?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のバージョンでしょうか?もしそうなら、どうすればサーバーに最新のものがあることを確認できますか?

4

4 に答える 4

4

インストールとは別に、アプリケーションがサーバー上でアクティブ化されていることを確認する必要があります。

http://support.microsoft.com/kb/294973

これを行う方法の詳細があります。

于 2010-09-29T12:19:34.177 に答える
1

Office Interopを使用するには、使用しているOfficeコンポーネントが実際にサーバーにインストールされている必要があります。

于 2008-10-31T17:01:18.213 に答える
1

WAGを使用して、サーバー上でOfficeの古いコピーをスラップして、複数のユーザーにWebサイト経由でアクセスさせることはできないと言います。サーバー環境でMSOfficeを使用するためのライセンス制限を確認する必要があります。

于 2008-10-31T17:09:02.287 に答える
0

サーバー上にライセンスされ、アクティブ化されたExcelのコピーがありますか?Office / Excelがローカルにインストールされているため、おそらくローカルマシンで動作します。

于 2008-10-31T17:06:33.773 に答える