Error when running ASP.NET site “The Microsoft Office Access database engine cannot open or write to the file '\\server\mydb.accdb'… ”
I've read many questions about that problem but i still can't solve my problem. When I run my website on localhost everything is working. The problem happens when I run my site on SQL Server 2008. I've got an error:
"The Microsoft Office Access database engine cannot open or write to the file '\server\MY_DB.accdb'. It is already opened exclusively by another user, or you need permission to view and write its data."
In my Default.aspx file i have that line:
<asp:AccessDataSource ID="AccessDataSource2" runat="server" SelectCommand="SELECT * FROM [INOWACJE_REJESTR]" DataFile="\\tfd054upxe\it\inowacja_dbab.accdb" DataSourceMode="DataSet"></asp:AccessDataSource>
I've got permission/rights to this database. On localhost works fine and site shows data from database and there is no error. The problem is when i try to receive data on SQL Server 2008. I added ConnectionString in IIS it's something like that:
I also added connection string in my Web.config file:
<connectionStrings> <add name="myConnectionString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0; Data Source=\\tfd054upxe\it\INOWACJA_DB.accdb" providerName="System.Data.OleDb" /> </connectionStrings>
Can somebody help me? Thanks in advance!
Need connection string for Office 2019
I wrote a VB .NET program using VS17 that opens Excel files and loads the data into an Access database. For .xls files, I use the connection string: Provider=Microsoft.ACE.OLEDB.12.0;Data Source= ...;Extended Properties Excel 8.0;1 vote2 answersMark Cykowski2 weeks ago
Macro ne fonctionnent pas avec le runtime access
Bonjour et merci voici mon besoin j'ai un fichier excel qui me permet de gere mes contact depuis un userform dans le quel il y a des textbox et une combobox qui a pour base une table access0 votes0 answersM'chi3 weeks ago
Excel VBA ERROR ODBC connection failed
Hi, it is working in Excel-32 bit version, but not working in excel-64 bit. I have a linked table in ms-access which is linked to a sql server table, and when I am trying to fetch the data in excel via VBA from ms-access linked table the error message "ODBC connection failed" showing.0 votes1 answerKashif Khan1 month ago
Non-Standard Port with SQL Server ODBC
Why does the SQL Server ODBC Connection page not mention any example of using a non-standard port? I was incorrectly trying to use the "Port" attribute as "Port=x" but that does not work.0 votes0 answersDavid Garcia1 month ago
NUODB to SQL database migration
Hi Guys I am using SQL Server 2012 , using import and export wizard i want to migrate nuodb databse to sql , but could not find any JDBC data source inside the wizard.0 votes0 answersGautam Raj2 months ago
Interbase ODBC to Access with foreign characters
I have a legacy Delphi database, with an application written in Borland Pascal. It's an old system, running on a virtual XP box, since it won't run on anything newer.0 votes0 answersPete D2 months ago
Connection string issue in connecting to SQL Server
I am trying to connect my C# code to SQL Server. My connection string is not working. It gives the following error: "Format of the initialization string does not conform to specification starting at index 0."0 votes0 answersFaizan Rahman3 months ago
[Microsoft][ODBC Driver Manager] Data source file not found and no default driver specified.
I have a VBA code (in excel 2016) that i use to grab information from a MS SQL server (2008R). The connection works fine on the computer i wrote it on. When i run it on another computer i get the error "[Microsoft][ODBC Driver Manager] Data source file not found and no default driver specified".0 votes1 answerlee avery3 months ago
Remote MySQL Linked Server in SQL Server, only show names of the tables.
Remote MySQL Linked Server deployed in SQL Express Management Studio do not show any content and structure, it only LIST NAME of the tables belongs to the remote connected MySQL database0 votes0 answersAdrian Feldman3 months ago
connect from Oracle to MS SQL Server
I want to Connect from Oracle to MS SQL Server with a connection string to pass location (IP) / username / Password and SQL Database !0 votes0 answersFrank Lehmann3 months ago
- Load more posts