已经为此应用程序配置了存储机制
每当我的 S#arp 架构尝试启动时,我都会收到此错误,这是 SQL Server 的问题(例如:SQL Server 未运行),在启动 SQL Server 并点击刷新后,我收到此错误:
存储机制已经为此应用程序进行了配置
I am getting this error whenever my S#arp Architecture attempts to start and this is an problem with SQL Server (for example: SQL Server is not runing), after I start SQL Server and hit refresh, I get this error:
A storage mechanism has already been configured for this application
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在我必须维护的旧应用程序中,当应用程序启动出现问题时就会发生这种情况。所以我只得回收IIS中的应用程序池。
In an old application I have to maintain, this happened when the application start had issues. So I just had to recycle the application pool in IIS.
尝试在调用 NHibernateSession.Init() 之前添加此行以清除任何先前的启动。
尝试{ NHibernateSession.Reset(); } 抓住 { }
Try to add this line before calling NHibernateSession.Init() to clear any previous initiation.
try{ NHibernateSession.Reset(); } catch { }
NHibernateSession.Init( )
或InitStorage()
被多次调用。您可能会在每个请求时调用它,它应该在启动时仅调用一次。NHibernateSession.Init()
orInitStorage()
is being called more than once. You're probably calling it every request, it's supposed to be called only once at startup.