gx-l |
| sebastianbaioni | |
Estimados, En uno de los modelos me sucedió que al armar un &mailMessage me explotaba el .NET. Con un catch/try el mensaje era el siguiente: ERROR NO CONTROLADO - en POS 4; System.TypeInitializationException: The type initializer for 'GeneXus.Search.GxSearchUtils' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'GeneXus.Search.Settings' threw an exception. ---> System.UnauthorizedAccessException: Access to the path ' *C:\inetpub\wwwroot\LuceneIndex*' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) at GeneXus.Search.Settings..ctor() at GeneXus.Search.Settings..cctor() --- End of inner exception stack trace --- at GeneXus.Search.Indexer.CreateAnalyzer() at GeneXus.Search.Indexer..ctor() at GeneXus.Search.Indexer.get_Instance() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) at GeneXus.Search.GxSearchUtils..cctor() --- End of inner exception stack trace --- at GeneXus.Search.GxSearchUtils.HTMLClean(String text) at GeneXus.Programs.mailenviar.S111() at GeneXus.Programs.mailenviar.executePrivate() El error ocurre al intentar hacer esto: &errorLinea = 'POS 4' &mailMessage.Subject = Iif(&asunto.Trim().IsEmpty(), 'ASUNTO', &asunto. Trim()) // Asunto &mailMessage.Text = &texto.HTMLClean() // Mensaje &mailMessage.HTMLText = &texto // Mensaje con formato HTML &adjuntoMsgs.SetEmpty() &errorLinea = 'POS 5' Que me diga "en POS 4" me indica que es en ese fragmento de código dado que lo concateno con la rutina del try/catch. Lo hemos solucionado creando el directorio hasta entonces inexistente "C:\inetpub\wwwroot\LuceneIndex", pero no sabemos a qué se debe, dado que en el ambiente de desarrollo funciona sin él y los web.config son idénticos. ¿Alguien sabe a qué se debe? Gracias, Sebastián ----------------------------------------- Para Suscribirse/Desuscribirse: http://www.gxtechnical.com/cgi-bin/hforum.exe?2,3,30,1 Por consultas owner-gx-l@gxtech.com.uy |
|
|
| | |
Back to gx-l |
|