Access WCF service deployed as WebJob on Azure from whithin WebApp Sandbox












0















I have come across a document on Azure Sandbox mentioning we can communicate between processes within WebApp Sandbox over TCP as well as named pipes. I have WCF service deployed as WebJob, I can communicate between two WebJobs deployed within WebApp Sandbox over TCP as well as Named Pipe. Problem occurs when I try to communicate from WebApp. I get same error as mentioned in Sandbox Documentation (https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests).



One strange thing I see in Kudu is there are two separate w3wp.exe running, one for Web App and other for SCM (WebJob etc). And somehow looks like there is no communication possible over port/named pipes between them.



enter image description here



Does anyone have more details on how to access this service?










share|improve this question



























    0















    I have come across a document on Azure Sandbox mentioning we can communicate between processes within WebApp Sandbox over TCP as well as named pipes. I have WCF service deployed as WebJob, I can communicate between two WebJobs deployed within WebApp Sandbox over TCP as well as Named Pipe. Problem occurs when I try to communicate from WebApp. I get same error as mentioned in Sandbox Documentation (https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests).



    One strange thing I see in Kudu is there are two separate w3wp.exe running, one for Web App and other for SCM (WebJob etc). And somehow looks like there is no communication possible over port/named pipes between them.



    enter image description here



    Does anyone have more details on how to access this service?










    share|improve this question

























      0












      0








      0








      I have come across a document on Azure Sandbox mentioning we can communicate between processes within WebApp Sandbox over TCP as well as named pipes. I have WCF service deployed as WebJob, I can communicate between two WebJobs deployed within WebApp Sandbox over TCP as well as Named Pipe. Problem occurs when I try to communicate from WebApp. I get same error as mentioned in Sandbox Documentation (https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests).



      One strange thing I see in Kudu is there are two separate w3wp.exe running, one for Web App and other for SCM (WebJob etc). And somehow looks like there is no communication possible over port/named pipes between them.



      enter image description here



      Does anyone have more details on how to access this service?










      share|improve this question














      I have come across a document on Azure Sandbox mentioning we can communicate between processes within WebApp Sandbox over TCP as well as named pipes. I have WCF service deployed as WebJob, I can communicate between two WebJobs deployed within WebApp Sandbox over TCP as well as Named Pipe. Problem occurs when I try to communicate from WebApp. I get same error as mentioned in Sandbox Documentation (https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests).



      One strange thing I see in Kudu is there are two separate w3wp.exe running, one for Web App and other for SCM (WebJob etc). And somehow looks like there is no communication possible over port/named pipes between them.



      enter image description here



      Does anyone have more details on how to access this service?







      azure azure-webjobs azure-web-app-service azure-webapps






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '18 at 22:43









      AnandAnand

      11412




      11412
























          3 Answers
          3






          active

          oldest

          votes


















          0















          Note: you cannot communicate through localhost in Azure Websites (or
          WebJobs) and cannot listen on a port that is not 80/443.




          IF you just want to deliver message, you could use file-system to communicate. You write a file from the WebJob and use a FileSystemWatcher to monitor the file changes.



          Or you can use web socket to communicate between each other with SignalR, you can refer to this blog.



          If you still have questions , please let me know.






          share|improve this answer
























          • @Anand if my answer could help you, could you accept my answer.Thanks.

            – George Chen
            Nov 22 '18 at 2:26



















          0














          The communication only works if the TCP or namedpipe service is running on the main site. SCM site as a client can talk to it. The other way around (which is what you want) is not supported due to some limitation.






          share|improve this answer































            0














            I explored a bit more and found the closest answer is to set WEBSITE_DISABLE_SCM_SEPARATION=true in App Settings. This will enable WebApp and SCM processes work in same sandbox. Unfortunately this option is deprecated by Azure and no longer supported. Thanks all for attempting the answer. More information can be found here.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402701%2faccess-wcf-service-deployed-as-webjob-on-azure-from-whithin-webapp-sandbox%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0















              Note: you cannot communicate through localhost in Azure Websites (or
              WebJobs) and cannot listen on a port that is not 80/443.




              IF you just want to deliver message, you could use file-system to communicate. You write a file from the WebJob and use a FileSystemWatcher to monitor the file changes.



              Or you can use web socket to communicate between each other with SignalR, you can refer to this blog.



              If you still have questions , please let me know.






              share|improve this answer
























              • @Anand if my answer could help you, could you accept my answer.Thanks.

                – George Chen
                Nov 22 '18 at 2:26
















              0















              Note: you cannot communicate through localhost in Azure Websites (or
              WebJobs) and cannot listen on a port that is not 80/443.




              IF you just want to deliver message, you could use file-system to communicate. You write a file from the WebJob and use a FileSystemWatcher to monitor the file changes.



              Or you can use web socket to communicate between each other with SignalR, you can refer to this blog.



              If you still have questions , please let me know.






              share|improve this answer
























              • @Anand if my answer could help you, could you accept my answer.Thanks.

                – George Chen
                Nov 22 '18 at 2:26














              0












              0








              0








              Note: you cannot communicate through localhost in Azure Websites (or
              WebJobs) and cannot listen on a port that is not 80/443.




              IF you just want to deliver message, you could use file-system to communicate. You write a file from the WebJob and use a FileSystemWatcher to monitor the file changes.



              Or you can use web socket to communicate between each other with SignalR, you can refer to this blog.



              If you still have questions , please let me know.






              share|improve this answer














              Note: you cannot communicate through localhost in Azure Websites (or
              WebJobs) and cannot listen on a port that is not 80/443.




              IF you just want to deliver message, you could use file-system to communicate. You write a file from the WebJob and use a FileSystemWatcher to monitor the file changes.



              Or you can use web socket to communicate between each other with SignalR, you can refer to this blog.



              If you still have questions , please let me know.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 21 '18 at 1:59









              George ChenGeorge Chen

              54317




              54317













              • @Anand if my answer could help you, could you accept my answer.Thanks.

                – George Chen
                Nov 22 '18 at 2:26



















              • @Anand if my answer could help you, could you accept my answer.Thanks.

                – George Chen
                Nov 22 '18 at 2:26

















              @Anand if my answer could help you, could you accept my answer.Thanks.

              – George Chen
              Nov 22 '18 at 2:26





              @Anand if my answer could help you, could you accept my answer.Thanks.

              – George Chen
              Nov 22 '18 at 2:26













              0














              The communication only works if the TCP or namedpipe service is running on the main site. SCM site as a client can talk to it. The other way around (which is what you want) is not supported due to some limitation.






              share|improve this answer




























                0














                The communication only works if the TCP or namedpipe service is running on the main site. SCM site as a client can talk to it. The other way around (which is what you want) is not supported due to some limitation.






                share|improve this answer


























                  0












                  0








                  0







                  The communication only works if the TCP or namedpipe service is running on the main site. SCM site as a client can talk to it. The other way around (which is what you want) is not supported due to some limitation.






                  share|improve this answer













                  The communication only works if the TCP or namedpipe service is running on the main site. SCM site as a client can talk to it. The other way around (which is what you want) is not supported due to some limitation.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 8:25









                  Suwat ChSuwat Ch

                  43824




                  43824























                      0














                      I explored a bit more and found the closest answer is to set WEBSITE_DISABLE_SCM_SEPARATION=true in App Settings. This will enable WebApp and SCM processes work in same sandbox. Unfortunately this option is deprecated by Azure and no longer supported. Thanks all for attempting the answer. More information can be found here.






                      share|improve this answer




























                        0














                        I explored a bit more and found the closest answer is to set WEBSITE_DISABLE_SCM_SEPARATION=true in App Settings. This will enable WebApp and SCM processes work in same sandbox. Unfortunately this option is deprecated by Azure and no longer supported. Thanks all for attempting the answer. More information can be found here.






                        share|improve this answer


























                          0












                          0








                          0







                          I explored a bit more and found the closest answer is to set WEBSITE_DISABLE_SCM_SEPARATION=true in App Settings. This will enable WebApp and SCM processes work in same sandbox. Unfortunately this option is deprecated by Azure and no longer supported. Thanks all for attempting the answer. More information can be found here.






                          share|improve this answer













                          I explored a bit more and found the closest answer is to set WEBSITE_DISABLE_SCM_SEPARATION=true in App Settings. This will enable WebApp and SCM processes work in same sandbox. Unfortunately this option is deprecated by Azure and no longer supported. Thanks all for attempting the answer. More information can be found here.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 22 '18 at 19:57









                          AnandAnand

                          11412




                          11412






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402701%2faccess-wcf-service-deployed-as-webjob-on-azure-from-whithin-webapp-sandbox%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                              Alcedinidae

                              Can an atomic nucleus contain both particles and antiparticles? [duplicate]