惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
D
Docker
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
月光博客
月光博客
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学

博客园 - Magicam

jquery easyui 扩展验证 vs2010 安装 Ajax Control Toolkit Backing up the tail mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法 WInform CMD command Mysql中的数据导入SQLServer2000 VS2010安装SP1后无法安装VS2010 SDK Vs2008调试Silverlight时,出现“未安装silverlight托管调试包” js 取时间代码 Sys.ArgumentOutOfRangeException: Value must be an integer 错误的原因 iframe - Magicam wia Kodak 扫描仪应用 winform - Magicam js实现: e.keycode详解 jquery 无法设置selected属性,未指明的错误 Mysql存储过程游标循环操作 JQuery ListBox间移动和ListBox内上下移动 Tif文件转换成GIF列表 - Magicam - 博客园 Visual Studio 2010 安装“deffactory.dat can not open” 的解决办法 - Magicam js 实现2列 div 自适应高度 - Magicam NetTiers模板属性说明
NHibernate配置引发的异常 - Magicam - 博客园
Magicam · 2010-02-08 · via 博客园 - Magicam

NHibernate.Cfg.Configuration”的类型初始值设定项引发异常

.添加引用 log4net.dll  Iesi.Collections.dll NHibernate.dll

关于NHibernate异常The following types may not be used as proxies 

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns=" urn:nhibernate-mapping-2.2">
<class name="Model.Customer, Model" table="Customer" lazy="false">
……

……
</class>
</hibernate-mapping>

1.未能找到元素“urn:nhibernate-mapping-2.0:hibernate-mapping”的架构信息
把 原来的urn:nhibernate-mapping-2.0改为urn:nhibernate-mapping-2.2

2 .在class中添加lazy=false.

posted @ 2010-02-08 16:26  Magicam  阅读(258)  评论(0)    收藏  举报