Running Prism application from a share on a lan

Topics: Prism v4 - WPF 4
Dec 23, 2010 at 6:48 PM

We have found that if we load the modules of our prism application using the app.config configuration, the application does not load when invoked from a share on our network. We are able to run other .net applications from a share, so, at first glance, the issue does not appear to be .net security related. The exception will be thrown in the base.InitializeModules method of the boot strapper. Once I moved the module loading from the app.config.xml to the CreateModuleCatalog method, the application runs fine from a share. We are using Prism V4 drop 10. Below is an example of the error message from the exception:

[System.Configuration.ConfigurationErrorsException] = {"An error occurred creating the configuration section handler for modules: Request failed.

Thanks for any assistance with this issue.




Dec 23, 2010 at 7:24 PM


The problem you’re experiencing might be because when you retrieve a module from the App.Config file, prism internally uses the FileModuleTypeLoader class, that places a file:// prefix before the path specified in the App.Config. If you’re retrieving your module from a network share, that might be causing an error.

So, when retrieving the module from another place, you are specifying the path directly, which could probably be the cause why it works.

If you necessarily need to use the App.Config file to retrieve your modules, you could extend Prism by creating another module type loader that retrieves modules from a shared location.

I hope you find this information useful.


Miguel Bronzovic