Click here to Skip to main content
15,885,868 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am getting one porblem in asp.net.

while uploading Excel file into GridView through code, getting error as "Unspecified Error".

Same it was working in live server few days back and also it's working in test server now .

But, it's not working in live.

i am just pulling the data and display in gridview. here there is no database connection.

what is the possible problem could be...?
Posted
Updated 9-Feb-13 12:23pm
v2
Comments
CHill60 9-Feb-13 18:23pm    
Try posting the code that you are using to load the excel file into the GridView
Andreas Gieriet 9-Feb-13 18:27pm    
Any stack trace, event log, code you are running?

Read your question again an imagine that we have no clue what you are doing.

It's like I would say: "When I run my calculation I get 41, why? What is wrong?" What yould you do with that? See?

Cheers
Andi
Sergey Alexandrovich Kryukov 9-Feb-13 19:31pm    
That's why the absolutely universal question should be "Why can't I get 42"? :-)
—SA
Andreas Gieriet 10-Feb-13 4:53am    
Yes, exactly - my calculation is wrong, "Deep Thought" is right... ;-)
Cheers
Andi

Hi,

The below URL, has the code to upload excel data into gridview.

How to import excel file to grid view in asp.net using c# AND save grid view to database sql server 2005[^]

Best Regards
Muthuraja
 
Share this answer
 
your error will come when the data connect to óledb connection..
 
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