EL error que me tira es :
Server Error in '/' Application.
Operation must use an updateable query.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Operation must use an
updateable query.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[OleDbException (0x80004005): Operation must use an updateable query.]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
+41
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS
dbParams, Object& executeResult) +174
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
+92
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior,
Object& executeResult) +65
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior
behavior, String method) +112
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +66
WebAmericanRam.PC.DataGrid1_UpdateCommand(Object source,
DataGridCommandEventArgs e) in
E:\Inetpub\wwwroot\WebAmericanRam\PC.aspx.vb:603
System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs
e) +109
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs
e) +507
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source,
EventArgs e) +100
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +120
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.Rai
sePostBackEvent(String eventArgument) +115
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1277
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Alguien tiene alguna idea de como solucionar esto ?? Me suena como que es un
problema de seguridad mas que de codigo
Gracias
Mario
Deberían o deberías poder dar permisos al directorio en el que se encuentran
las bases de datos o sobre los ficheros de bases de datos.
Espero que eso solucione tu problema, que creo que se debe a lo que te estoy
comentando.
Un saludo,
--
Jorge Serrano Pérez
MVP Microsoft .NET
PortalVB.com
http://www.portalvb.com/
Responsable de la Comunidad de Desarrolladores de Microsoft Visual Basic
.NET en español
http://www.microsoft.com/spanish/msdn/comunidad/comunidades/vbnet/
"Mario Ruiz Diaz" <mar...@fibertel.com.ar> escribió en el mensaje
news:ul7iz1OX...@TK2MSFTNGP12.phx.gbl...
"Mario Ruiz Diaz" <mar...@fibertel.com.ar> escribió en el mensaje
news:ul7iz1OX...@TK2MSFTNGP12.phx.gbl...
Sin embargo, sigo opinando que el problema radica en los permisos sobre el
archivo de Access.
Ese error es muy común y los permisos deben darse a la carpeta que se
utiliza y para los usuarios de acceso a datos, con permisos de escritura (no
sólo de lectura).
Hay una manera de mirar esto.
Si la SELECT funciona, es porque el acceso a BD está bien.
Si una sentencia DELETE, UPDATE, INSERT no funciona, es porque hay problemas
de acceso o permisos.
Mira este punto a ver si se soluciona.
Recuerda los permisos de la carpeta, es fundamental.
Un saludo,
--
Jorge Serrano Pérez
MVP Microsoft .NET
PortalVB.com
http://www.portalvb.com/
Responsable de la Comunidad de Desarrolladores de Microsoft Visual Basic
.NET en español
http://www.microsoft.com/spanish/msdn/comunidad/comunidades/vbnet/
"Andres Lycos Ferreyra" <ingafe...@lycos.es> escribió en el mensaje
news:eq2LAfM...@TK2MSFTNGP10.phx.gbl...