Hi,
I have a problem when I run a map using thematic layers using the image below, appear an error
“requested registry access is not allowed”
“The Microsoft Jet database engine could not find the object ‘JaliscoF-NEM’. Make sure the object exists and that you spell its name and the path name correctly.”, attach code where appears error in yellow line
this code works fine in my local machine win8.1 and in a server win2008 but I installed new server with win2012 and appear that error the settings are the same for 3 environment (shapes,databases and source code) but only in the win2012 fails I think this happen for permisions errors
thanks for your help
CapaTematica thematicLayer = (CapaTematica)((ThreadState)state).layer;
if (!allDataSources.ContainsKey(thematicLayer.FuenteDeDatos.Nombre))
{
string tabName = Path.GetFileNameWithoutExtension(thematicLayer.FuenteDeDatos.Ruta);
string column = ((ThreadState)state).layer.FuenteDeDatos.CaracteristicaColumna;
FeatureSource featsrc = ((ThreadState)state).fs;
featsrc.Open();
var allFeatures = featsrc.GetAllFeatures(ReturningColumnsType.AllColumns);
var lookupFeatures = (Lookup<string, Feature>)allFeatures.ToLookup(x => x.ColumnValues[column].ToString(), y => y);
DataTable searchDataSource = new DataTable(tabName);
if (featsrc.CanExecuteSqlQuery)
{
searchDataSource = featsrc.ExecuteQuery(string.Format(“select * from {0}”, tabName));
}
else
{
foreach (var colVal in allFeatures.FirstOrDefault().ColumnValues)
{
searchDataSource.Columns.Add(colVal.Key, typeof(string));
}
foreach (var feature in allFeatures)
{
DataRow dr = searchDataSource.NewRow();
foreach (var cv in feature.ColumnValues)dr[cv.Key] = cv.Value;
searchDataSource.Rows.Add(dr);
}
}
((ThreadState)state).fs.Close();
allDataSources.Add(thematicLayer.FuenteDeDatos.Nombre, lookupFeatures);
newAllDataSources.Add(thematicLayer.FuenteDeDatos.Oid, searchDataSource);