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.
精彩评论