flickr 的自定义控件不适用于生产服务器,但适用于开发服务器

发布于 2024-10-05 12:23:33 字数 142 浏览 2 评论 0原文

我们开发了一个名为 donmueang.com 的网站;该站点包含两个名为 Youtube 控件和 flickr 控件的自定义控件。我们的问题是这两个自定义控件在开发服务器上运行良好,但只有 flickr 控件在生产服务器上不起作用。

实际的问题是什么?

We developed a site named donmueang.com; this site contains two custom controls named Youtube control and flickr control. Our problem is this two custom controls runs well on the development server but only flickr control does not work on the production server.

What would be the actual problem?

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

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

发布评论

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

评论(1

ま昔日黯然 2024-10-12 12:23:33

我想通了。它与 Flickr API 尝试存储其缓存的位置有关。默认情况下,它会尝试创建一个目录并将文件存储在当前登录用户的 ApplicationData 文件夹中。由于大多数生产服务器不会授予您的应用程序对此文件夹的访问权限,因此 Flickr API 将无法正确加载。

由于我使用的是 ASP.NET Flickr API,因此对我来说,修复方法是向 web.config 文件添加一个条目:

希望这有帮助。

I figured it out. It has to do with where the Flickr API tries to store it's cache. By default it tries to create a directory and store a file in the currently logged in user's ApplicationData folder. Since most production servers will not grant access from your application to this folder, the Flickr API will not load correctly.

The fix for me, since I'm using the ASP.NET Flickr API, was to add an entry to the web.config file:

<flickrNet cacheLocation="E:\inetpub\[MyWebAppDirectory]\flickr_cache\"></flickrNet>

Hope this helps.

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