System.Runtime.InteropServices.COMException (0x800A1401) [modified]
-
Dear All, Please help me solving following issue. Background Information ------------------------------------ 1. We have 2 web application running on MOSS + IIS 6 2. Both applications are on same web server, run by System Admin account 3. Developed using ASP.Net, C# and DB as SQL Server 2005 4. One is running on Framework 2.0 and second is on Framework 3.5 5. In both we are using Office Objects to impose IRM permissions 6. Both were working till latest windows update on the web server. 7. After that we started getting following errors Errors --------- Word object: Not Able to Open the word file at all ------------------ System.Runtime.InteropServices.COMException (0x800A1401): Word experienced an error trying to open the file. Try these suggestions. * Check the file permissions for the document or drive. * Make sure there is sufficient free memory and disk space. * Open the file with the Text Recovery converter. (C:\...\My File.doc) at Microsoft.Office.Interop.Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform) at OpenFile.SetExpiryDate(String strFilePath, String strExpiryDate) in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\My Application\MyPage.aspx.cs:line 1033 Excel Object: Not Able Close the excel file even though all objects are explicitly closed. ------------------- When try to delete file following error comes. The process cannot access the file 'C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\My Application\\Scratchpad\\Book1.xlsx' because it is being used by another process PowerPoint object: Not able to save --------------------------- Presentation (unknown member) : An error occurred while PowerPoint was saving the file. Is this some kind of a security permission issue on the folder where we are processing the file? Right now I have given full permission to following accounts. 1. Administrators 2. ASP.Net 3. Network Service 4. System After the error I gave full permission to Everyone, still the problem persists. I have uninstalled office and inst
-
Dear All, Please help me solving following issue. Background Information ------------------------------------ 1. We have 2 web application running on MOSS + IIS 6 2. Both applications are on same web server, run by System Admin account 3. Developed using ASP.Net, C# and DB as SQL Server 2005 4. One is running on Framework 2.0 and second is on Framework 3.5 5. In both we are using Office Objects to impose IRM permissions 6. Both were working till latest windows update on the web server. 7. After that we started getting following errors Errors --------- Word object: Not Able to Open the word file at all ------------------ System.Runtime.InteropServices.COMException (0x800A1401): Word experienced an error trying to open the file. Try these suggestions. * Check the file permissions for the document or drive. * Make sure there is sufficient free memory and disk space. * Open the file with the Text Recovery converter. (C:\...\My File.doc) at Microsoft.Office.Interop.Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform) at OpenFile.SetExpiryDate(String strFilePath, String strExpiryDate) in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\My Application\MyPage.aspx.cs:line 1033 Excel Object: Not Able Close the excel file even though all objects are explicitly closed. ------------------- When try to delete file following error comes. The process cannot access the file 'C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\12\\TEMPLATE\\LAYOUTS\\My Application\\Scratchpad\\Book1.xlsx' because it is being used by another process PowerPoint object: Not able to save --------------------------- Presentation (unknown member) : An error occurred while PowerPoint was saving the file. Is this some kind of a security permission issue on the folder where we are processing the file? Right now I have given full permission to following accounts. 1. Administrators 2. ASP.Net 3. Network Service 4. System After the error I gave full permission to Everyone, still the problem persists. I have uninstalled office and inst
dear all, with trial and error, I found a work around for this. I don't know if its correct or not, but pesting it for your reference. Start - Run - type "dcomcnfg.exe" click ok It will open Component Services Under - Console Root -- Component Services --- Computers ---- My Computer ----- DCOM Config Open the properties of following - Microsoft Excel Application - Microsoft Office PowerPoint Slide - Microsoft Office Word 97 - 2003 Document Go to Identity tab Select "This User" and add 'system admin' credentials In my case same system admin is used in the identity of application pool in IIS :-D