-->

how to get IIS to work with dbf files?

2019-03-01 12:50发布

问题:

problem is the following: raised the IIS server on Windows XP, but when accessing the dbf files crashes exception. driver to work with files vfpoledb set. out of the visual studio everything works fine.

could something else be done?

回答1:

I don't know if its case sensitive or not, but the connection string should be something like

String connString = "Provider=VFPOLEDB.1; Data Source= C:\Your\Path\OnIISMachine\YourDatabase.dbc;"

If that's ok, then do you have the proper OleDB driver from Microsoft Link for OleDB Provider

-- REVISION FROM COMMENT

Does the SERVER have the OleDb Provider installed... it is required on any machine that will be running the code. So, testing on your machine (XP) running IIS works fine because you have the OleDB provider on your machine. Then, you deploy the app to the server and it doesn't, it can't connect. Is THAT what is happening?