Получение недопустимых символов в пути при генерации файлов с использованием процедур - PullRequest
0 голосов
/ 23 мая 2019

У меня возникает ошибка, когда я генерирую процедуру, то, что я делал, вызывал ее в нескольких для каждого и создавал некоторые нужные мне файлы, но после создания некоторых из них происходил сбой.

Я попытался изменить метод вызова, атрибуты, даже изменить данные, чтобы увидеть, если они были повреждены, и я не могу точно определить, где возникла ошибка Вот ошибка:

[ArgumentException: Caracteres no válidos en la ruta de acceso.]
       System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) +14531724
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) +509
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +144
System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +123
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +103
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +30
GeneXus.Printer.GxPrintManager.initPrinting(StreamReader streamToRead, Boolean mustSlot) +298
GeneXus.Printer.GxPrintManager.Start() +64
GeneXus.Printer.GxCommandFileSender.closeAndSend() +308
GeneXus.Printer.GxCommandFileSender.Close() +16
GeneXus.Programs.generateFile.executePrivate() +11842
GeneXus.Programs.generateFile.execute(Int64& aP0_Account, String& aP1_tag6, String& aP2_tag2, Int16& aP3_count) +97
GeneXus.Programs.FileGenerator.E110L2() +3199

[TargetInvocationException: Se produjo una excepción en el destino de la invocación.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +260
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +142
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +774
GeneXus.Http.DynAjaxEvent.doInvoke(Object[] MethodParms) +180
GeneXus.Http.DynAjaxEvent.invoke(String JsonMessage, GXHttpHandler targetObj) +317
GeneXus.Http.GXHttpHandler.webAjaxEvent() +230
GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +1484

[Exception: GXApplication exception]
GeneXus.Http.GXHttpHandler.ProcessRequest(HttpContext httpContext) +1896
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88

Спасибо

...