debug_mode=ON

Buscar en

 
 

Error en programa

deuxmacca
deuxmacca escribió
hace 11 meses

Voy a poner el error que me da, porque solo me lo da en algujos equipos y no se a que se peude deber. a alguien le ha pasado lo mismo??

Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

**** Texto de la excepción ****
System.Configuration.ConfigurationErrorsException: Elemento 'extendedProtectionPolicy' no reconocido. (C:\Documents and Settings\Juan\Configuración local\Apps\2.0\KJ96GAEK.BHY\KCYE7G4L.BYN\ysms..tion9d258338b52b758b0001.0000_5f45521652b41765\YSMS.exe.config line 26)
en System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
en System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
en System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
en System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
en System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
en System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
en System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
en System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
en System.Configuration.ConfigurationManager.GetSection(String sectionName)
en System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSectionFromConfigurationManager(String sectionPath)
en System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath)
en System.ServiceModel.Configuration.ClientSection.UnsafeGetSection()
en System.ServiceModel.Description.ConfigLoader.LookupChannel(String configurationName, String contractName, Boolean wildcard)
en System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
en System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
en System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
en System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
en System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
en System.ServiceModel.ClientBase1.CreateChannelFactoryRef(EndpointTrait1 endpointTrait)
en System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
en System.ServiceModel.ClientBase`1..ctor()
en YSMS.sms.ApplicationServicesPortTypeClient..ctor()
en YSMS.Principal.Principal_Load(Object sender, EventArgs e)
en System.Windows.Forms.Form.OnLoad(EventArgs e)
en System.Windows.Forms.Form.OnCreateControl()
en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
en System.Windows.Forms.Control.CreateControl()
en System.Windows.Forms.Control.WmShowWindow(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
en System.Windows.Forms.ContainerControl.WndProc(Message& m)
en System.Windows.Forms.Form.WmShowWindow(Message& m)
en System.Windows.Forms.Form.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Gracias a todos

 

3 respuestas en "Error en programa"

Basvich
Basvich escribió
hace 11 meses

#1   

Hola, cabe la posibilidad de que ese parámetro sea nuevo, y añadido en el .net 3.5 a la clase httplistener, o sea, prueba a ver si esa es la diferencia entre los equipos en los que funciona y los otros.
Saludos.

 

deuxmacca
deuxmacca escribió
hace 11 meses

#2   

instale el .net 3.5 en los equipos en los que fallaba y nada, puede que sea algun tema de configuracion de seguridad?

 

Basvich
Basvich escribió
hace 11 meses

#3   

el "ExtendedProtectionPolicy", buscando en la msdn, aparece como propiedad del HTTPLIstener (no se si es ese u otra propiedad con mismo nombre de otro lao), y esa propiedad, pone por ahí que es nueva al .net 3.5 SP1, y eso suele ser de por sí fuente de algún problemilla. Pero luego buscando más aparecen otras posibles causas, que hacen que no sea tan simple el problema como por ejemplo:
(si usas silverlight y o windows 7): http://blogs.msdn.com/silverlightws/archive/2009/04/05/some-known-issues-in-sl3-beta.aspx

Otra opción mas "cutre", es que a lo mejor esa opción no tiene que ir en el .config ahí donde está puesta (a veces pasa con cambios de alguna libreria, que cambian de sitio cosas en el config, y siempre hay algo que no queda actualizado y da la puñeta), entonces borrala, y si te es necesaria, pon esa propiedad a mano dentro del codigo a un valor fijo, por lo menos hasta que sepas que ocurre con ese error.
Saludos.

 
 
 
 

© Copyright 2008-2009 debug_mode=ON | Aviso legal | Contacto | FAQ | ¿Quiénes somos? |