Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

500 Internal Server Error

(0) ShareShare
ReportReport
Posted on by 434

Hi ,

I Have to Pass the Parameter for the service class method through URL. The below is my Service Class . I will get the parameter (str name) from URL. 

pastedimage1576678044593v1.png

But when i run the C# code i am getting the 500 Internal Server error exception. How can i achieve this , Can you guys help me .

pastedimage1576678044596v2.png

Thanks in Advance,

Ram

  • Suggested answer
    ashish12 Profile Picture
    ashish12 3,079 on at
  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: 500 Internal Server Error

    Hi Ram,

    500 error could be caused by many reason.

    Try to get more detailed information about error in response with methods below:

    https://stackoverflow.com/questions/3273205/read-text-from-response

    https://stackoverflow.com/questions/15936180/getting-content-message-from-httpresponsemessage

    I noticed that you were executing a Web API request,

    so I suggest you could convert your code into javascript version,

    likes a web resource or with Postman to test whether it could work and find potential reasons, (also get responseText from XMLHttpRequest)

    then covert it back to back-end with success parameters.

    Regards,

    Clofly

  • Ram Kumar Profile Picture
    Ram Kumar 434 on at
    RE: 500 Internal Server Error

    6874.exception.PNG

    This is the Error Message , can you guys help me. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans