Archive for octubre, 2008
Potential runtime violation of table keys
Este error:
Problem in Mapping Fragment starting at line NroLinea: Potential runtime violation of table Tabla’s keys (Entidad.Key): Columns (Entidad.Key) are mapped to EntitySet Tabla’s properties (Tabla.keyNuevo) on the conceptual side but they do not form the EntitySet’s key properties (Tabla.Key1, Tabla.Key2, Tabla.Key3)
Sucede cuando agregamos el diseño relacional una tabla sin primary key, entonces el EF hace que todas los campos sean key, o cuando teniamos varias keys y quitamos algunos key’s.
Por alguna razon el EF no quita esos PK al actualizar el Entity Data Model, hay que editar el XML del archivo edmx, buscar la definicion:
<EntityType Name="Tabla">Y dentro de Key borrar los PropertyRef de los campos que antes estaban como key y ahora ya no estan.
Quitar espacios de una cadena
Como quitar los espacios en blanco de una cadena. Articulo original
public static string RemoveWhitespace(this string str) { try { return new Regex(@"\s*").Replace(str, string.Empty); } catch (Exception) { return str; } }
Unable to update the EntitySet because it has a DefiningQuery and no element exists in the element to support the current operation
Este error:
Unable to update the EntitySet because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation
Es porque la tabla en la base de datos no tiene clave primaria, hay que crearle almenos una clave primaria a la tabla en la base de datos, actualizar el modelo y fijarse que todas las claves primarias esten correctamente mapeadas en el modelo.
Starting amavisd: Found incompatible config file flag!
Tambien tiene el siguiente sintoma:
connect to 127.0.0.1[127.0.0.1]: Connection refused
La instalacion renombre /etc/amavis/amavis.conf a /etc/amavis.conf and renames it to amavis.conf.disabled y falla en preguntar si queres leer mas de los cambios o algo asi, lo que si que falla un paso.
Simplemente renombra el archivo amavis.conf.disabled a amavis.conf.CualquierCosa y borra amavis.conf.disabled.
Volve a ejecutar apt-get install amavis y deberia funcionar sin dramas.
The type ‘‘ exists in both ‘‘ and ‘‘
Si sale este error, cambiar el nombre del directorio app_code porque el mismo al parecer se compila 2 veces
Passwords por defecto
Una lista de passwords por defecto de diferentes programas: http://www.anameless.com/blog/default-passwords.html
You are currently browsing the chocolim.com blog archives for octubre, 2008.