2008-10-31 22 views
5

Hataya aşina olan herkes? Yerel makinemden dinamik bir excel doc oluşturmak için webapp'ımı çalıştırdığımda iyi çalışıyor, ancak sunucuda aynı kod parçası çağrıldığında aşağıdaki hatayı alıyorum. Makinemde çalıştığından, ancak sunucudan çalışmadığı için izin sorunları var gibi görünüyor, ancak sorunu saptamak için nereden başlayacağımı bilmiyorum. Herhangi bir rehberlik/yardım büyük beğeni topluyor!'Lisans süresi doldu', ASP.NET'te Excel belgeleri dinamik olarak oluştururken hata oluştu

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 

Ofis/Excel sunucuda yüklü ve ben sunucu üzerinde excel docs/kaydetme açabilirsiniz. Sunucudaki yerel makinemle ilgili excel sürümü olabilir mi? Eğer öyleyse, sunucuda en son bilgilere sahip olduğumdan nasıl emin olabilirim?

cevap

1

Office Interop'u kullanmak, kullanmakta olduğunuz Office bileşenlerinin sunucuda gerçekten yüklü olmasını gerektirir.

0

Sunucuda Excel'in lisanslı, etkinleştirilmiş bir kopyası var mı? Yerel makinenizde çalışır çünkü yerel olarak Office/Excel yüklüdür.

1

Bir WAG alacağım ve bir sunucunun eski bir kopyasını sunucuya tokatlayamayacağınızı ve birden çok kullanıcının web sitenize erişmesine izin verdiğimi söylüyorum. MS ofisini bir sunucu ortamında kullanmak için lisans kısıtlamalarına bakmanız gerekir.

İlgili konular