zoukankan      html  css  js  c++  java
  • 奇怪的 Object reference not set to an instance of an object

    今天一同事在给客户的机器上安装系统的时候,出现了 Object reference not set to an instance of an object, 但从调用的堆椎上看,是从 .net framework 中抛出的异常:

    [NullReferenceException: Object reference not set to an instance of an object.]
       LoadLibraryW(UInt16* ) +0
       System.EnterpriseServices.Thunk.Security.Init() +76
       System.EnterpriseServices.Thunk.Security.SuspendImpersonation() +81
       System.EnterpriseServices.Platform.Initialize() +503
       System.EnterpriseServices.ResourcePool..ctor(TransactionEndDelegate cb) +11
       System.Data.SqlClient.ConnectionPool..ctor(DefaultPoolControl ctrl) +797
       System.Data.SqlClient.PoolManager.FindOrCreatePool(DefaultPoolControl ctrl) +170
       System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +358
       System.Data.SqlClient.SqlConnection.Open() +384


    LoadLibrary 函数中引发的异常, 这应该是不能加载 SQL SERVER 的 DLL。
    但 SQL SERVER 使用很正常,害得这同事找了一个下午。

    最后发现在是卡巴司机杀毒软件的问题,关掉就好了。

    网上找了一下资料,很少人遇到这种情况:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1488072&SiteID=1
    http://bbs.et8.net/bbs/showthread.php?t=851817

  • 相关阅读:
    通过 INotifyPropertyChanged 实现观察者模式(转)
    Asp.net MVC中的ViewData与ViewBag(转)
    FireFox地址栏百度搜索
    ZigBee设备类型
    Array.prototype.slice.call(arguments) (转)
    泛型方法扩展
    定义IE的文档兼容模式
    C# Lazy<T>(转)
    AutoCAD2010/2012去掉搜索框
    python 集合类型
  • 原文地址:https://www.cnblogs.com/kuku/p/1182256.html
Copyright © 2011-2022 走看看