如何在不将 Cassini Web 托管框架添加到 GAC 的情况下使其正常工作?

发布于 2024-07-26 15:22:27 字数 330 浏览 2 评论 0原文

我正在尝试使用 Cassini (来自 http://www.asp.net/Downloads/archived /cassini/)来托管我的旧式 ASP.NET Web 服务进程内,最好是 WCF 风格。 但是,当我运行它时,出现找不到 Cassini.dll 的异常。 附带的 Readme.txt 表示将其添加到 GAC,但使用进程内托管的全部目的是避免在全局位置安装内容。 有什么想法可以在没有 GAC 的情况下使其发挥作用吗? 或者也许还有其他选择?

I am trying to use Cassini (from http://www.asp.net/Downloads/archived/cassini/) to host my old style asp.net web service in-process, ideally in a WCF style. However, when I run it, I get an exception that the Cassini.dll could not be found. The Readme.txt that comes with it says to add it to the GAC, but the whole point of using an inprocess hosting is to avoid installing stuff in global places. Any ideas how to make it work without the GAC? Or maybe some other alternatives?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

枕梦 2024-08-02 15:22:27

从 GAC 中提取 WebDev.WebHost DLL。 除了 .NET Framework 本身之外,它没有其他依赖项。 然后,您可以在本地引用它,并从中实例化一个 Server 对象,该对象具有 Start() 和 - 万岁 - 一个 Stop() 方法。

我通常在命令提示符下浏览到 GAC 文件夹并将文件复制出来,但如果你用 Google 搜索,你会发现其他方法。

Extract the WebDev.WebHost DLL from your GAC. It has no other dependecies apart from the .NET Framework itself. You can then reference it locally, and instantiate a Server object from it which has a Start() and - hooray - a Stop() method.

I normally browse to the GAC folders at a command prompt and copy files out, but if you Google you'll find other approaches.

纵情客 2024-08-02 15:22:27

也找到了使用 Cassini 的方法:我必须将 Cassini.DLL 放在 Web 应用程序的应用程序根目录下的 Bin 目录中。

来源:http://forums.asp.net/p/869425/869846.aspx< /a>

Found the way to use the Cassini as well: I had to put Cassini.DLL in the Bin directory under the application root for the your web application.

Source: http://forums.asp.net/p/869425/869846.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文