Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
System.Data.OleDb.OleDbException was unhandled by user codeMessage="Not a valid file name."Source="Microsoft JET Database Engine"ErrorCode=-2147467259StackTrace: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 System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)at _Default.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\Biswarup\Desktop\calendar_access\Default.aspx.cs:line 27at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)at System.Web.UI.Control.OnLoad(EventArgs e)at System.Web.UI.Control.LoadRecursive()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


I get this type of error. Can anyone suggest me how to solve this.
Thanks in advance
Posted
Comments
Prerak Patel 28-Jul-11 2:24am    
What is your connection string?
Kim Togo 28-Jul-11 2:31am    
Please post your connection string.

1 solution

Check Connection Strings
Data Source must be file name or server name.
Just a guess from your error: Source="Microsoft JET Database Engine"
 
Share this answer
 
Comments
sahabiswarup 28-Jul-11 2:34am    
if my database in a remote server how can i give the database link over here?
Prerak Patel 28-Jul-11 3:26am    
Check the site in answer. It has almost all variants. Or give some more details - which database? where?

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