One workaround would be to inherit from Elmah.SqlErrorLog and override the ConnectionString property implementation to calculate and supply the connection string dynamically at runtime. Next, register your subclass of SqlErrorLog as the default error log in web.config.
- Atif