<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="抽象工厂模式 为什么在BLL层报错“未将对象引用设置到对象的实例”" id="card1">
<p> 游客</p><p>
标题:抽象工厂模式 为什么在BLL层报错“未将对象引用设置到对象的实例”<br/>
正文:<br/>
抽象工厂模式 为什么在BLL层报错&amp;ldquo;未将对象引用设置到对象的实例&amp;rdquo;&amp;lt;!--数据访问层程序集名称 --&amp;gt;  &amp;lt;add key=&amp;quot;Camnpr.DAL&amp;quot; value=&amp;quot;Camnpr.com.SQLServerDAL&amp;quot;/&amp;gt;  &amp;lt;add key=&amp;quot;Bubuol.DAL&amp;quot; value=&amp;quot;Bubuol.com.SQLServerDAL&amp;quot; /&amp;gt;  &amp;lt;!--实体对象内容缓村的时间（分钟）--&amp;gt;  &amp;lt;add key=&amp;quot;ModelCache&amp;quot; value=&amp;quot;30&amp;quot;/&amp;gt;LZ是不是没有在web.config里配置这些项呀。具体根据自己项目中调用configure的名字改一下。位置在*.DALFactory项目里的DataAccess.cs：private static readonly string AssemblyPath = ConfigurationManager.AppSettings[&amp;quot;Camnpr.DAL&amp;quot;];。。。  和 *.BLL项目里的表名.cs：int ModelCache = CamnprTool.ConfigHelper.GetConfigInt(&amp;quot;ModelCache&amp;quot;);<br/><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=277&amp;Page=1">[&lt;&lt;]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=277&amp;Page=1">[[1]]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=277&amp;Page=1">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=277">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=277">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://camnpr.com/wap.asp">首页</a>
</p>
</card>
</wml>