troubleshooting Question

New IIS, Win Server 2019 install. ODBC via php driver not see network files

Avatar of bgraves
bgravesFlag for United States of America asked on
PHPNetworkingWindows Server 2019
4 Comments1 Solution15 ViewsLast Modified:
I have a small PHP 7.4 program running off IIS 10 on Win Server 2019. Fresh Server 2019 install.

The program makes an odbc connect to a local .accdb file no problem.
It fails to connect to any network copy of that file:
   Mapped a drive letter -or-
   unc \\192.168....\folder\file.accdb   -or-

Running the same code from VS 2019 on a non-server PC (uses IIS Express) works fine to all of the above test files. The reported error is:

SQLSTATE[HY000] SQLDriverConnect: -1032 [Microsoft][ODBC Microsoft Access Driver] The Microsoft Access database engine cannot open or write to the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view and write its data.
I have triple checked folder and file permissions; the file is not opened; AND no problem from the VS 2019 with IIS Express on another PC to the same file.

I think it is something about the IIS install but I have no more ideas on where to look!

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros