0

I need your help.

When something went wrong in my asp.net code it just returns this message "Uh-oh, something went wrong! Error Code: 500" and it does not give me the specific error, so please could anybody tell me how to solve this problem.

Mo Haidar
  • 3,748
  • 6
  • 37
  • 76
  • Is anything recorded in the event log? – Brian Mains Oct 01 '14 at 11:37
  • Is this browser you are accessing your application on running locally on your server or on a client machine? – Marco Oct 01 '14 at 11:38
  • Check the web.config file on your server and look for CustomErrors tag. There should be an entry to redirect to a page with the message you are getting. Change the mode to off – Sam Oct 01 '14 at 11:53

2 Answers2

1

You need to check you web.config file. And see the customeError tag use the blow setting

 <customErrors mode="Off"/>

Here is the more detail about customeError
You can refer the similar question on SO
Asp.net - <customErrors mode="Off"/> error when trying to access working webpage

Edit -1

More detail about custom error
http://www.codeproject.com/Articles/2345/Custom-Errors-in-ASP-NET

Community
  • 1
  • 1
शेखर
  • 17,412
  • 13
  • 61
  • 117
0

there may be some thing wrong in your code which server not recognized are may be spelling error in your code. I face this problem in query when i uses join and given wrong return value For Eg:

select tia.*,aht.tutor_uid,ucm.name,ucm.contactdetail from tutor_invoice_against_contract as tia
        left join tutor_billing_against_contract as tba on tba.tbill_id = tia.tbill_id
                     left join ad_hoc_teacher_master as aht on aht.contract_id = tia.contract_id
                    where tia.tin_id = '".$id."' 

when i uses ath in place of aht its giving this

4302836
  • 387
  • 1
  • 6
  • 14