2023年11月27日发(作者:)

1************** 异常文本 **************

urationErrorsException: 创建

userSettings/gs 的配置节处理程序时出错:

能加载文件或程序集“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某

一个依赖项。系统找不到指定的文件。

(C:UsershpAppDataLocalMicrosoft__StrongName_ryspccglaxmt4nhllj5z3thyclt

line 5) ---> tFoundException: 未能加载文件或程序集“System,

Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定

的文件。

文件名:“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”

eWithReflectionPermission(IInternalConfigHost host, String

typeString, Boolean throwOnError)

(RuntimeConfigurationRec

ord configRecord, FactoryRecord factoryRecord)

thRestrictedPermissions(

RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)

(RuntimeConfigurationRe

cord configRecord, FactoryRecord factoryRecord)

SectionFactory(FactoryRecord factoryRecord)

dEnsureFactoryRecord(String configKey,

Boolean& isRootDeclaredHere)

警告: 程序集绑定日志记录被关闭。

要启用程序集绑定失败日志记录,请将注册表值 [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD)

设置为 1

注意: 会有一些与程序集绑定失败日志记录关联的性能损失。

要关闭此功能,请移除注册表值 [HKLMSoftwareMicrosoftFusion!EnableLog]

解决:注册表中未找到要修改的内容,根据以下路径找到文件并删除就可以

C:UsersusernameAppDataLocalMicrosoft__StrongName_ryspccglaxmt4n

2、安装SQL2008时遇到"未能加载文件或"file:///d:microsoft.."或它的某个依赖项,

如下图所示

原因:SQL2008的安装路径过长。

解决:把SQL2008放到D盘或者E盘的根目录下再安装。