首页 新闻 会员 周边 捐助

The type 'BDHChina.EAI>BI.Model.BI_GISCabinNodeInfo' is not

0
[已解决问题] 解决于 2015-04-27 21:39

使用reflector反编译出现

The type 'BDHChina.EAI>BI.Model.BI_GISCabinNodeInfo' is not
loaded or may be hidden due to your visibility settings.

怎么解决?

博学多思的主页 博学多思 | 初学一级 | 园豆:76
提问于:2015-04-07 11:12
< >
分享
最佳答案
0

先看一下Reflector的设置:

 

如果是All Items,说明设置没问题。那建议用ILSPY试试,如果还是不行,就没办法了。

奖励园豆:5
dudu | 高人七级 |园豆:30778 | 2015-04-07 11:30
public static System.Collections.Generic.List<BI_GISCabinNodeInfo> GetBI_GISCabinAllList()
    {
        System.Collections.Generic.List<BI_GISCabinNodeInfo> list;
        if (HttpContext.Current.Cache["BI_GISCabinNode"] == null)
        {
            list = new BI_GISCabinNodeBLL().GetModelAllList();
            if (list != null)
            {
                AggregateCacheDependency dependency = new BI_GISCabin_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("BI_GISCabinNode", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
            }
        }
        else
        {
            list = (System.Collections.Generic.List<BI_GISCabinNodeInfo>)HttpContext.Current.Cache["BI_GISCabinNode"];
        }
        return list;
    }

请问我怎么进到BI_GISCabinNodeInfo里?这是反编译后的代码

我用的ILSPY

博学多思 | 园豆:76 (初学一级) | 2015-04-07 11:47

双击BI_GISCabinNodeInfo进不去,右键分析也没有效果

博学多思 | 园豆:76 (初学一级) | 2015-04-07 11:49

@博学多思: 用ILSPY打开BI_GISCabinNodeInfo的dll文件。

dudu | 园豆:30778 (高人七级) | 2015-04-07 11:55

@dudu: 我没找到BI_GISCabinNodeInfo的dll文件,我是在vs团队项目上获取的,

博学多思 | 园豆:76 (初学一级) | 2015-04-07 12:18

@博学多思: 在VS中F12就能知道在哪个dll中

dudu | 园豆:30778 (高人七级) | 2015-04-07 12:26

@dudu: 我已经反编译一遍了,出现上面的代码,

 

我直接f12,出现

#region 程序集 BDHChina.EAI.Common.dll, v1.0.0.0
// E:\新建文件夹\BDHChina.EAI.TrafficPlan\BDHChina.EAI\BDHChinaEAI\Bin\BDHChina.EAI.Common.dll
#endregion

using System;
using System.Collections.Generic;
using YYSSOFT.Lib2008.Systems.Security;

public class CacheManage
{
    protected const string APPLICATIONCONFIG_CACHE_DURATION = "24";
    protected const string APPLICATIONCONFIG_CACHE_KEY = "SDMS_PlatConfigPara";
    protected const string BI_GISCABINNODE_CACHE_DURATION = "24";
    protected const string BI_GISCABINNODE_CACHE_KEY = "BI_GISCabinNode";
    protected const string BI_GISNODE_LINE_CACHE_KEY = "BI_GISNode_Line";
    protected const string CMDS_DICTIONARY_CACHE_DURATION = "24";
    protected const string CMDS_DICTIONARY_CACHE_KEY = "CMDS_Dictionary";
    public const string CURRENTMODELlID_CACHE_KEY = "CurrentModelID";
    protected const string FUNCTION_RULE_CACHE_DURATION = "1";
    protected const string FUNCTION_RULE_CACHE_KEY = "SDMS_Function_Rule";
    protected const string MODEL_RULE_CACHE_DURATION = "1";
    protected const string MODEL_RULE_CACHE_KEY = "SDMS_Model_Rule";
    protected const string PRINCIPAL_CACHE_DURATION = "10";
    protected const string PRINCIPAL_CACHE_KEY = "principal";
    protected const string SDMS_ORGANISEUNITINFO_CACHE_DURATION = "24";
    protected const string SDMS_ORGANISEUNITINFO_CACHE_KEY = "SDMS_OrganiseUnit";

    public CacheManage();

    public static void BuildApplicationConfiguration();
    public static void BuildCMDS_Dictionary();
    public static CommonPrincipal BuildCommonPrincipal(string UserId);
    public static List<BDHChina.EAI.BI.Model.BI_GISCabinNodeInfo> GetBI_GISCabinAllList();
    public static List<BDHChina.EAI.BI.Model.BI_GISCabinNodeInfo> GetBI_GISNode_LineAllList();
    public static List<global::BDHChina.EAI.SysManage.Model.SDMS_RuleInfo> GetFunction_RuleAllList();
    public static List<global::BDHChina.EAI.SysManage.Model.SDMS_ModelInfo> GetModel_RuleAllList();
    public static List<global::BDHChina.EAI.SysManage.Model.SDMS_OrganiseUnitInfo> GetSDMS_OrganiseUnitInfoAllList();
}

 

 public static List<BDHChina.EAI.BI.Model.BI_GISCabinNodeInfo> GetBI_GISCabinAllList();

我在BDHChina.EAI.BI.Model.BI_GISCabinNodeInfo上按f12,无法导航到。。。

我在BDHChina.EAI下没发现BI.Model.BI_GISCabinNodeInfo

 

 

这是编译后的:

using BDHChina.EAI.BI.BLL;
using BDHChina.EAI.BI.Model;
using BDHChina.EAI.CMDSManage.BLL;
using BDHChina.EAI.SysManage.BLL;
using BDHChina.EAI.SysManage.Model;
using BDHChina.EAI.TableCacheDependency;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Web;
using System.Web.Caching;
using YYSSOFT.Lib2008.Systems.Config;
using YYSSOFT.Lib2008.Systems.Data;
using YYSSOFT.Lib2008.Systems.Model;
using YYSSOFT.Lib2008.Systems.Security;
public class CacheManage
{
    protected const string APPLICATIONCONFIG_CACHE_KEY = "SDMS_PlatConfigPara";
    protected const string APPLICATIONCONFIG_CACHE_DURATION = "24";
    protected const string CMDS_DICTIONARY_CACHE_KEY = "CMDS_Dictionary";
    protected const string CMDS_DICTIONARY_CACHE_DURATION = "24";
    protected const string MODEL_RULE_CACHE_KEY = "SDMS_Model_Rule";
    protected const string MODEL_RULE_CACHE_DURATION = "1";
    protected const string FUNCTION_RULE_CACHE_KEY = "SDMS_Function_Rule";
    protected const string FUNCTION_RULE_CACHE_DURATION = "1";
    protected const string PRINCIPAL_CACHE_KEY = "principal";
    public const string CURRENTMODELlID_CACHE_KEY = "CurrentModelID";
    protected const string PRINCIPAL_CACHE_DURATION = "10";
    protected const string BI_GISCABINNODE_CACHE_KEY = "BI_GISCabinNode";
    protected const string BI_GISNODE_LINE_CACHE_KEY = "BI_GISNode_Line";
    protected const string BI_GISCABINNODE_CACHE_DURATION = "24";
    protected const string SDMS_ORGANISEUNITINFO_CACHE_KEY = "SDMS_OrganiseUnit";
    protected const string SDMS_ORGANISEUNITINFO_CACHE_DURATION = "24";
    public static void BuildApplicationConfiguration()
    {
        if (HttpContext.Current.Cache["SDMS_PlatConfigPara"] == null)
        {
            SDMS_PlatConfigParaInfo model = new SDMS_PlatConfigParaBLL().GetModel(ConfigurationSettings.AppSettings["ApplicationID"]);
            if (model != null)
            {
                AggregateCacheDependency dependency = new SDMS_PlatConfigPara_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("SDMS_PlatConfigPara", model, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
                ApplicationConfiguration.IniApplicationConfiguration(model);
            }
        }
    }
    public static void BuildCMDS_Dictionary()
    {
        if (HttpContext.Current.Cache["CMDS_Dictionary"] == null)
        {
            System.Collections.Generic.List<DictionaryItemModel>[] modelAllDictAndAllDictItem = new CMDS_DictionaryItemBLL().GetModelAllDictAndAllDictItem();
            if (modelAllDictAndAllDictItem != null)
            {
                AggregateCacheDependency dependency = new CMDS_Dictionary_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("CMDS_Dictionary", modelAllDictAndAllDictItem, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
                GlobalCode.IniCommonDictionary(modelAllDictAndAllDictItem);
            }
        }
    }
    public static System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_ModelInfo> GetModel_RuleAllList()
    {
        System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_ModelInfo> list = null;
        if (HttpContext.Current.Cache["SDMS_Model_Rule"] == null)
        {
            list = new SDMS_ModelBLL().GetModel_RuleAllList();
            if (list != null)
            {
                AggregateCacheDependency dependency = new Model_Rule_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("SDMS_Model_Rule", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("1")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
                CommonModel_Rule.Model_ruleList = new System.Collections.Generic.List<YYSSOFT.Lib2008.Systems.Model.SDMS_ModelInfo>();
                foreach (BDHChina.EAI.SysManage.Model.SDMS_ModelInfo current in list)
                {
                    YYSSOFT.Lib2008.Systems.Model.SDMS_ModelInfo sDMS_ModelInfo = new YYSSOFT.Lib2008.Systems.Model.SDMS_ModelInfo();
                    sDMS_ModelInfo.ModelID = current.ModelID;
                    sDMS_ModelInfo.ShortName = current.ShortName;
                    sDMS_ModelInfo.FirstModelID = current.FirstModelID;
                    sDMS_ModelInfo.TargetURL = current.TargetURL;
                    sDMS_ModelInfo.AssociateTargetURL = current.AssociateTargetURL;
                    sDMS_ModelInfo.RuleValue = current.RuleValue;
                    sDMS_ModelInfo.RuleValueSection = current.RuleValueSection;
                    CommonModel_Rule.Model_ruleList.Add(sDMS_ModelInfo);
                }
            }
        }
        else
        {
            list = (System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_ModelInfo>)HttpContext.Current.Cache["SDMS_Model_Rule"];
        }
        return list;
    }
    public static System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_RuleInfo> GetFunction_RuleAllList()
    {
        System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_RuleInfo> list = null;
        if (HttpContext.Current.Cache["SDMS_Function_Rule"] == null)
        {
            QueryBuilder queryBuilder = new QueryBuilder();
            queryBuilder.AddFilter("SDMS_Rule", "RuleType", "=", 2);
            list = new SDMS_RuleBLL().GetModelList(queryBuilder);
            if (list != null)
            {
                AggregateCacheDependency dependency = new Function_Rule_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("SDMS_Function_Rule", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("1")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
                CommonModel_Rule.Function_ruleList = new System.Collections.Generic.List<YYSSOFT.Lib2008.Systems.Model.SDMS_RuleInfo>();
                foreach (BDHChina.EAI.SysManage.Model.SDMS_RuleInfo current in list)
                {
                    YYSSOFT.Lib2008.Systems.Model.SDMS_RuleInfo sDMS_RuleInfo = new YYSSOFT.Lib2008.Systems.Model.SDMS_RuleInfo();
                    sDMS_RuleInfo.RuleID = current.RuleID;
                    sDMS_RuleInfo.ModelID = current.ModelID;
                    sDMS_RuleInfo.ControlIDs = current.ControlIDs;
                    sDMS_RuleInfo.FirstModelID = current.FirstModelID;
                    sDMS_RuleInfo.RuleValue = current.RuleValue;
                    sDMS_RuleInfo.RuleValueSection = current.RuleValueSection;
                    CommonModel_Rule.Function_ruleList.Add(sDMS_RuleInfo);
                }
            }
        }
        else
        {
            list = (System.Collections.Generic.List<BDHChina.EAI.SysManage.Model.SDMS_RuleInfo>)HttpContext.Current.Cache["SDMS_Function_Rule"];
        }
        return list;
    }
    public static CommonPrincipal BuildCommonPrincipal(string UserId)
    {
        string key = UserId + "_principal";
        string key2 = UserId + "_CurrentModelID";
        CommonPrincipal commonPrincipal;
        if (HttpContext.Current.Cache[key] == null)
        {
            commonPrincipal = new SDMS_UserBLL().GetUserCommonPrincipal(UserId);
            if (commonPrincipal != null)
            {
                AggregateCacheDependency dependency = new UserPrincipal_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add(key, commonPrincipal, dependency, Cache.NoAbsoluteExpiration, System.TimeSpan.FromMinutes((double)int.Parse("10")), CacheItemPriority.High, null);
                if (HttpContext.Current.Cache[key2] != null)
                {
                    HttpContext.Current.Cache.Remove(key2);
                }
            }
        }
        else
        {
            commonPrincipal = (CommonPrincipal)HttpContext.Current.Cache[key];
        }
        return commonPrincipal;
    }
    public static System.Collections.Generic.List<BI_GISCabinNodeInfo> GetBI_GISCabinAllList()
    {
        System.Collections.Generic.List<BI_GISCabinNodeInfo> list;
        if (HttpContext.Current.Cache["BI_GISCabinNode"] == null)
        {
            list = new BI_GISCabinNodeBLL().GetModelAllList();
            if (list != null)
            {
                AggregateCacheDependency dependency = new BI_GISCabin_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("BI_GISCabinNode", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
            }
        }
        else
        {
            list = (System.Collections.Generic.List<BI_GISCabinNodeInfo>)HttpContext.Current.Cache["BI_GISCabinNode"];
        }
        return list;
    }
    public static System.Collections.Generic.List<BI_GISCabinNodeInfo> GetBI_GISNode_LineAllList()
    {
        System.Collections.Generic.List<BI_GISCabinNodeInfo> list;
        if (HttpContext.Current.Cache["BI_GISNode_Line"] == null)
        {
            list = new BI_GISNode_LineBLL().GetModelAllList();
            if (list != null)
            {
                AggregateCacheDependency dependency = new BI_GISNode_Line_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("BI_GISNode_Line", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
            }
        }
        else
        {
            list = (System.Collections.Generic.List<BI_GISCabinNodeInfo>)HttpContext.Current.Cache["BI_GISNode_Line"];
        }
        return list;
    }
    public static System.Collections.Generic.List<SDMS_OrganiseUnitInfo> GetSDMS_OrganiseUnitInfoAllList()
    {
        System.Collections.Generic.List<SDMS_OrganiseUnitInfo> list;
        if (HttpContext.Current.Cache["SDMS_OrganiseUnit"] == null)
        {
            list = new SDMS_OrganiseUnitBLL().GetModelAllList();
            if (list != null)
            {
                AggregateCacheDependency dependency = new SDMS_OrganiseUnit_TableDependency().GetDependency();
                HttpContext.Current.Cache.Add("SDMS_OrganiseUnit", list, dependency, System.DateTime.Now.AddHours((double)int.Parse("24")), Cache.NoSlidingExpiration, CacheItemPriority.High, null);
            }
        }
        else
        {
            list = (System.Collections.Generic.List<SDMS_OrganiseUnitInfo>)HttpContext.Current.Cache["SDMS_OrganiseUnit"];
        }
        return list;
    }
}

 

博学多思 | 园豆:76 (初学一级) | 2015-04-07 12:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册