Page not working from another computer

G

Guest

Hi All,
My ASP.net application has to fetch data from Excel sheet.
I'm using HTML File Control to select an excel file.

I'm using Microsoft.Jet.OLEDB.4.0 provider to fetch the data from excel.
Everything is working fine on my machine.

But when my machine is accessed from other machine and trying to upload an
excel sheet 'abc.xls', it's giving following error.
"The Microsoft Jet database engine could not find the object 'C:\abc.xls'.
Make sure the object exists and that you spell its name and the path name
correctly."

i.e.
My machine (A) when accessed from Machine B
and type the url as http://A/Myapplication/default.aspx and trying to upload
the file on machine B.It's giving an error that file not found.

Thanks in advance

Srinivas
 
B

bruce barker

you need to write the uploaded file to disk before you try to open it.

-- bruce (sqlwork.com)
 
G

Guest

Bruce,
thanks for the reply.
Can you please explain in detail?
File that's to be uploaded is already there on another computer.
what do you mean by writing to a disk?

Thanks
 
G

Guest

Got it.
Thanks a lot.
Now i'm able to view it from another machine too.
I'm saving the file to disk before reading it.

Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top