|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
IIS 5.1 MS Access, ASP.NET write permissions
Hi there,
I desperately need help to configure IIS 5.1 to grant write permission to ASP.NET application to MS Access database. I have following configuration Win XP professional IIS 5.1 ASP.NET MS Access I can access database fine but when I want to delete/update database I get following error/message Exception Details: System.Data.OleDb.OleDbException: Could not delete from specified tables I am a newbie and don't know how to grant write permission. Please help, I am trying to resolve this issue for the last 3 days Code:
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Page Language="VB" Debug="true" %>
<script runat="server">
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & server.mappath("Emails.mdb"))
dbconn.Open()
sql="DELETE FROM List where email='somemail@yahoo.com'"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteNonQuery()
dbread.Close()
dbconn.Close()
end sub
</script>
<html><body>
Mission Accomplished
</body></html>
Your help is greatly appreciated. Judy |
|
#2
|
|||
|
|||
|
Use the nt file permissions to allow the web server permissions.
Normally an anonymous web user will be using the IUSR_computername account. Open the file or folder in windows explorer, properties, security to change settings of permissions.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > IIS 5.1 MS Access, ASP.NET write permissions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|