Hi,
1. Go to the web config navigation C:\inetpub\wwwroot\wss\VirtualDirectories\port Open the web file and find for call stack and customerror mode change call stack = "true" and customerror mode = "Off", then we can see the detail error
message for you to resolve the issue.
2. Try to use another computer to login SharePoint site to check whether it works or not.
3. Add some try catch logic in your code and write exception to a log file.
4. Or try to use the user who meet this issue to debug your code.
Best Regards,
Dennis
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
tnmff@microsoft.com.
