I've already googled on this issues and I did all the recommendations, But still Un achieved,
I've created visualforce page to display Attachments on Particular Object for Current Logged in User in Portals,
It is working fine by passsing HardCoded Id over URL (Poratal user) and also By Opening that Page Seperately(apex/MyInvoiceDocs?Id='abd145455562') Its working.
But when I access this page in Portals(Using "where ID=:UserInfo.getUserId()" in controller Query )
Which actually gets Id of current logged in User(Portal enabled) and Displays Attachments
I'm getting " Error occurred while loading a Visualforce page "
Also, This page and Class is already Accessible to that User's Profile(Apex class and VF page access)
Any one Suggest me...
And I didnt used any Lookup field on VF page and I used,
<apex:column headerValue="View / Download">
<apex:outputLink styleClass="btn" value="{!URLFOR($Action.Attachment.Download, a.At.Id)}" target="_blank"> View </apex:outputLink>
</apex:column>
for Download / view of attachment