Hi, Paul:
Thank you very much.
The way you explain is very close to what I guess........
But I still have questions. What is the (network) user id ADO.NET is using
when it try to connect to a database on the server? The user id I login on
to the network has full permissions to that folder. That folder is actually
set to allow Everyone to access it with full permissions.
Could I find any place to put a network user id in the connection string? Or
I have to create a "Admin" user with blank password in the domain?
Thank you again
Darren L.
> ¤ Hi:
> ¤
[quoted text clipped - 13 lines]
> ¤ New
> ¤
OleDb.OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;Password="""";User
> ¤ ID=Admin;DATA Source=F:\CUPData.mdb")
> ¤ strSQL = "Select * From AllCards_ForStore Where [Cust#] = '" &
[quoted text clipped - 15 lines]
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)
Paul Clement - 22 Aug 2003 22:08 GMT
¤ Hi, Paul:
¤
¤ Thank you very much.
¤
¤ The way you explain is very close to what I guess........
¤
¤ But I still have questions. What is the (network) user id ADO.NET is using
¤ when it try to connect to a database on the server? The user id I login on
¤ to the network has full permissions to that folder. That folder is actually
¤ set to allow Everyone to access it with full permissions.
¤
¤ Could I find any place to put a network user id in the connection string? Or
¤ I have to create a "Admin" user with blank password in the domain?
¤
The user ID should be the person who is logged on to the local Windows machine (or logged on to the
network share if that is what you are using).
If you're still having a problem I would check the Event log of the file server in order to
determine whether there are any security/permission events logged.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
Darren Li - 30 Aug 2003 01:16 GMT
Hi, Paul:
Finally I figued it out.......
Because my computer domain is different from the user domain. (strange, I
don't understand our network guy's logic......)
To setup the userid and password, using the following config file......
\%windows%\Microsoft.NET\Framework\Version\Config folder
<!-- machine.config file -->
<system.web>
<processModel
enable="true"
username="domain\user"
password="password"
/>
</system.web>
And it works ^__^y
Thank you for your help.
> ¤ Hi, Paul:
> ¤
[quoted text clipped - 19 lines]
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)