1

我们在 ASP.NET MVC 4,框架 4.0 中开发了一个应用程序,数据库作为我们使用的 dll 的 MY SQL 版本:MySQl.data.dll:6.8.3 Nhibernate:3.3.3 Newtonsoft.json:4.5.11.15520 Fluent Nhibernate: 1.4.0.0

它在我的本地系统上运行良好,但在 Hostgator 服务器上运行不正常。它无法连接到数据库。我们使用“log4net”来记录错误,并在连接到数据库时出现以下错误-

INFO 2014-05-31 02:54:24 类:roundshopee.Models.DeverrorsRepository 方法:IsDeverrorsExists 行#:195 FluentNHibernate.Cfg.FluentConfigurationException:创建 SessionFactory 时使用了无效或不完整的配置。检查 PotentialReasons 集合和 InnerException 了解更多详细信息。

---> System.Security.SecurityException:请求“System.Security.Permissions.SecurityPermission,mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”类型的权限失败。

我们用来连接数据库的连接字符串是:

数据源=localhost;用户ID=group_roundshope;密码=g#s9Um09;persist security info=False;初始目录=groupon_roundshopee;charset=utf8;转零日期时间=true;

我已经检查了你教程中的视频,但没有用所以,你能帮帮我吗?

4

0 回答 0