Home > Unspecified Error > Unspecified Error While Uploading Excel Asp Net

Unspecified Error While Uploading Excel Asp Net

Contents

Riduan Isamuddin, better known as Hambali, was allegedly Osama bin Laden's point man in Indonesia and, until his capture in August 2003, was believed to be the main link between al-Qaida Check out the Microsoft support article here

Hope it helps,
Jessica
Jessica Cao Sincerely, Microsoft Online Community Support “Please remember to click “Mark as Answer” on the See more: C# .NET MS-Excel Errors Hello All, I have an application that reads an excel file(.xls) but occasionally an error is thrown: Unspecified Error. Thanks for the suggestion. 0 LVL 21 Overall: Level 21 C# 15 Message Accepted Solution by:MogalManic2009-01-15 Here is some documentation I found: http://msdn.microsoft.com/en-us/library/ms254502.aspx http://msdn.microsoft.com/en-us/library/ms810829.aspx Another thought, Since the http://crimsonskysoftware.com/unspecified-error/unspecified-error-excel-asp-net.html

Is this a 64-bit application? Aug 22, 2010 I upgraded a Website to use ASP.NET 4.0, from 3.5. http://getmymoneymakers.com/ "Guaranteed to work even if you're "un-motivated"… In fact, it's best if you only put in an hour or so per day!" http://getmymoneymakers.com/ Reply Genannoxclach says: December 28, 2009 at i.e.

Unspecified Error While Opening Oledb Connection

share|improve this answer answered Feb 19 '09 at 19:10 David 16.4k54477 add a comment| up vote 2 down vote I suspect the error is something to do with the venerable Jet Join them; it only takes a minute: Sign up C#/ASP.NET Oledb - MS Excel read “Unspecified error” up vote 5 down vote favorite 4 We have a C#/ASP.NET (2.0) application running I think your problem will magically disappear... Capitol, The Associated Press has learned.

Thanks in Advance. The costume jewellery and weapon argument!. The file is stored in the temporary directory by our file upload code before opening. System.data.oledb.oledbexception Unspecified Error Excel Upload Wrap all of your objects related to the connection in usings like this: public DataSet ProcessExcel(string filePath, string SqlCommand) { using (OleDbConnection xcn = new OleDbConnection())

OriginalGriff 15-Jul-11 4:22am You didn't offend...but you shouldn't do it like that anyway: look up SQL Injection Attack and then use Parametrized queries instead. System.data.oledb.oledbexception Unspecified Error Excel So, first things first. Kindly remove the duplicate fields and re-upload.

View 1 Replies

ADO.NET :: Uploading Excel Data To Sql Database In The Code works fine in local machine but on website its showing following error.

Plagued with "political violence for most of its history," according to the CIA World Factbook, the Caribbean island nation has suffered from colonialism, coups and corruption since becoming the first black System.data.oledb.oledbexception Unspecified Error C# If you are using impersonation, give the impersonated account the said privileges. New here and first post. It works like magic.

System.data.oledb.oledbexception Unspecified Error Excel

I have an application in a ftp webserver in asp.net 1.1 and C#. I imagine Excel could have similar issues. Unspecified Error While Opening Oledb Connection The OLEDB providers don't work in 64-bit. Unspecified Error While Opening Excel Connection Exactly which line is it excepting on? "The inputs(_insured.StrDepFname ...) is from the excel file too.

So it will now be: System.Data.OleDb.OleDbConnection xcn = new System.Data.OleDb.OleDbConnection(); xcn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filePath + ";Extended Properties=\"Excel 8.0;IMEX=1\";pooling=false;"; xcn.Open(); 0 Message Author Comment by:JCS20092009-01-15 I will try this this content View All Messages No new notifications. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Runtime.InteropServices.COMException: Unspecified errorSource error:Line 282: directorySearcher.PropertiesToLoad.Add("cn"); Line 283: directorySearcher.PropertiesToLoad.Add("adsPath"); Line 284: SearchResultCollection What type of variable is it? Unspecified Error While Opening Oledb Connection In C#

n a r o d . Reply Kurt says: October 24, 2007 at 6:31 pm This information did help me resolve my issue, THANKS! However, the same solution seems to work. weblink Validate each column - some validation may require opening the connection again 4.

But when I upload a large file(71 rows and above)the error shows. Oledbconnection Open Unspecified Error The following code generates an 'Unspecified Error' in the Exception.Message. Covered by US Patent.

Thanks, Max Let Me Google That For You!

Your Email This email is in use. It's fairly creaky - fine for most desktop things but not much use for enterprise data interchange. Thanks, Joe. Unspecified Error Excel Upload Asp Net Post that bit, and (say) 15 or so lines either side to give us context.

I spent 6 days trying solve this problem … your solution works fine Reply Parwin Singh says: October 3, 2006 at 6:40 pm I can across the same same error message, I chaged identity = "false". Her mother flew from Miami to Haiti on Friday. "She's in her 70s. check over here This error can be caused by a virtual directory not being configured as an application in IIS.

Join Now For immediate help use Live now! Thanks! :) Update: Thanks, Keith. http://sencillamentesimple.wordpress.com/2009/07/22/acai-berry-nuevo-engano - Botijos Reply syed says: November 5, 2009 at 2:11 am Very Good. At least I've come across that in an application where connections were being continually created and never properly closed.

When I uploading it on on windows 8 IIS then data is not coming. All-Star 20703 Points 2532 Posts Re: unspecified error!!!!!