title: System.Data.OleDb.OleDbException: Not a valid password. in MS Access database ASP.NET/C# Web app
body: <p><br/>
  I am stucked within a mind-crunching prob.
  Developed a ASP.NET/C# web app with a MS Access 2007 database.DB is in the same server (Windows server 2008 R2) which I developed the app. It has a simple GridView to show the searched results. When it runs on the localhost it works perfectly and no any error giving. When it is deployed in IIS on the server it starts giving the following error while searching the GridView.  </p>
  
  <pre><code>Server Error in '/' Application.
  Not a valid password.
  
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.Data.OleDb.OleDbException: Not a valid password.
  
  Source Error: 
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  
   Stack Trace: 
  
  
  [OleDbException (0x80040e4d): Not a valid password.]
  System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +337
  System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
     System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +31
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +76
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
  System.Data.OleDb.OleDbConnection.Open() +43
  System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +123
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +319
  System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92                  System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1618
  System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
  System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
  System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
  System.Web.UI.WebControls.GridView.DataBind() +4
  System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
  System.Web.UI.WebControls.GridView.OnPreRender(EventArgs e) +26
  System.Web.UI.Control.PreRenderRecursiveInternal() +103
  System.Web.UI.Control.PreRenderRecursiveInternal() +175
  System.Web.UI.Control.PreRenderRecursiveInternal() +175
  System.Web.UI.Control.PreRenderRecursiveInternal() +175
  System.Web.UI.Control.PreRenderRecursiveInternal() +175
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
  
  This error is not generated while it runs on localhost
  </code></pre>
  
  <p>Tried for 3 days and Tried out lot of solutions on the internet, but no any progress. Pls help.</p>