System.Data.OleDb.OleDbException: Operation must use an updateable query. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at Register.ExecuteCommand(String MyCmd) in d:\Project\fake\UserManagement\Register.aspx.cs:line 60The error would be different depending on your ASP.NET code. But the main error will looks similar.
This is very well known problem and may occur under the following circumstances
- An ASP.NET worker process (Aspnet_wp.exe) runs under the default ASPNET account.
- You do not enable impersonation on that application.
- You try to connect to or write to an Access database.
- Right click on the folder containing the Access database, then choose Properties | Security.
- Click "Add".
- Click "Advanced" and make sure the "From this location..." entry matches the current box.
- Click "Find Now" and you will be presented with a list of user accounts.
- Double click the NETWORK SERVICE entry, then click OK.
- Select the "Modify" option, then click "Apply".
Hope this helps.
Reference :
(1) http://support.microsoft.com/default.aspx?scid=kb;en-us;316675
No comments:
Post a Comment