C# JIT编译器遇到内部限制

C# JIT编译器遇到内部限制,c#,C#,当我运行测试用例时,我遇到了以下错误:当我运行这一行时,JIT编译器遇到了一个内部限制 actual=StoreHealth\u访问器。lookuprulemanager和filterrawdata(rawdt,dtRuleManagerTable,ref listobj,distinctredc,idevicegroupcount,storeID)我收到错误,那么如何解决它?任何想法 public void lookupRuleManagerandFilterRawdataTest4()

当我运行测试用例时,我遇到了以下错误:当我运行这一行时,JIT编译器遇到了一个内部限制
actual=StoreHealth\u访问器。lookuprulemanager和filterrawdata(rawdt,dtRuleManagerTable,ref listobj,distinctredc,idevicegroupcount,storeID)我收到错误,那么如何解决它?任何想法

public void lookupRuleManagerandFilterRawdataTest4()
    {

        DataTable rawdt = new DataTable(); // TODO: Initialize to an appropriate value
        rawdt.Columns.Add("AssetTag", typeof(string));
        rawdt.Columns.Add("Service_ID", typeof(string));
        rawdt.Columns.Add("ModelName", typeof(string));
        rawdt.Columns.Add("Store_ID", typeof(string));
        rawdt.Columns.Add("Last_Time_State_Change", typeof(DateTime));
        rawdt.Columns.Add("Severity", typeof(int));
        rawdt.Columns.Add("Message_Text", typeof(string));
        rawdt.Columns.Add("Retailer_ID", typeof(string));
        rawdt.Columns.Add("Device_Group_Info", typeof(string));
        DataRow drTable1 = rawdt.NewRow();

        drTable1["AssetTag"] = "CPU-00000000000US1941K017";
        drTable1["Service_ID"] = "Citizen DS40 - Paper End / Out of Paper";
        drTable1["ModelName"] = "HP IS1700 Input Station";
        drTable1["Store_ID"] = "CIN00001";
        drTable1["Last_Time_State_Change"] = "7/20/2012 4:10:34 AM";
        drTable1["Severity"] = 128;
        drTable1["Retailer_ID"] = "CIN";
        drTable1["Device_Group_Info"] = "Input Station";
        drTable1["Message_Text"] = "Citizen DS40 - Paper End / Out of Paper";



        //DataTable dtRuleManagerTable = null; // TODO: Initialize to an appropriate value

        DataTable dtRuleManagerTable = new DataTable();
        dtRuleManagerTable.Columns.Add("RuleID", typeof(string));
        dtRuleManagerTable.Columns.Add("Drive_Store_Status", typeof(int));
        dtRuleManagerTable.Columns.Add("Service_ID", typeof(string));
        dtRuleManagerTable.Columns.Add("Device_Group_Name", typeof(string));
        dtRuleManagerTable.Columns.Add("AssetTag", typeof(string));
        dtRuleManagerTable.Columns.Add("Severity", typeof(int));
        dtRuleManagerTable.Columns.Add("ModelName", typeof(string));
        dtRuleManagerTable.Columns.Add("Store_ID", typeof(string));
        dtRuleManagerTable.Columns.Add("Last_Time_State_Change", typeof(DateTime));

        dtRuleManagerTable.Columns.Add("Message_Text", typeof(string));
        dtRuleManagerTable.Columns.Add("Retailer_ID", typeof(string));


        DataRow drTable = dtRuleManagerTable.NewRow();


        drTable["AssetTag"] = "CPU-00000000000US1941K017";
        drTable["Service_ID"] = "Citizen DS40 - Paper End / Out of Paper";
        drTable["ModelName"] = "HP IS1700 Input Station";
        drTable["Store_ID"] = "CIN00001";
        drTable["Last_Time_State_Change"] = "7/20/2012 4:10:34 AM";
        drTable["Severity"] = 128;
        drTable["Retailer_ID"] = "CIN";

        drTable["Message_Text"] = "Citizen DS40 - Paper End / Out of Paper";

        drTable["RuleID"] = "101A";
        drTable["Drive_Store_Status"] = 1;

        drTable["Device_Group_Name"] = "Input Station ";
        List<DeviceGroupCountDetailsforstore_Accessor> listobj = new List<DeviceGroupCountDetailsforstore_Accessor>(); // TODO: Initialize to an appropriate value
        DeviceGroupCountDetailsforstore_Accessor devgrpcountobj = new DeviceGroupCountDetailsforstore_Accessor();

         Hashtable severitynum = new Hashtable();
         Hashtable hsevry = new Hashtable();
        hsevry.Add("101A",1);
        devgrpcountobj.severitynum.Add("Input Station", hsevry);


        listobj.Add(devgrpcountobj);
        //devgrpcountobj.severitynum;
       // DeviceGroupCountDetailsforstore_Accessor.AttachShadow(listobj);
        //listobj.Add("input station");

        List<string> distinctredc = new List<string>{"Input Station","Routers"}; // TODO: Initialize to an appropriate value
        int idevicegroupcount = 2; // TODO: Initialize to an appropriate value
        string storeID = "CIN00001"; // TODO: Initialize to an appropriate value
        bool expected = true; // TODO: Initialize to an appropriate value
        bool actual;
        actual = StoreHealth_Accessor.lookupRuleManagerandFilterRawdata(rawdt, dtRuleManagerTable, ref listobj, distinctredc, idevicegroupcount, storeID);


        Assert.AreEqual(expected, actual);
        Assert.Inconclusive("Verify the correctness of this test method.");
    }
