R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
EXISTS fails on NETWORK SHARE
Last Post 01 Jan 1900 05:00 AM by . 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
frescoUser is Offline
New Member
New Member
Posts:6

--
30 Jul 2007 09:12 PM  
The following code works on our single test server but once we move it to the production web farm, it fails.

The difference seems to be that on one server there is a physical path to the images (c:\...) while the web farm uses a network share path. (\\sql1\...)

Any ideas on how we can solve this? Thank you.

<img src="{IIF, [FORMAT,[Request.PhysicalApplicationPath]Portals\23\Human Resources\EmployeePictures/[FirstName] [LastName].jpg,{EXISTS}], "[PORTALPATH,System]Human%20Resources/EmployeePictures/[FirstName]%20[LastName].jpg", "http://[ALIAS,System]/images/File.gif"}" width=50 border=0>
kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
01 Aug 2007 04:15 PM  
hmm - i havent had a chance to actually test this - but the EXISTS tag will attempt to perform a lookup relative to the path, so if you replace the [Request.PhysicalApplicationPath]Portals with ~/Portals you may have some success. Let me know either way so I can be sure to set that in the doc.
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share