Click here to Skip to main content
15,884,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to create a download feature in asp,net? Pin
Not Active11-Oct-11 1:37
mentorNot Active11-Oct-11 1:37 
Questionhow to set the start up page once for all Pin
MalarGayu10-Oct-11 14:59
MalarGayu10-Oct-11 14:59 
AnswerRe: how to set the start up page once for all Pin
Parwej Ahamad10-Oct-11 17:47
professionalParwej Ahamad10-Oct-11 17:47 
GeneralRe: how to set the start up page once for all Pin
MalarGayu10-Oct-11 22:10
MalarGayu10-Oct-11 22:10 
GeneralRe: how to set the start up page once for all Pin
Parwej Ahamad10-Oct-11 22:13
professionalParwej Ahamad10-Oct-11 22:13 
GeneralRe: how to set the start up page once for all Pin
MalarGayu11-Oct-11 11:41
MalarGayu11-Oct-11 11:41 
GeneralRe: how to set the start up page once for all Pin
Parwej Ahamad11-Oct-11 19:41
professionalParwej Ahamad11-Oct-11 19:41 
QuestionMicrosoft.Jet.OLEDB.4.0' provider is not registered on the local machine Pin
Anuradha Lakra9-Oct-11 23:37
Anuradha Lakra9-Oct-11 23:37 
Hi,

Below error is displayed when i read excel file using oledb4.0. The code is working well for other applications on same server.

System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine. at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.OleDb.OleDbConnection.Open() at UploadExcelFile.SaveXlsFileCols(Int32 int_FileId, String str_filePath, String str_extension, String str_fileName)

Though same code is running for other application on same server.


protected void SaveXlsFileCols(int int_FileId, string str_filePath, string str_extension, string str_fileName)
{
string connString = string.Empty;
if (str_extension == "xls")
{
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + str_filePath + ";Extended Properties=\"Excel 8.0;\"";
}
else
{
connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + str_filePath + ";Extended Properties=\"Excel 12.0;\"";
}
// Create the connection object
using (OleDbConnection oledbConn = new OleDbConnection(connString))
{
try
{
if (oledbConn.State == ConnectionState.Open)
{
oledbConn.Close();
}
// Open connection
oledbConn.Open();

DataTable dbSchema = oledbConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
string WorkSheetName = dbSchema.Rows[0]["TABLE_NAME"].ToString();

// Create OleDbCommand object and select data from worksheet Sheet1
OleDbCommand cmd = new OleDbCommand("SELECT * FROM ["+WorkSheetName+"]", oledbConn);
AnswerRe: Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine Pin
Ali Al Omairi(Abu AlHassan)10-Oct-11 2:55
professionalAli Al Omairi(Abu AlHassan)10-Oct-11 2:55 
QuestionDatePicker using JQuery Pin
klaydze9-Oct-11 22:13
klaydze9-Oct-11 22:13 
AnswerRe: DatePicker using JQuery Pin
bVagadishnu10-Oct-11 7:19
bVagadishnu10-Oct-11 7:19 
GeneralRe: DatePicker using JQuery Pin
klaydze10-Oct-11 15:19
klaydze10-Oct-11 15:19 
QuestionExport to excel Pin
padmanabhan N9-Oct-11 21:11
padmanabhan N9-Oct-11 21:11 
AnswerRe: Export to excel Pin
Ali Al Omairi(Abu AlHassan)9-Oct-11 23:19
professionalAli Al Omairi(Abu AlHassan)9-Oct-11 23:19 
GeneralRe: Export to excel Pin
padmanabhan N9-Oct-11 23:38
padmanabhan N9-Oct-11 23:38 
GeneralRe: Export to excel Pin
Ali Al Omairi(Abu AlHassan)10-Oct-11 2:49
professionalAli Al Omairi(Abu AlHassan)10-Oct-11 2:49 
QuestionThe state information is invalid for this page and might be corrupted. Pin
uspatel9-Oct-11 20:53
professionaluspatel9-Oct-11 20:53 
AnswerRe: The state information is invalid for this page and might be corrupted. Pin
Ankur\m/9-Oct-11 22:43
professionalAnkur\m/9-Oct-11 22:43 
GeneralRe: The state information is invalid for this page and might be corrupted. Pin
uspatel9-Oct-11 23:26
professionaluspatel9-Oct-11 23:26 
QuestionCustom controls Pin
pravin_mun9-Oct-11 20:29
pravin_mun9-Oct-11 20:29 
AnswerRe: Custom controls Pin
Ali Al Omairi(Abu AlHassan)9-Oct-11 23:23
professionalAli Al Omairi(Abu AlHassan)9-Oct-11 23:23 
Questionclick of a button in master page Pin
MalarGayu9-Oct-11 19:16
MalarGayu9-Oct-11 19:16 
AnswerRe: click of a button in master page Pin
Morgs Morgan9-Oct-11 23:47
Morgs Morgan9-Oct-11 23:47 
AnswerRe: click of a button in master page Pin
uspatel10-Oct-11 21:39
professionaluspatel10-Oct-11 21:39 
QuestionDisable checkbox in gridview if Cell 4 has KS value Pin
Member 32222649-Oct-11 15:41
Member 32222649-Oct-11 15:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.