Einstein47
Programmer
I have searched everywhere and can't find anything on this. I'm hoping that someone here might be able to help.
I have an ASP site hosted on Brinkster, and it works fine. However, I just got a PC with WinXP and IIS so I have been trying to do local development. My site uses an Access DB (I know what you are going to say, but I have very few users), and it works well. The trouble happens when I try to run locally.
First there is the security issue. Each time I copy the MDB file from the server to my PC, I have to change the security permissions. Isn't there some way so that the directory can own the permissions and the files in that directory will just inherit the proper security? Does that make sense? Is that even possible?
Secondly, every time I go to a page locally that needs to read from the DB, I get a dialog saying "Authorization Required" and gives a place for username and password. Absolutely nothing I enter will get me past this dialog - except Canceling (hitting ESC). It is like my DB thinks it SHOULD have a password, but since it doesn't it gets confused. I just want the dialog to go away. If I have to enter a user/pass on the db and then set that in my connection string - I will do that. I just want to understand what is happening.
Here is my version info:
IIS 5.1
Access 2000
Here is my connection string info:
Any takers? I'm sorry if I confused the issue. I feel I am just looking for some basic knowledge here. I just need to know how to ask it.
Einstein47
(For best results: hand wash in cold, tumble dry low. For not so good results: drag through puddles, pound on rocks, air dry on tree branch.)
I have an ASP site hosted on Brinkster, and it works fine. However, I just got a PC with WinXP and IIS so I have been trying to do local development. My site uses an Access DB (I know what you are going to say, but I have very few users), and it works well. The trouble happens when I try to run locally.
First there is the security issue. Each time I copy the MDB file from the server to my PC, I have to change the security permissions. Isn't there some way so that the directory can own the permissions and the files in that directory will just inherit the proper security? Does that make sense? Is that even possible?
Secondly, every time I go to a page locally that needs to read from the DB, I get a dialog saying "Authorization Required" and gives a place for username and password. Absolutely nothing I enter will get me past this dialog - except Canceling (hitting ESC). It is like my DB thinks it SHOULD have a password, but since it doesn't it gets confused. I just want the dialog to go away. If I have to enter a user/pass on the db and then set that in my connection string - I will do that. I just want to understand what is happening.
Here is my version info:
IIS 5.1
Access 2000
Here is my connection string info:
Code:
<%
Response.Expires = -1000
Dim con,strCon
Set con = Server.CreateObject("ADODB.Connection")
con.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)}; " & _
" DBQ=" & Server.MapPath("\site_name\db\db_name.mdb")
%>
Any takers? I'm sorry if I confused the issue. I feel I am just looking for some basic knowledge here. I just need to know how to ask it.
Einstein47
(For best results: hand wash in cold, tumble dry low. For not so good results: drag through puddles, pound on rocks, air dry on tree branch.)