已经为此应用程序配置了一种存储机制 [英] A storage mechanism has already been configured for this application

查看:67
本文介绍了已经为此应用程序配置了一种存储机制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试启动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

推荐答案

在调用NHibernateSession.Init()清除任何先前的启动之前,尝试添加此行.

Try to add this line before calling NHibernateSession.Init() to clear any previous initiation.

try {NHibernateSession.Reset();}抓{}

try{ NHibernateSession.Reset(); } catch { }

这篇关于已经为此应用程序配置了一种存储机制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