c# window application system.data.oledb.oledbexception operation must use an updateable query

StackOverflow https://stackoverflow.com/questions/17205045

  •  01-06-2022
  •  | 
  •  

문제

I have made a window application that works very well when i ran through but after creating its setup it is throwing below mentioned exception. I have try to give full access to the database file but still it is not working.

system.data.oledb.oledbexception operation must use an updateable. query

i am using window 7 and installation folder is c:\program files\abc\ and access db is in same folder. Is this any issue of permissions? Please assist me to remove this exception.

도움이 되었습니까?

해결책

There can be some permission issue just refer this Link

http://www.mikesdotnetting.com/Article/74/Solving-the-Operation-Must-Use-An-Updateable-Query-error

Make sure the ASPNET account (or whatever account is in use at the time) has Change permissions to the directory where the .mdb file is located. Access needs to write some temp and locking files during the operation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top