Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I face a little bit difficulty for my asp.net website. One of my web pages accept Excel template (By Uploading Excel File) and read all the data from it and insert into the SQL Database at the same time.

This process is smoothly running with the localhost but when i upload it inside the web server(i set the Webserver in another computer), the problem started. my web server is already installed Microsoft Office 2007.

Excel Template uploading is OK but all the data cannot be inserted into SQL database.

I use Microsoft.Office.Interop.Excel component for Excel reading and writing. as my expectation, permission problem. i don't know how to set up permission in web server for microsoft excel.

Pls, Help Me

Best Rgds,
beginner
Posted
Updated 25-Oct-11 19:47pm
v3

1 solution

Office must be installed on your Web Server for the interop to work.

It is unadvised to use Office Excel interop on your production server look into non office Excel readers and writers (which are faster and use less resources).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900