Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Creating and saving Excel file in server and that file transferring to the client machine is working fine in local machine. But after publishing the website, when we create that excel file gives run time error.

Because of it's working fine in local as well as in server, we can't recognize the specific error.

I just need immediate help...

OP comment:

Thanx for your response....
It works fine in local as well as server but after publishing website when a client vistis that site and try to download that excel file it shows only Runtime Error. Actually my work is i am converting a dataset to excel file and saves in server then i am trasnfering that excel file to client machine. If you are saying I need to install Excel then how can i install Excel.


I am unable to know which type of error also. I may think there is some read write permission setting problem in IIS. I have already gone through those permissions but i am not getting any solution
Posted
Updated 20-Aug-12 3:57am
v2
Comments
Manas Bhardwaj 20-Aug-12 9:21am    
What is the error?
[no name] 20-Aug-12 9:23am    
If it gives you a "runtime" error then it can't be "working fine" as you say. What is the runtime error? Where is the stack trace? Is Excel installed on the server computer? "I just need immediate help".... then you might want to call Microsoft if your situation is so immediate.
Kenneth Haugland 20-Aug-12 9:51am    
We need more info if we are going to be able to help you. We would needto see the code you are using to read the excel file. And the error code would also be nice.
Sunil Kumar Pandab 20-Aug-12 9:52am    
Thanx for your response....
It works fine in local as well as server but after publishing website when a client vistis that site and try to download that excel file it shows only Runtime Error. Actually my work is i am converting a dataset to excel file and saves in server then i am trasnfering that excel file to client machine. If you are saying I need to install Excel then how can i install Excel.

Hi SunilP,
In your server has MS office package.If not then install it.
 
Share this answer
 
This seems to be IIS permission issue.

Check whether you have proper read/write permission of the folde you are accessing.

Thanks,
cheers
 
Share this answer
 
give the full permission to your domain, right click, > Properties> security tab give the permissions and your server MS Office must be installed...
 
Share this answer
 
I have gone through all your solutions but my problem was there. After 3 days struggle I changed my flow. I just create Excel file from dataset and downloading that to client machine without saving that in server. The code that helps me given below. I am very much thankful to Ming_Lu, Author of this article:-

Export DataSet to Multiple Excel Sheets[^]
 
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