COM Exception for Excel

Posted by Ajay.Kalol under ASP.NET on 7/16/2012 | Points: 10 | Views : 2289 | Status : [Member] | Replies : 3
Hi friends,

When I am Accessing Excel in windows server 2008 using VB.Net , I get error of COM exception

Actually My Application flow is like :

1. I am Copying File from one folder to Another folder then Open that excel file from VB.NET
then I found this error.
" Microsoft Office Excel cannot access the file 'E:\SampleHosting\xml\ExcelUpload\0abd9a2d-6168-4fe0-8007-5482a3053e5e.xls'. 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 seen Task Manager, there is no process of Copying is running, Just Proces of "excel.exe *32 " is running.


Please give me any solution if you have.....

Thanks in Advance..

Ajay
ajaypatelfromsanthal.blogspot.in



Responses

Posted by: Dotnetrajanikanth on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
http://social.technet.microsoft.com/Forums/en-IN/sharepoint2010programming/thread/e55d35a6-b32c-4366-ae78-208577c07e15

____________
www.flickr.com/photos/psdesigner/

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dotnetrajanikanth on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/c822cb64-bf22-4f5f-9782-0c50db4534d8

____________
www.flickr.com/photos/psdesigner/

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Panric on: 7/17/2012 [Member] Starter | Points: 25

Up
0
Down
Dotnetrajanikanth's link is pretty right to your question. and my link will direct you to http://www.codeproject.com/Articles/198572/Summarize-C-Control-Excel-Skills talking about C# Excel use COM. have a check.

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response