c# - 'System.Data.SqlClient.SqlConnection' threw an exception Windows 7 -
a bunch of our new users got brand new windows 7 pc's , i'm not sure why i'm getting below error when application starts. run app admin , still exception thrown. thanks! appreciated! users administrators of own pc.
the type initializer 'system.data.sqlclient.sqlconnection' threw exception. system.typeinitializationexception: type initializer 'system.data.sqlclient.sqlconnectionfactory' threw exception. ---> system.typeinitializationexception: type initializer 'system.data.sqlclient.sqlperformancecounters' threw exception. ---> system.io.fileloadexception: not load file or assembly 'file:///c:\users\\omain\appdata\local\apps\2.0\7lmdr8e0.x2t\60x0dgvm.vvw\asce..tion_6bf0e6a67bb42923_0001.0000_1a6b34a6368d30ed\creation.exe' or 1 of dependencies. access denied. @ system.reflection.runtimeassembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.nload(assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark& stackmark, boolean throwonfilenotfound, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.internalloadassemblyname(assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection, boolean suppresssecuritychecks) @ system.reflection.runtimeassembly.internalloadfrom(string assemblyfile, evidence securityevidence, byte[] hashvalue, assemblyhashalgorithm hashalgorithm, boolean forintrospection, boolean suppresssecuritychecks, stackcrawlmark& stackmark) @ system.reflection.assembly.loadfrom(string assemblyfile) @ system.runtime.hosting.manifestrunner.get_entryassembly() @ system.appdomainmanager.get_entryassembly() @ system.reflection.assembly.getentryassembly() @ system.data.providerbase.dbconnectionpoolcounters.getassemblyname() @ system.data.providerbase.dbconnectionpoolcounters.getinstancename() @ system.data.providerbase.dbconnectionpoolcounters..ctor(string categoryname, string categoryhelp) @ system.data.sqlclient.sqlperformancecounters..ctor() @ system.data.sqlclient.sqlperformancecounters..cctor() --- end of inner exception stack trace --- @ system.data.sqlclient.sqlconnectionfactory..cctor() --- end of inner exception stack trace --- @ system.data.sqlclient.sqlconnection..cctor()
find file mentioned in exception "creation.exe" , run dependency walker on it. may show missing assembly or dll not on new machines.
Comments
Post a Comment