"صلاحية الترخيص 'خطأ عند إنشاء مستندات Excel في ASP.NET حيوي

StackOverflow https://stackoverflow.com/questions/254207

  •  05-07-2019
  •  | 
  •  

سؤال

وأي شخص مطلع على الخطأ أدناه؟ عند تشغيل تطبيق الويب الخاص بي لتوليد وثيقة التفوق الديناميكي من آلة المحلية أنه يعمل بشكل جيد ولكن عندما يتم استدعاء نفس قطعة من التعليمات البرمجية على الخادم أحصل على الخطأ أدناه. يبدو مثل انها أذونات القضايا نظرا لأنه يعمل على الجهاز الخاص بي ولكن ليس الخادم ولكن أنا لا أعرف من أين أبدأ من أجل تحديد المشكلة. أي توجيه / مساعدة هي محل تقدير كبير!

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 / اكسل على الخادم ويمكنني فتح / حفظ مستندات تتفوق على الخادم. يمكن أن يكون إصدار تتفوق على الخادم مقابل آلة المحلية؟ إذا كان الأمر كذلك كيف أتأكد من ولدي آخر على الخادم؟

هل كانت مفيدة؟

المحلول

وعن طريق مكتب التشغيل المتداخل يتطلب أن يتم تثبيت مكونات Office الذي تستخدمه فعلا على الخادم.

نصائح أخرى

وبصرف النظر عن التي يتم تركيبها، تحتاج إلى التأكد من تنشيط التطبيق على الخادم:

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

لقد التفاصيل حول كيفية القيام بذلك.

وأنا ستعمل اتخاذ المهرج وتقول انك لا يمكن فرض أي نسخة قديمة من Office على الخادم، والسماح لعدة مستخدمين الوصول إليه عبر موقع الويب الخاص بك. كنت بحاجة الى ان ننظر في قيود الترخيص لاستخدام مكتب MS في بيئة الخادم.

هل لديك مرخصة، نسخة تفعيلها من Excel على الخادم؟ وربما يعمل على الجهاز المحلي لديك مكتب / Excel مثبت محليا.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top