Hi there
I have a .Net app with the exe file on a server which is shared to users,
they have an icon on their desktop which points to this exe.
Sometimes when they run the exe they get the "failed to respond" message
and the app hangs, and you have to fix it by logging into the server,
running the app, then it runs fine and they can also use it fine.
I believe its to do with setting the configuration bin file which stores
all the classes needed to map to nhibernate tables, occasionly this needs
to be updated when the user runs the app but they dont have permissions on
the server to do so, which makes it just hang.. the file is loaded like
this.. just wondering how I can allow users to update this?
lock (sessionLock)
{
if (sessionFactory != null)
return;
//Declare configuration variable
Configuration configuration = LoadConfigurationFromFile();
//Validate configuration.
if (configuration == null)
{
//Create configuration
configuration = new Configuration()
.Configure(ConfigurationFilePath);
//Add assemblies to configure
IEnumerable<Assembly> assemblies = FindMappingAssemblies();
foreach (Assembly assembly in assemblies)
{
configuration.AddAssembly(assembly);
}
//Save configuration
SaveConfigurationToFile(configuration);
}
}
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.