के साथ प्रोग्राम शेड्यूल नहीं कर सकता है मैंने सी # .NET में एक कंसोल प्रोग्राम विकसित किया है, जो एक्सेल इंटरऑप का उपयोग करता है। प्रोग्राम मेरी विकास मशीन पर और विंडोज सर्वर 2008 में ठीक काम करता है, अगर मैं इसे कमांड लाइन से चलाता हूं।एक्सेल इंटरऑप
जब मैंने इसे दैनिक को चलाने के लिए एक कार्य का समय निर्धारित करने की कोशिश, मैं इस कष्टप्रद इंटरॉप त्रुटि मिली:
02/11/2011 00:30:05,000 [1] FATAL My.Program [(null)] - Unable to Microsoft Office Excel open file 'E:\excel.xls' by one of several reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as the currently opened book.
System.Runtime.InteropServices.COMException (0x800A03EC): Unable to access the Microsoft Office Excel file 'E:\excel.xls' by one of several reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as the currently opened book.
in Microsoft.Office.Interop.Excel.Workbooks.Open (String Filename, Object UpdateLinks, Object ReadOnly, Object Format, Object Password, Object WriteResPassword, IgnoreReadOnlyRecommended Object, Object Origin, Object Delimiter, Object Editable, Object Notify, Object Converter, Object AddToMru, Object Local, Object CorruptLoad)
फ़ाइल 'ई: \ excel.xls' मौजूद है और अगर पूरी तरह से बंद है जब कार्यक्रम शुरू होता है, क्योंकि अगर मैं अपने कमांड लाइन में एक ही प्रोग्राम चलाने की कोशिश करता हूं, तो यह अपेक्षित के रूप में समाप्त हो गया।
मैं भी सेटअप मेरी प्रशासक के रूप में चलाने के लिए काम किया है, तो यह अनुमतियाँ मुद्दे नहीं होना चाहिए।
क्या आप मेरी मदद कर सकते हैं?
क्या आपने इस समस्या के समाधान को हल किया या आसपास काम किया? मेरे पास बिल्कुल एक ही समस्या है, क्या आप अपना समाधान पोस्ट कर सकते हैं? धन्यवाद! – dpac