public void lookuprulemanager和filterrawdatatest4()
{
DataTable rawdt=new DataTable();//TODO:初始化为适当的值
添加(“AssetTag”,typeof(string));
添加(“服务ID”,类型(字符串));
添加(“ModelName”,typeof(string));
添加(“Store_ID”,typeof(string));
添加(“上次时间状态变化”,类型(日期时间));
添加(“严重性”,类型(int));
添加(“消息文本”,类型(字符串));
添加(“零售商标识”,类型(字符串));
添加(“设备组信息”,类型(字符串));
DataRow drTable1=rawdt.NewRow();
drTable1[“资产负债表”]=“CPU-00000000000US1941K017”;
drTable1[“服务ID”]=“公民DS40-纸张结束/纸张用完”;
drTable1[“ModelName”]=“HP IS1700输入站”;
drTable1[“门店ID”]=“CIN00001”;
drTable1[“最后一次状态变化”]=“2012年7月20日上午4:10:34”;
表1[“严重程度”]=128;
drTable1[“零售商ID”]=“CIN”;
drTable1[“设备组信息”]=“输入站”;
drTable1[“消息文本”]=“公民DS40-纸张结束/纸张用完”;
//DataTable dtRuleManagerTable=null;//TODO:初始化为适当的值
DataTable dtRuleManagerTable=新DataTable();
添加(“RuleID”,typeof(string));
添加(“驱动器存储状态”,类型为(int));
dtRuleManagerTable.Columns.Add(“服务ID”,typeof(string));
添加(“设备组名称”,类型(字符串));
添加(“AssetTag”,typeof(string));
添加(“严重性”,typeof(int));
添加(“ModelName”,typeof(string));
添加(“Store_ID”,typeof(string));
dtRuleManagerTable.Columns.Add(“上次时间状态变化”),typeof(DateTime));
添加(“Message_Text”,typeof(string));
添加(“零售商标识”,类型(字符串));
DataRow drTable=dtRuleManagerTable.NewRow();
drTable[“AssetTag”]=“CPU-00000000000US1941K017”;
drTable[“服务ID”]=“公民DS40-纸张结束/纸张用完”;
drTable[“ModelName”]=“HP IS1700输入站”;
drTable[“商店ID”]=“CIN00001”;
drTable[“上次状态变化”]=“2012年7月20日上午4:10:34”;
drTable[“严重性”]=128;
drTable[“零售商ID”]=“CIN”;
drTable[“消息文本”]=“公民DS40-纸张结束/纸张用完”;
drTable[“规则ID”]=“101A”;
drTable[“驱动器存储状态”]=1;
drTable[“设备组名称”]=“输入站”;
List listobj=new List();//TODO:初始化为适当的值
DeviceGroupCountDetailsforstore_访问器devgrpcountobj=新的DeviceGroupCountDetailsforstore_访问器();
Hashtable severitynum=新的Hashtable();
Hashtable hsevry=新的Hashtable();
hsevry.添加(“101A”,1);
devgrpcountobj.severitynum.Add(“输入站”,hsevry);
添加(devgrpcountobj);
//devgrpcountobj.severitynum;
//存储访问器的DeviceGroupCounts详细信息。附件阴影(listobj);
//列表对象添加(“输入站”);
List distinctredc=新列表{“输入站”、“路由器”};//TODO:初始化为适当的值
int-idevicegroupcount=2;//TODO:初始化为适当的值
字符串storeID=“CIN00001”//TODO:初始化为适当的值
bool expected=true;//TODO:初始化为适当的值
布尔实际值;
实际值=StoreHealth\u访问器。lookupRuleManagerandFilterRawdata(rawdt、dtRuleManagerTable、ref listobj、distinctredc、idevicegroupcount、storeID);
断言.AreEqual(预期、实际);
断言。非决定性(“验证本试验方法的正确性”);
}

什么是
StoreHealth\u访问器。LookupRuleManager和FilterraWDATA
?这种类型的错误通常与IL级编程相关,可能通过IoC/DI工具或ORM。那么:你在这里使用什么工具?失败的方法失败的原因是什么?请尝试在程序集上运行PEVerify它可能有助于为您指明正确的方向它是用于访问类的方法的对象这是在执行MS测试时引发的错误。那么如何解决这个问题呢