配置文件中设置如下:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="Cigem.SQLServerDAL" fullName="Cigem.SQLServerDAL,version=1.0.0.0,publicKeyToken=6c13c48089e0ee07,culture=null" />
</assemblyBinding>
</runtime>出错程序如下:
public static Cigem.IDAL.IAccount Create()
{
/// Look up the DAL implementation we should be using
string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
string className = path + ".Account";// Using the evidence given in the config file load the appropriate assembly and class
return (Cigem.IDAL.IAccount) Assembly.Load(path).CreateInstance(className);
即:return (Cigem.IDAL.IAccount) Assembly.Load(Cigem.SQLServerDAL).CreateInstance(Cigem.SQLServerDAL.Account);
}
错误如下:
找不到文件或程序集名称“Cigem.SQLServerDAL”,或找不到它的一个依赖项。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
有谁知道怎么弄吗
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<qualifyAssembly partialName="Cigem.SQLServerDAL" fullName="Cigem.SQLServerDAL,version=1.0.0.0,publicKeyToken=6c13c48089e0ee07,culture=null" />
</assemblyBinding>
</runtime>出错程序如下:
public static Cigem.IDAL.IAccount Create()
{
/// Look up the DAL implementation we should be using
string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
string className = path + ".Account";// Using the evidence given in the config file load the appropriate assembly and class
return (Cigem.IDAL.IAccount) Assembly.Load(path).CreateInstance(className);
即:return (Cigem.IDAL.IAccount) Assembly.Load(Cigem.SQLServerDAL).CreateInstance(Cigem.SQLServerDAL.Account);
}
错误如下:
找不到文件或程序集名称“Cigem.SQLServerDAL”,或找不到它的一个依赖项。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
有谁知道怎么弄吗
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货