如何部署DevExpress到服务器?
您好,我需要使用 DevExpress 控件将项目部署到 IIS 6.0 服务器。该项目加载良好,直到我添加 DevExpress 控件。尝试加载网站时出现错误
无法加载文件或程序集 'DevExpress.Web.v9.3,版本=9.3.4.0, 文化=中立, PublicKeyToken=b88d1754d700e49a' 或 它的依赖项之一。系统 找不到指定的文件
我做错了什么?我尝试在服务器上安装控件,并将所有程序集 dll 复制到应用程序的 bin/ 文件夹中,但我无法消除此错误。我怎样才能让它发挥作用?
Hello I am needing to deploy a project using DevExpress controls to an IIS 6.0 server. The project loads fine and until I add in the DevExpress controls. When trying to load the site I get the error
Could not load file or assembly
'DevExpress.Web.v9.3, Version=9.3.4.0,
Culture=neutral,
PublicKeyToken=b88d1754d700e49a' or
one of its dependencies. The system
cannot find the file specified
What am I doing wrong? I've tried installing the controls on the server and also just copying all of the assembly dlls to the bin/ folder of the application but I can not get this error to go away. How do I get it to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我最终进入 Visual Studio,然后选择所有 DevExpress 引用并将“copy local”设置为 true。
I ended up going into Visual Studio and then selecting all of the DevExpress references and setting "copy local" to true.
具体错误意味着它正在寻找版本 9.3 的 DevExpress.Web 程序集。
对于服务器部署,您只需要运行时 dll。部署主题下的帮助文件中提供了必要的 dll 列表:
来自 search.DevExpress.com 的“部署”结果
Brendon Muck 的免费“DX Server Installer”工具也非常方便(正如 @JHappoldt 提到的)
最后一点,请注意,您不需要将设计时 dll 复制到您的 Web 服务器。这些文件仅适用于 Visual Studio。此外,分发这些内容也违反了 [EULA]。找出设计时 dll 的一种简单方法是它们通常以“.Design”结尾,
例如:“DevExpress.XtraReports.v9.3.Design”(不应部署此文件)
The specific error means that it is looking for version 9.3 of DevExpress.Web assembly.
For server deployment, you only need the runtime dlls. A list of the necessary dlls are in the help file under the deployment topic:
'deployment' results from search.DevExpress.com
Brendon Muck's free 'DX Server Installer' tool is also very handy (as mentioned by @JHappoldt)
One last note, please be aware that you do not need to copy the design time dlls to your web server. These files are only meant to be used in Visual Studio. Also, it against the [EULA] to distribute these. One simple way to figure out the design time dlls is that they usually end with '.Design'
For example: 'DevExpress.XtraReports.v9.3.Design' (This should not be deployed)
在网络发布(AKA WPP)中,您可以使用我的 NuGet 包。只需将其安装到 Web 项目中即可(还支持
网站和Azure)。并且您无需将“复制本地”设置为true
。Within a Web Publish (AKA WPP) you can use my NuGet package. Just install it into the web project (
Web Sites andAzure is also supported). And you don't need to set 'Copy Local' totrue
.没有官方工具可以在服务器上进行精简安装,但是社区成员写了一个非常有用的工具。
There is no official tool to do a thin install on a server, however a community member wrote a very useful tool.