Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Operation must use an updateable query

Reply
Thread Tools

Operation must use an updateable query

 
 
dancer
Guest
Posts: n/a
 
      07-10-2007
Using Asp.net 1.1

Trying to learn updating an Access database. Copied code straight from an
example. Received this error:

Operation must use an updateable query

The line in question was this:
DBCommand.ExecuteNonQuery()

I looked here: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=287

I gave full permissions on the Inet WWWRoot folder and on the mdb file.
Still same error.

The site above recommends modifying the Web.config file by adding <identity
impersonate="true">, but I don't know which config file to modify. I have
zillions on my computer.
Can somebody tell me which?

Or does somebody have an other solution?




 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      07-11-2007
On Jul 10, 11:53 pm, "dancer" <dan...@microsoft.com> wrote:
> Using Asp.net 1.1
>
> Trying to learn updating an Access database. Copied code straight from an
> example. Received this error:
>
> Operation must use an updateable query
>
> The line in question was this:
> DBCommand.ExecuteNonQuery()
>
> I looked here:http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=287
>
> I gave full permissions on the Inet WWWRoot folder and on the mdb file.
> Still same error.
>
> The site above recommends modifying the Web.config file by adding <identity
> impersonate="true">, but I don't know which config file to modify. I have
> zillions on my computer.
> Can somebody tell me which?
>
> Or does somebody have an other solution?


Provide modify rights for the folder that contains the database (.mdb)
file to the user account under which ASP.NET is running (usually,
MACHINENAME\ASPNET) and ensure that sql query is working directly from
Access IDE

 
Reply With Quote
 
 
 
 
dancer
Guest
Posts: n/a
 
      07-11-2007
1. Where do I find the name of the user account under which ASP.NET is
running?
2. What do you mean by "Access IDE"?

Thank you.

"Alexey Smirnov" <> wrote in message
news: oups.com...
> On Jul 10, 11:53 pm, "dancer" <dan...@microsoft.com> wrote:
>> Using Asp.net 1.1
>>
>> Trying to learn updating an Access database. Copied code straight from
>> an
>> example. Received this error:
>>
>> Operation must use an updateable query
>>
>> The line in question was this:
>> DBCommand.ExecuteNonQuery()
>>
>> I looked here:http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=287
>>
>> I gave full permissions on the Inet WWWRoot folder and on the mdb file.
>> Still same error.
>>
>> The site above recommends modifying the Web.config file by adding
>> <identity
>> impersonate="true">, but I don't know which config file to modify. I
>> have
>> zillions on my computer.
>> Can somebody tell me which?
>>
>> Or does somebody have an other solution?

>
> Provide modify rights for the folder that contains the database (.mdb)
> file to the user account under which ASP.NET is running (usually,
> MACHINENAME\ASPNET) and ensure that sql query is working directly from
> Access IDE
>



 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      07-11-2007
On Jul 11, 4:32 pm, "dancer" <dan...@microsoft.com> wrote:
> 1. Where do I find the name of the user account under which ASP.NET is
> running?
> 2. What do you mean by "Access IDE"?
>


Hi, if <identity impersonate="false"> ASP.NET runs under default local
account named the ASPNET. You can change this account by configuring
the <processModel> element in the C:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\CONFIG\machine.config file. If impersonation is enabled
(impersonate="true"), ASP.NET executes with the user identity. So, I
think that you should give to the ASPNet account the modify
permissions to the folder that contains the database file. Moreover,
it could be that the query is wrong and it can be checked in the MS
Access. START - Run - msaccess.exe

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Operation must use an updateable query. Kevin Spencer ASP .Net 3 04-29-2004 01:17 PM
Re: Operation must use an updateable query. Alphonse Giambrone ASP .Net 3 04-29-2004 02:44 AM
Operation must use an updateable query Error!!! =?Utf-8?B?S2Vu?= ASP .Net 6 02-13-2004 03:45 PM
Operation must use an updateable query Error!!! =?Utf-8?B?S2Vu?= ASP .Net 0 02-13-2004 01:46 PM
Operation must use an updateable query error. abdul haleem ASP .Net 3 10-19-2003 05:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57