Asp.net 无法创建抽象类或接口的实例';Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryManager';

Asp.net 无法创建抽象类或接口的实例';Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryManager';,asp.net,sql,azure,Asp.net,Sql,Azure,我只是尝试在azure中重试暂时失败的逻辑。这是我的代码,我收到了这个错误 Cannot create an instance of the abstract class or interface 'Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryManager' 帮我把这个调宽 const string defaultRetryStrategyName = "fixe

我只是尝试在azure中重试暂时失败的逻辑。这是我的代码,我收到了这个错误

Cannot create an instance of the abstract class or interface 'Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.RetryManager'
帮我把这个调宽

        const string defaultRetryStrategyName = "fixed";
        const int retryCount = 10;
        var retryIntervel = TimeSpan.FromSeconds(3);
        var strategy = new FixedInterval(defaultRetryStrategyName, retryCount, retryIntervel);
        var strategies = new List<RetryStrategy> { strategy };
        var manager = new RetryManager(strategies, defaultRetryStrategyName);
        RetryManager.SetDefault(manager);
常量字符串defaultRetryStrategyName=“固定”; 常数int retryCount=10; var retryIntervel=从秒开始的时间跨度(3); var strategy=new FixedInterval(defaultRetryStrategyName、retryCount、RetryInterLevel); var strategies=新列表{strategy}; var manager=新的RetryManager(策略,defaultRetryStrategyName); RetryManager.SetDefault(manager);
没错,你不能“无法创建抽象类或接口的实例”,我知道,但有没有其他方法可以实现这一点?@Vivekh-删除对旧库的引用并添加对企业库6的引用。我建议您先阅读以下内容:。