D
dancer
Using Asp.net 1.1 and Vb.net
I am learning to update a database using the following:
DBConnection = New OledbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & _
"Data Source=C:\Inetpub\wwwroot\Acc.mdb" )
My application works with no problem on my remote host computer.
On my own computer, using iis and localhost to test it, I got the error,
"Operation must use an updateable query."
1. As instructed, to get rid of this error, I gave full permissions for the
folder, "wwwroot", where the Acc.mdb file resides, to the account - in this
case it was "Internet Guest Account( ..... )" (This seemed the logical
choice) I did it by right clicking on the folder name, then clicking
properties, then security, and scrolling to the account name.
I still got the error message.
This account name does not exist on the folder, "Inetpub" if I right click,
properties, etc.
2. As instructed, I went to the config folder - path -
Winnt\Microsoft.net\Framework\v1.14322\config\machine config, and changed
<identity impersonate="false"> to <identity impersonate="true">
NOW, I get the message System.Data.OleDb.OleDbException: Unspecified
error,
the line called out as the problem being "DBConnection.Open()" which
follows the DBConnect = New.... above
Who has the answer?
Thank you.
I am learning to update a database using the following:
DBConnection = New OledbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & _
"Data Source=C:\Inetpub\wwwroot\Acc.mdb" )
My application works with no problem on my remote host computer.
On my own computer, using iis and localhost to test it, I got the error,
"Operation must use an updateable query."
1. As instructed, to get rid of this error, I gave full permissions for the
folder, "wwwroot", where the Acc.mdb file resides, to the account - in this
case it was "Internet Guest Account( ..... )" (This seemed the logical
choice) I did it by right clicking on the folder name, then clicking
properties, then security, and scrolling to the account name.
I still got the error message.
This account name does not exist on the folder, "Inetpub" if I right click,
properties, etc.
2. As instructed, I went to the config folder - path -
Winnt\Microsoft.net\Framework\v1.14322\config\machine config, and changed
<identity impersonate="false"> to <identity impersonate="true">
NOW, I get the message System.Data.OleDb.OleDbException: Unspecified
error,
the line called out as the problem being "DBConnection.Open()" which
follows the DBConnect = New.... above
Who has the answer?
Thank you.