yakup Posted February 1, 2022 Share Posted February 1, 2022 i have a project, i included rest api in this project. It works fine on my local computer. but when i throw dll to iis server i get "500 - Internal server error." error i tried these http://xxxxx.com.tr/?k=9be67861-75d593a0a4d&v=PrimService.exe http://xxxxx.com.tr/uniguiproject.dll/?k=9be67861-75d593a0a4d&v=PrimService.exe Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted February 1, 2022 Share Posted February 1, 2022 Do you use dB components in your project? Quote Link to comment Share on other sites More sharing options...
yakup Posted February 1, 2022 Author Share Posted February 1, 2022 17 minutes ago, Jean-Marc Kiener said: Do you use dB components in your project? Yes , I use MyDAC components. Quote Link to comment Share on other sites More sharing options...
yakup Posted February 1, 2022 Author Share Posted February 1, 2022 I commented the codes. still same Quote Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted February 1, 2022 Share Posted February 1, 2022 Do you have the same problem when you run it as stand alone .exe? I have an application that uses more than 10 APi services from different vendors and I'm using Unidac with Mysql, and have not problem with that. It works on Hyper server (Dll) hosted by IIS. Quote Link to comment Share on other sites More sharing options...
stevewong Posted February 2, 2022 Share Posted February 2, 2022 My experience is to change the default user in IIS to a user have network privilege Quote Link to comment Share on other sites More sharing options...
yakup Posted February 4, 2022 Author Share Posted February 4, 2022 On 2/1/2022 at 3:32 PM, Mohammed Nasman said: Do you have the same problem when you run it as stand alone .exe? I have an application that uses more than 10 APi services from different vendors and I'm using Unidac with Mysql, and have not problem with that. It works on Hyper server (Dll) hosted by IIS. no problem when running as exe on my own computer Quote Link to comment Share on other sites More sharing options...
yakup Posted February 4, 2022 Author Share Posted February 4, 2022 On 2/2/2022 at 9:46 AM, stevewong said: My experience is to change the default user in IIS to a user have network privilege Are you talking about this authority? Quote Link to comment Share on other sites More sharing options...
stevewong Posted February 14, 2022 Share Posted February 14, 2022 Below is what I write in another post, hope that help. ******************* In order to use TNetHttpCleint under IIS ISAPI environment, you need to do the following : Under Application Pool -> your application -> Advance Setting -> Process Mode -> Identity -> Built in Account -> Network service Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I don't know why, but I hope this information helps. Quote Link to comment Share on other sites More sharing options...
yakup Posted March 15, 2022 Author Share Posted March 15, 2022 On 2/14/2022 at 3:38 PM, stevewong said: Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I made the above recipe but, I don't understand how to do this Quote Link to comment Share on other sites More sharing options...
albertovesx Posted May 4, 2022 Share Posted May 4, 2022 On 3/15/2022 at 5:51 AM, yakup said: I made the above recipe but, I don't understand how to do this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.