Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have developed a internet site and I am using href as below to redirect user to a specific site.


  • u

    Nav Portal


    Navision system




  • each appear as block and when user click on the block it redirects to the site.
    Now the issue is that for those who has access to it is totally fine but if one does not have access then a error message is shown as below.
    The login failed when connecting to SQL Server ICTFINSRV02.
    Now i want to display a friendly error message. Any idea how can i handle this.
    Posted
    Comments
    Sergey Alexandrovich Kryukov 16-Dec-13 17:48pm    
    What is the problem with that? What have you tried so far?
    —SA
    Goenitz 17-Dec-13 3:07am    
    Session probably :)

    1 solution

    Quote:
    Now the issue is that for those who has access to it is totally fine but if one does not have access then a error message is shown as below.
    The login failed when connecting to SQL Server ICTFINSRV02.
    Check this KB
    "Login failed for user" error message when you log on to SQL Server[^]

    Check these articles, for friendly exception management
    User Friendly Exception Handling[^]
    Exception Handling Best Practices in .NET[^]
     
    Share this answer
     

    This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



    CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900