找不到文件或程序集名称“[random].dll”,或找不到它的一个依赖项
访问数据访问页面,出现错误:
调试信息: 异常类型:System.IO.FileNotFoundException
异常信息:找不到文件或程序集名称“k9iqdxdk.dll”,或找不到它的一个依赖项。
出错堆栈: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManagerSectionHandler.Create(Object parent, Object configContext, XmlNode section)
at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.EvaluateRecursive(IConfigurationSectionHandler sectionHandler, Object config, String[] keys, Int32 keyIndex, XmlTextReader reader)
at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.Evaluate(String configKey)
at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.ResolveConfig(String configKey)
at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.GetConfig(String configKey)
每次出错的程序集名称都有可能不一样,说明是临时文件夹那里的问题,更改c:\windows\temp的共享和安全,添加Asp.net/Network Service访问权限,或者是everyone的权限。