Connection problem - MS Access database

I have installed IIS 8.5 on my laptop with Windows 8.1. I have placed my website in c:\inetpub\wwwroot and given all the security permissions required. I am using MS Access database 2010 and configured all the features required. But when I am accessing the web application '/localhost/........./....asp, it opens the web page and wherever the database is accessed it gives error message.
HTTP 500
I am using following connection string :
Set MyLogin = Server.CreateObject("ADODB.Connection")
ConnStr = "DRIVER={Microsoft Access Driver (*.mdb)};pwd= ;"
ConnStr = ConnStr & "DBQ=" & Server.MapPath(" ")
MyLogin.Open(ConnStr)

0 answers