Estoy tratando de generar 2 planillas al mismo tiempo Una "Mensual con Anticipo quincenal" y una "Quincenal". Algunas veces funciona y otras me devuelve este error una de ellas. Qué estaré haciendo mal? Como que se bloquean la una a la otra.

si las corro independientes no da problema.

Versión 1.8.4.1

System.IO.IOException: The process cannot access the file 'C:\Program Files (x86)\ASEINFO\Evolution Tools 1.8.4.0\vbsCode.txt' because it is being used by another process.
 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
 at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath,     Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
 at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
 at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
 at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
 at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
 at Aseinfo.VH4.WindowsServices.Salarios.Ejecutores.EjecutorFormulacionVBScript.EjecutarFormulas() in     c:BuildAgentwork608d469cc106b504VH4WindowsServicesGeneraPlanillaWindowsServiceSalariosEjecutoresEjecutorFormulacionVBScript.cs:line 189

asked 12 Jan '15, 23:17

Juan%20Carlos%20Soria's gravatar image

Juan Carlos Soria
1.1k174179185
accept rate: 41%

edited 13 Jan '15, 00:30

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635

¿Estas ejecutando 2 períodos del mismo tipo de planilla?

(13 Jan '15, 00:27) Fernando Paz ♦♦ Fernando%20Paz's gravatar image

Pareciera que el fuente cuando graba el archivo vbsCode.txt, no está considerando el caso en que dos planillas requieran grabar al mismo tiempo.

Por el momento no hay workaround, es cuestión de suerte que el archivo esté abierto, cuando la otra planilla lo quiera guardar.

Voy a poner un Issue para encontrar alguna alternativa viable. Lo que no quisiera es agregarle fecha y hora, porque se va a guardar ese archivo por cada vez que se ejecute la planilla. Pero le vamos a buscar una manera de evitar el error.

link

answered 13 Jan '15, 00:29

Fernando%20Paz's gravatar image

Fernando Paz ♦♦
17.3k81635
accept rate: 51%

Podría ser nombrarlo por tipo de planilla?

(13 Jan '15, 22:21) Juan Carlos Soria Juan%20Carlos%20Soria's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Evolution en BitBucket

En este sitio puede acceder al código fuente, centro de descargas y reportar bugs, propuestas y mejoras para Evolution.

Evolution en JIRA

En este sitio puedes sugerir nueva funcionalidad para Evolution, o puedes votar por la funcionalidad ya propuesta por otros usuarios.

Tags:

×47

Asked: 12 Jan '15, 23:17

Seen: 2,047 times

Last updated: 13 Jan '15, 22:21

[Acerca de] [Preguntas Frecuentes] [Privacidad] [Soporte] [Contacto]
Copyright 2013-2018. Asesores en Informática