You are viewing limited content. For full access, please sign in.

Question

Question

custom error page for WebLink

asked on October 2, 2017 Show version history

Through WebLink we are getting a standard error that I do not have permissions to view this entry.  The error is a nasty looking.  Is there a way to display a more friendly messages for this type of error.

 

Event Viewer Message:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/2/2017 3:05:28 PM
Event time (UTC): 10/2/2017 10:05:28 PM
Event ID: 8240dde3feb949bf9bf08e41a5e34aee
Event sequence: 136
Event occurrence: 4
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT/LFPortal-2-131514495883017126
    Trust level: Full
    Application Virtual Path: /LFPortal
    Application Path: D:\Program Files\Laserfiche\WebLink\Web Files - EmployeePortal\
    Machine name: DCAPLFI185
 
Process information:
    Process ID: 3016
    Process name: w3wp.exe
    Account name: IIS APPPOOL\WebLinkAppPool
 
Exception information:
    Exception type: Exception
    Exception message: You do not have the necessary permissions to view the entry '2352'. User (Edward) does not have the read permissions on the entry.
   at WebLink.DocView2.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information:
    Request URL: https://dcaplfi185.glendaleaz.com:443/lfportal/DocView.aspx?dbid=2&id=2352
    Request path: /lfportal/DocView.aspx
    User host address: ::1
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: IIS APPPOOL\WebLinkAppPool
 
Thread information:
    Thread ID: 28
    Thread account name: IIS APPPOOL\WebLinkAppPool
    Is impersonating: False
    Stack trace:    at WebLink.DocView2.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

 

WebLinkScreenShot.png
0 0

Answer

SELECTED ANSWER
replied on October 2, 2017

I figured this out.  By default in the WEB.xml file Has Custom Error Messages set to RemoteOnly which shows the nice error message instead of the full ASP.NET error.  From another machine it shows the message I was looking for.

0 0
replied on October 2, 2017

it should have been the web.config within the default location of C:\Program Files\Laserfiche\WebLink\Web Files. but yes, as you noted, 

""RemoteOnly" Display custom (friendly) messages only to users not running on the local Web server. This setting is recommended for security purposes, so that you do not display application detail information to remote clients."

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.