403 - Forbidden: Access is denied ASP.Net MVC
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


asp.net-mvc
add a comment |
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


asp.net-mvc
add a comment |
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


asp.net-mvc
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


asp.net-mvc
asp.net-mvc
edited Dec 31 '18 at 10:55
Ahmed Ghoniem
53349
53349
asked Dec 31 '18 at 3:13
DuyNGDuyNG
61
61
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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" />
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
|
show 1 more comment
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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" />
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
|
show 1 more comment
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" />
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
|
show 1 more comment
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" />
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" />
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
|
show 1 more comment
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
|
show 1 more comment
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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