Server Error in '/' Application.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a Access Database linked into details view. Everything works fine
when I click "View in Web Browser" and it is run on Local host. I can view,
add, edit records.

When I publish it, I can view records, but I cannot update or insert new
records. It gives the error

Server Error in '/' Application.
"Exception Details: System.Data.OleDb.OleDbException: Operation must use an
updateable query."

It is not stored on a write protected directory.

The Access Data Source is linked into the database which is in App_Data/
folder.

Why can it display but not update?

James
 
As a test, you've given Everyone and IUSR_ Full Control to the App_Data
directory? I don't think IUSR is in the Everyone group actually.

Jeff
 
This is almost always because the ASPNET account (or whatever account the
application is running as) does not have write ACL permissions on the folder
where the Access MDB database file resides. Access needs to make temporary
files during operations. If it can't, that's the exception you get.

Try runnning it temporarily with an Administrator account to see if this is
the issue.
You can do this quickly by adding
<identity impersonate="true" userName="adminuser" password ="pass" />

to the web.config.

Peter
 
Hi

Thanks for your response,

Where should I put that in the file? I put it at the end and it gives an
error message 'Logon failure: unknown user name or bad password.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top