在我的项目的 GAC 中正常部署程序集?

发布于 2024-07-29 19:16:30 字数 332 浏览 0 评论 0原文

我构建了一个使用 J# 库的 Web 应用程序,该应用程序在我的 cpu 中运行良好,但是当我将其部署到共享服务器时。 我收到一条错误消息:解析器错误消息:无法加载文件或程序集“vjslib,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。 该系统找不到指定的文件。

所以基本上,服务器没有安装 Visual j#。 问题是他们不会安装它,因为它是共享服务器。

有没有办法可以在我的项目中部署 J# 程序集,以便它可以在共享服务器上工作,而无需在 GAC 中注册?

感谢您的帮助!!

I built a web application that uses the J# libraries which works fine in my cpu, however, when I deploy it to my shared server. I get an error message: Parser Error Message: Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

So basically, the server doesn't have visual j# installed. The problem is they wont install it because it is a shared server.

Is there a way I can deploy the J# assemblies with my project so that it will work on the shared server without it being registered in the GAC?

Thanks for your help!!

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

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

发布评论

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

评论(2

逆流 2024-08-05 19:16:30

最简单的解决方案:尝试将应用程序所需的程序集复制到应用程序所在的同一文件夹中。

以下 MSDN 文章介绍了运行时如何定位程序集

此外,当运行时在 GAC 中找不到程序集时,您可以在以下链接中找到更多选项(包括将所有 J# 相关 dll 复制到应用程序文件夹的子文件夹中): microsoft.com/en-us/library/15hyw9x3.aspx" rel="nofollow noreferrer">通过代码库或探测定位程序集

Simplest solution: Try to copy the assemblies your application needs into the same folder where your application resides.

The following MSDN article explains How the Runtime Locates Assemblies.

Also, you may find more options (including copying all J# related dlls into a subfolder of the application folder if needed) in the following link when the runtime cannot find the assembly in the GAC: Locating the Assembly through Codebases or Probing

水中月 2024-08-05 19:16:30

在不了解 J# 的情况下,我只能建议您尝试将所需的库与您的程序一起分发(将它们放在同一目录中),我相信如果它在 GAC 中找不到该库,它将恢复在当前目录。

Without knowing anything about J# I can only suggest that you try just distributing the required libraries along with your program (place them in the same directory), I believe if it can't find the library in the GAC it will revert to look in the current directory.

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