403 - Forbidden: Access is denied ASP.Net MVC












0















I have deployed a website. It work well when I access from internal network (the network on my company). But, the website has error display UI when I try access the website on the public internet. The root cause of isssue that the website cannot get resource files (css).
The browser show errror message: "Failed to load resource: the server responded with a status of 403 (ModSecurity Action)".
So, I try to access the bundled resource file is error, and the browser display the error message "403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied."
I think I have a problem with the network or firewall.
Could you give me the solutions to resolve this issue?
enter image description here
enter image description here



enter image description hereenter image description here










share|improve this question





























    0















    I have deployed a website. It work well when I access from internal network (the network on my company). But, the website has error display UI when I try access the website on the public internet. The root cause of isssue that the website cannot get resource files (css).
    The browser show errror message: "Failed to load resource: the server responded with a status of 403 (ModSecurity Action)".
    So, I try to access the bundled resource file is error, and the browser display the error message "403 - Forbidden: Access is denied.
    You do not have permission to view this directory or page using the credentials that you supplied."
    I think I have a problem with the network or firewall.
    Could you give me the solutions to resolve this issue?
    enter image description here
    enter image description here



    enter image description hereenter image description here










    share|improve this question



























      0












      0








      0








      I have deployed a website. It work well when I access from internal network (the network on my company). But, the website has error display UI when I try access the website on the public internet. The root cause of isssue that the website cannot get resource files (css).
      The browser show errror message: "Failed to load resource: the server responded with a status of 403 (ModSecurity Action)".
      So, I try to access the bundled resource file is error, and the browser display the error message "403 - Forbidden: Access is denied.
      You do not have permission to view this directory or page using the credentials that you supplied."
      I think I have a problem with the network or firewall.
      Could you give me the solutions to resolve this issue?
      enter image description here
      enter image description here



      enter image description hereenter image description here










      share|improve this question
















      I have deployed a website. It work well when I access from internal network (the network on my company). But, the website has error display UI when I try access the website on the public internet. The root cause of isssue that the website cannot get resource files (css).
      The browser show errror message: "Failed to load resource: the server responded with a status of 403 (ModSecurity Action)".
      So, I try to access the bundled resource file is error, and the browser display the error message "403 - Forbidden: Access is denied.
      You do not have permission to view this directory or page using the credentials that you supplied."
      I think I have a problem with the network or firewall.
      Could you give me the solutions to resolve this issue?
      enter image description here
      enter image description here



      enter image description hereenter image description here







      asp.net-mvc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 31 '18 at 10:55









      Ahmed Ghoniem

      53349




      53349










      asked Dec 31 '18 at 3:13









      DuyNGDuyNG

      61




      61
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Please add this key in your web.config .if not there .



          <add key="webpages:Enabled" value="true" />


          If still same issue then let me know .



          You should put this key to allow the request access



          <system.webServer> 
          <modules runAllManagedModulesForAllRequests="true" />





          share|improve this answer


























          • I have tried, but the issue is still there

            – DuyNG
            Dec 31 '18 at 6:48











          • have you tried this runAllManagedModulesForAllRequests ?

            – Nikunj
            Dec 31 '18 at 6:54













          • This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

            – DuyNG
            Dec 31 '18 at 7:25













          • SSL is enabled in your project ?

            – Nikunj
            Dec 31 '18 at 7:26











          • Yes, SSL is enabled

            – DuyNG
            Dec 31 '18 at 7:36











          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%2f53983239%2f403-forbidden-access-is-denied-asp-net-mvc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Please add this key in your web.config .if not there .



          <add key="webpages:Enabled" value="true" />


          If still same issue then let me know .



          You should put this key to allow the request access



          <system.webServer> 
          <modules runAllManagedModulesForAllRequests="true" />





          share|improve this answer


























          • I have tried, but the issue is still there

            – DuyNG
            Dec 31 '18 at 6:48











          • have you tried this runAllManagedModulesForAllRequests ?

            – Nikunj
            Dec 31 '18 at 6:54













          • This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

            – DuyNG
            Dec 31 '18 at 7:25













          • SSL is enabled in your project ?

            – Nikunj
            Dec 31 '18 at 7:26











          • Yes, SSL is enabled

            – DuyNG
            Dec 31 '18 at 7:36
















          1














          Please add this key in your web.config .if not there .



          <add key="webpages:Enabled" value="true" />


          If still same issue then let me know .



          You should put this key to allow the request access



          <system.webServer> 
          <modules runAllManagedModulesForAllRequests="true" />





          share|improve this answer


























          • I have tried, but the issue is still there

            – DuyNG
            Dec 31 '18 at 6:48











          • have you tried this runAllManagedModulesForAllRequests ?

            – Nikunj
            Dec 31 '18 at 6:54













          • This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

            – DuyNG
            Dec 31 '18 at 7:25













          • SSL is enabled in your project ?

            – Nikunj
            Dec 31 '18 at 7:26











          • Yes, SSL is enabled

            – DuyNG
            Dec 31 '18 at 7:36














          1












          1








          1







          Please add this key in your web.config .if not there .



          <add key="webpages:Enabled" value="true" />


          If still same issue then let me know .



          You should put this key to allow the request access



          <system.webServer> 
          <modules runAllManagedModulesForAllRequests="true" />





          share|improve this answer















          Please add this key in your web.config .if not there .



          <add key="webpages:Enabled" value="true" />


          If still same issue then let me know .



          You should put this key to allow the request access



          <system.webServer> 
          <modules runAllManagedModulesForAllRequests="true" />






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 31 '18 at 6:55

























          answered Dec 31 '18 at 6:14









          NikunjNikunj

          709




          709













          • I have tried, but the issue is still there

            – DuyNG
            Dec 31 '18 at 6:48











          • have you tried this runAllManagedModulesForAllRequests ?

            – Nikunj
            Dec 31 '18 at 6:54













          • This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

            – DuyNG
            Dec 31 '18 at 7:25













          • SSL is enabled in your project ?

            – Nikunj
            Dec 31 '18 at 7:26











          • Yes, SSL is enabled

            – DuyNG
            Dec 31 '18 at 7:36



















          • I have tried, but the issue is still there

            – DuyNG
            Dec 31 '18 at 6:48











          • have you tried this runAllManagedModulesForAllRequests ?

            – Nikunj
            Dec 31 '18 at 6:54













          • This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

            – DuyNG
            Dec 31 '18 at 7:25













          • SSL is enabled in your project ?

            – Nikunj
            Dec 31 '18 at 7:26











          • Yes, SSL is enabled

            – DuyNG
            Dec 31 '18 at 7:36

















          I have tried, but the issue is still there

          – DuyNG
          Dec 31 '18 at 6:48





          I have tried, but the issue is still there

          – DuyNG
          Dec 31 '18 at 6:48













          have you tried this runAllManagedModulesForAllRequests ?

          – Nikunj
          Dec 31 '18 at 6:54







          have you tried this runAllManagedModulesForAllRequests ?

          – Nikunj
          Dec 31 '18 at 6:54















          This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

          – DuyNG
          Dec 31 '18 at 7:25







          This key (runAllManagedModulesForAllRequests) was added, but the issue is still there!

          – DuyNG
          Dec 31 '18 at 7:25















          SSL is enabled in your project ?

          – Nikunj
          Dec 31 '18 at 7:26





          SSL is enabled in your project ?

          – Nikunj
          Dec 31 '18 at 7:26













          Yes, SSL is enabled

          – DuyNG
          Dec 31 '18 at 7:36





          Yes, SSL is enabled

          – DuyNG
          Dec 31 '18 at 7:36


















          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%2f53983239%2f403-forbidden-access-is-denied-asp-net-mvc%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

          Mossoró

          Error while reading .h5 file using the rhdf5 package in R

          Pushsharp Apns notification error: 'InvalidToken'