| | |
Office 2007 automation error on windows 2008
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2007
Posts: 6
Reputation:
Solved Threads: 0
I have an enquiry concerning office 2007 automation on windows 2008 64bit.
Basically the issue is as follows:
· I'm using office 2007 automation on windows 2008 64bit, my solution is using excel office automation (Excel interop assemblies) from a .Net managed DLL to export reports in excel format from the server (windows 2008 64bit),
· The above DLL is called from an asp.net (hosted on IIS 7) web site to generate different Excel reports.
· The problem is that calling Excel automation function "Workbooks.Open" on windows 2008 64bit is always failing with the below error:
Microsoft Office Excel cannot access the file ... There are several possible 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 a currently
open workbook.
I have checked and make sure that the files is there, it's not opened and the DCOM config for the "Excel Application" is set correctly, I can programmatically call a new Excel instance without errors e.g. (Excel.Application app= new Excel.Application())
The solution is working fine and correctly on (windows xp/ IIS 5) and (windows 2003/ IIS 6) but not on windows 2008 64bit/IIS7 which is my production environment where it always gives the above exception, unfortunately our restrictions for this case are:
1. I can't change our production environment to be windows 2003 server or a different windows server, the client insists on windows 2008 64bit edition.
2. I'm so tight in time that I don't want to invest in other development solutions or workarounds like OpenXML, I prefer to be able to solve the solution with no/ minimal development overhead.
Thanks for your rapid help and response,
Basically the issue is as follows:
· I'm using office 2007 automation on windows 2008 64bit, my solution is using excel office automation (Excel interop assemblies) from a .Net managed DLL to export reports in excel format from the server (windows 2008 64bit),
· The above DLL is called from an asp.net (hosted on IIS 7) web site to generate different Excel reports.
· The problem is that calling Excel automation function "Workbooks.Open" on windows 2008 64bit is always failing with the below error:
Microsoft Office Excel cannot access the file ... There are several possible 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 a currently
open workbook.
I have checked and make sure that the files is there, it's not opened and the DCOM config for the "Excel Application" is set correctly, I can programmatically call a new Excel instance without errors e.g. (Excel.Application app= new Excel.Application())
The solution is working fine and correctly on (windows xp/ IIS 5) and (windows 2003/ IIS 6) but not on windows 2008 64bit/IIS7 which is my production environment where it always gives the above exception, unfortunately our restrictions for this case are:
1. I can't change our production environment to be windows 2003 server or a different windows server, the client insists on windows 2008 64bit edition.
2. I'm so tight in time that I don't want to invest in other development solutions or workarounds like OpenXML, I prefer to be able to solve the solution with no/ minimal development overhead.
Thanks for your rapid help and response,
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
I have same problem. Appriciate any help ASAP.
•
•
•
•
I have an enquiry concerning office 2007 automation on windows 2008 64bit.
Basically the issue is as follows:
· I'm using office 2007 automation on windows 2008 64bit, my solution is using excel office automation (Excel interop assemblies) from a .Net managed DLL to export reports in excel format from the server (windows 2008 64bit),
· The above DLL is called from an asp.net (hosted on IIS 7) web site to generate different Excel reports.
· The problem is that calling Excel automation function "Workbooks.Open" on windows 2008 64bit is always failing with the below error:
Microsoft Office Excel cannot access the file ... There are several possible 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 a currently
open workbook.
I have checked and make sure that the files is there, it's not opened and the DCOM config for the "Excel Application" is set correctly, I can programmatically call a new Excel instance without errors e.g. (Excel.Application app= new Excel.Application())
The solution is working fine and correctly on (windows xp/ IIS 5) and (windows 2003/ IIS 6) but not on windows 2008 64bit/IIS7 which is my production environment where it always gives the above exception, unfortunately our restrictions for this case are:
1. I can't change our production environment to be windows 2003 server or a different windows server, the client insists on windows 2008 64bit edition.
2. I'm so tight in time that I don't want to invest in other development solutions or workarounds like OpenXML, I prefer to be able to solve the solution with no/ minimal development overhead.
Thanks for your rapid help and response,
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
Please refer to my solution.
http://social.msdn.microsoft.com/For...6-44421818ef91
http://social.msdn.microsoft.com/For...6-44421818ef91
![]() |
Similar Threads
- XP - shipped w/ Office 2007 trial but I uninistalled it and installed Office 2003 and (Windows NT / 2000 / XP)
- Cannot Uninstall Office 2007 (Windows Software)
- office 2007 setup error cannot find Office.en-us\OfficeMUI.msi (Windows Software)
- Windows 2000Pro explorer.exe - Application Error (Windows NT / 2000 / XP)
- Cannot Uninstall Office 2007 (IT Professionals' Lounge)
- Error 1402 when uninstalling Office 2007 Beta 2 with WinXP Home (Windows Software)
- office 2007 won't install (Windows Software)
- RUNDLL error C:\WINDOWS\DOWNLO~1\CONFLICT.1\ymmapi.dll (Viruses, Spyware and other Nasties)
- office 2000 install error (Windows NT / 2000 / XP)
Other Threads in the ASP.NET Forum
- Previous Thread: creating data entry form
- Next Thread: final year computer engineering project topics
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net box browser button c# c#gridviewcolumn checkbox click commonfunctions compatible confirmationcodegeneration content contenttype courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit expose fileuploader fill flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols radio ratings redirect registration relationaldatabases reportemail rotatepage save schoolproject search security serializesmo.table silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





