Sql Server - 缺少 pfclnt.dll?
尝试在应用程序中初始化 SMO 对象时,出现以下错误:
Microsoft.SqlServer.Management.Trace.SqlTraceException:无法将对象初始化为读取器。 ---> System.IO.FileNotFoundException:无法加载文件或程序集“file:///c:\Program Files\Microsoft SQL Server\100\Tools\Binn\pfclnt.dll”或其依赖项之一。系统找不到指定的文件。
该位置确实缺少该文件。
有什么想法为什么以及我可以去哪里获得它吗?
我正在运行: 数据库服务器2005 管理工作室 9.00.4035.00 WinServer 2003 SP2
I'm getting the following error when trying to initialise the SMO objects in my application:
Microsoft.SqlServer.Management.Trace.SqlTraceException: Failed to initialize object as reader. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///c:\Program Files\Microsoft SQL Server\100\Tools\Binn\pfclnt.dll' or one of its dependencies. The system cannot find the file specified.
This file is indeed missing from that location.
Any ideas why and where I can go about getting it?
I'm running:
SqlServer 2005
ManagementStudio 9.00.4035.00
WinServer 2003 SP2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,通过切换到 x86(从 AnyCPU)解决了这个问题。该程序集似乎仅在 32 位模式下可用。
下一个问题是“混合模式程序集是针对运行时版本‘v2.0.50727’构建的,如果没有附加配置信息,则无法在 4.0 运行时中加载。”
通过在我的 app.config 中添加
useLegacyV2RuntimeActivationPolicy
属性解决了这个问题。我已经有了supportedRuntime节点,并且不能说该解决方案是否需要工作。I experienced the same problem which was solved by switching over to x86 (from AnyCPU). It seems that the assembly is only available in 32 bit mode.
Next problem was "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."
This was solved by adding the
useLegacyV2RuntimeActivationPolicy
attribute in my app.config. I already hade the supportedRuntime node, and can't say if it's necessary for the solution to work.您可以尝试重新安装 SQL Server Management Studio 或更新到最新的服务包来解决此类问题。
如果它不起作用,您还可以升级到 SQL Server Management Studio 2008,因为它向后兼容 SQL Server 2005。
SQL Server 2005 SP4
SQL Server Management Studio 2008 Express(也适用于标准版和企业版)
You could try to reinstall SQL Server Management Studio or update to the latest service pack to fix this kind of issue.
If it is not working, you could also upgrade to SQL Server Management Studio 2008 since it is backward compatible with SQL Server 2005.
SQL Server 2005 SP4
SQL Server Management Studio 2008 Express (also works with Standard and Enterprise editions)