开发者

Custom control for flickr is not works on the production server but it works on the development server

开发者 https://www.devze.com 2023-01-28 06:21 出处:网络
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 develo

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消