|
152
|
Programación / .NET (C#, VB.NET, ASP) / Re: Error CLR20r3 aplicacion no corre en otra pc
|
en: 23 Diciembre 2017, 04:25 am
|
si si , claro ese error ya lo solvente lo mensione mas arriba, el problema que no eh resuelto fue el primero el que dice Framenetwork. No se controló System.InvalidOperationException HResult=-2146233079 Message=El nombre 'window' no se encuentra en el ámbito de nombres de 'Ventana.MainWindow'. Source=PresentationFramework este es mi dolor de cabeza , ya te enive el codigo a ver que observa tu.
|
|
|
154
|
Programación / .NET (C#, VB.NET, ASP) / Re: Error CLR20r3 aplicacion no corre en otra pc
|
en: 22 Diciembre 2017, 16:17 pm
|
Disculpen que yo mismo me responda o escriba solo pero es la unica manera de poder estar actualiando lo que esta ocurriendo, y el segundo punto donde decia cadena vacia, LO EH SOLVENTADO!!! resulta que al correrlo en el visual como dijo Elektro me mostro que cargaba por defecto algo que en teoria esta vacio cuando sale de fabrica por decirlo como "Nuevo" solamente lo comente y abrio el programa, aun no lo eh probado como tal pero ya es un avance , por ahora solo me queda el primer punto , que mensiona al FrameNetwork. GRACIAS ELEKTRO !!! de verdad si no aplico eso de instalar visual en la otra maquina estaria tirando con una escopeta al aire sin saber a q apuntar, gracias. Seguire actualizando el post para darles informacion al respecto, y espero esta experiencia mia le resulte util a muchos para que no cometan estos errores (novatadas y desconocimiento de mi parte). o bueno cosas que pueden pasar por alto. Cabe mencionar que el programa se ve en la parte grafica rara no como lo diseñe en blen se ve feo entocnes de ahi sale el problema de FrameNetwork agrego esto para que tengan mas idea de lo que ocurre y tengan la mayor informacion detallada para poder darme posibles soluciones.
|
|
|
155
|
Programación / .NET (C#, VB.NET, ASP) / Re: Error CLR20r3 aplicacion no corre en otra pc
|
en: 22 Diciembre 2017, 16:04 pm
|
En efecto como dijo Elektro instale el visual studios en la otra pc y me genero el error que ahora puedo ver y este es el evento que me produjo uno de los modulos del programa donde en teoria es una ventana de "Aviso" No se controló System.InvalidOperationException HResult=-2146233079 Message=El nombre 'window' no se encuentra en el ámbito de nombres de 'Ventana.MainWindow'. Source=PresentationFramework StackTrace: en System.Windows.Media.Animation.Storyboard.ResolveTargetName(String targetName, INameScope nameScope, DependencyObject element) en System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) en System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer) en System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer) en System.Windows.Media.Animation.BeginStoryboard.Begin(DependencyObject targetObject, INameScope nameScope, Int64 layer) en System.Windows.Media.Animation.BeginStoryboard.Invoke(FrameworkElement fe) en System.Windows.EventTrigger.EventTriggerSourceListener.Handler(Object sender, RoutedEventArgs e) en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) en System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) en System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) en System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) en MS.Internal.LoadedOrUnloadedOperation.DoWork() en System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) en System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) en System.Windows.Interop.HwndTarget.OnResize() en System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) en System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) en MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) en System.Windows.Window.ShowHelper(Object booleanBox) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.DispatcherOperation.InvokeImpl() en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) en MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) en System.Windows.Threading.DispatcherOperation.Invoke() en System.Windows.Threading.Dispatcher.ProcessQueue() en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) en System.Windows.Application.RunDispatcher(Object ignore) en System.Windows.Application.RunInternal(Window window) en System.Windows.Application.Run(Window window) en System.Windows.Application.Run() en Ventana.App.Main() en C:\Users\Test\Desktop\Ventana Ayuda\Ventana\obj\Debug\App.g.cs:línea 0 en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() en System.Threading.ThreadHelper.ThreadStart_Context(Object state) en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) en System.Threading.ThreadHelper.ThreadStart() InnerException:
y este es el oto evento que se genera en el programa principal No se controló System.ArgumentException HResult=-2147024809 Message='name' no puede ser una cadena vacía. Nombre del parámetro: name ParamName=name Source=System.Speech StackTrace: en System.Speech.Internal.Helpers.ThrowIfEmptyOrNull(String s, String paramName) en System.Speech.Synthesis.SpeechSynthesizer.SelectVoice(String name) en AIRH.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) en C:\Users\Test\Desktop\AIRH\AIRH\MainWindow.xaml.cs:línea 74 en System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) en System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) en System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) en System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) en System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) en System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) en MS.Internal.LoadedOrUnloadedOperation.DoWork() en System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() en System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() en System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) en System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) en System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) en System.Windows.Interop.HwndTarget.OnResize() en System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) en System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) en MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) en System.Windows.Window.ShowHelper(Object booleanBox) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.DispatcherOperation.InvokeImpl() en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) en MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) en System.Windows.Threading.DispatcherOperation.Invoke() en System.Windows.Threading.Dispatcher.ProcessQueue() en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) en System.Windows.Application.RunDispatcher(Object ignore) en System.Windows.Application.RunInternal(Window window) en System.Windows.Application.Run(Window window) en System.Windows.Application.Run() en AIRH.App.Main() en C:\Users\Test\Desktop\AIRH\AIRH\obj\Debug\App.g.cs:línea 0 en System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) en System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) en Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() en System.Threading.ThreadHelper.ThreadStart_Context(Object state) en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) en System.Threading.ThreadHelper.ThreadStart() InnerException:
aqui ya me mostro y puedo ver , cosa donde me pondre ya a trabajar en ello, espero opiniones y posibles soluciones gracias de antemano.
|
|
|
156
|
Programación / .NET (C#, VB.NET, ASP) / Velocidad 2 Proyectos diferentes o Todo en una misma solucion??
|
en: 22 Diciembre 2017, 13:46 pm
|
Bueno, mi consulta es la siguiente, quisiera saber si el rendimiento de un programa mejora en estas condiciones:
Caso 1: El primer programa que realice hacia muchas referencias a archivos externos TXT y al ponerlo en funcionamiento el tiempo de reaccion era ciertamente lento.
Caso 2: Descarte la primera opcion y realice desde cero este segundo, las referencias que hacia a archivos externos, la utilice dentro de la misma solucion como "clases", esto mejoro enormemente el tiempo de respuesta, aciendolo mas corto osea mas rapido cumplir la accion cuando uno la ejecutaba.
Actualmente llamo programas externos desde la solucion osea (archivos .exe) y mi pregunta radica en este punto.
Caso 3: Realizar el programa desde cero nuevamente y los archivos exe que llama , crearlos en la misma solucion, para no llamar al exe , de forma externa si no llamarlo desde dentro de la solucion, en caso de ser posibole mejoraria el rendimiento del programa respecto a velocidad de respuesta??
Nota: Actualmente mi programa funciona solamente en mi pc y no en otras computadoras, cosa que quiero resolver y no encuentro como , si alguien tiene una sugeencia estaria perfecto.
|
|
|
157
|
Programación / .NET (C#, VB.NET, ASP) / Re: Error CLR20r3 aplicacion no corre en otra pc
|
en: 21 Diciembre 2017, 18:35 pm
|
me gusto eso del ini lo tendre en mente para un futuro por ahora, solo debo buscar la forma de que me abra este programa en cualquier otra pc s in problemas , gracias por la informacion. EDITO: viendo otros modulos de la aplicacion que cree resulta que tambien me dan error de abrir y este es distinto al primero. Firma con problemas: Nombre del evento de problema: CLR20r3 Firma del problema 01: VentanaAyuda.exe Firma del problema 02: 1.0.0.0 Firma del problema 03: 5a37fa4d Firma del problema 04: PresentationFramework Firma del problema 05: 4.7.2558.0 Firma del problema 06: 59d41ae6 Firma del problema 07: 169b Firma del problema 08: 8f Firma del problema 09: System.InvalidOperationException Versión del sistema operativo: 6.1.7601.2.1.0.256.1 Id. de configuración regional: 3082 Información adicional 1: 0a9e Información adicional 2: 0a9e372d3b4ad19135b953a78882e789 Información adicional 3: 0a9e Información adicional 4: 0a9e372d3b4ad19135b953a78882e789 Nota: en la otra pc instale el ultimo netframework 4.7.1 SpeechPlatformRuntime x86 Microsoft Visual C++ Redistribuible 2013, 2015, 2008 esto es lo que mas relevancia creo yo que debo tener, lo ultimo seria instalar el visual studios 2015 para abrir alla el proyecto. lo otro fue que lei user acount control, muy por encima esto tendra que ver? ayudenme a descartar y lograr q corra en otra pc, ya que podria decir que esta "lista". (sacando que siempre salen cosas por pulir cada vez que reviso)
|
|
|
158
|
Programación / .NET (C#, VB.NET, ASP) / Re: Grabadora de Sonido
|
en: 21 Diciembre 2017, 18:23 pm
|
si supieras, pisaba por ese lado de sonido predeterminado, solo que nunca imagine en cambiar el microfono por el mezclador, lo coloque en predeterminado y me grabo el sonido , feo pero lo grabo, y si estoy con el nAudio pero es que no allo como empezar por que lo veo complicado, incluso con ese ejemplo que me das ya lo tengo en favoritos pero al copiarlo me da errores no se que falta como tal.
si funcionara ya abria empezado a observar de donde sale cada cosa y demas.
Gracias por esto ya se que si sirve jeje ya vere como aprender nAudio
|
|
|
159
|
Programación / .NET (C#, VB.NET, ASP) / Re: Grabadora de Sonido
|
en: 21 Diciembre 2017, 15:27 pm
|
en efecto, solo faltaba la ruta de para crear la carpeta y el lo guardara, lo probe y si graba lo que sale de las cornetas (con una calidad baja cabe mencionar), pero cumple el cometido, ahora te pregunto hay alguna manera de adaptarla a wpf? por que eh probado con otras cosas y no eh tenido exito, ya en algunos casos eh podido cambiar de form a wpf, pero nuca de CMD a wpf, ya que esto solo quiero agregar 2 botones rec y stop/save(automatico) alguna idea ? EDITO: Resulta que probando la grabadora NO graba lo que sale de las cornetas , solo captura el microfono, tomaba las cornetas por que es sensible y a lo capturaba el sonido de las cornetas por el microfono, vuelvo al inicio. en este caso como puedo hacer que en vez de el microfono me capture las cornetas este ejemplo que consegui en internet? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices;
namespace GrabadoraCMD { class Program { [DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)] private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
static void Main(string[] args) { mciSendString("open new Type waveaudio Alias recsound", "", 0, 0); mciSendString("record recsound", "", 0, 0); Console.WriteLine("Grabando, Presioe ENTER para detener..."); Console.ReadLine();
System.IO.Directory.CreateDirectory(@"C:\Grabaciones"); mciSendString("save recsound c:\\Grabaciones\\result.wav", "", 0, 0); mciSendString("close recsound ", "", 0, 0); } } }
|
|
|
160
|
Programación / .NET (C#, VB.NET, ASP) / Re: Error CLR20r3 aplicacion no corre en otra pc
|
en: 21 Diciembre 2017, 15:14 pm
|
Nota: las propiedades a nivel de usuario se almacenan en otro directorio (otro archivo.config), aunque por otro lado si lo deseas siempre puedes especificar dichas propiedades en el archivo.config que se genera junto al .exe en la misma carpeta para overridear el valor inicial por defecto de dichas propiedades.
Saludos
entendido y siempre me pregunte si era posible redirigir la configuracion que se guardaba en las settings por el ususario en otro lado que no fuera %appdata% lo revisare con detalle gracias por este dato . o anterior es mas complicado ya me las ingeniare para resolver ese asunto de busqueda de error
|
|
|
|
|
|
|