How do I get rid of a 405 error in 2sxc module?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
We've just followed this:
https://github.com/2sic/2sxc/wiki/Html-Js-Command-Delete
But the delete command gives an error in F12:
../DesktopModules/2sxc/API/app-content/any/2fc3e603-a0f1-403d-a5ff-cc1cbf4ccb8e 405 (Method Not Allowed)
So is there something we have missed Daniel?
dotnetnuke 2sxc
|
show 2 more comments
We've just followed this:
https://github.com/2sic/2sxc/wiki/Html-Js-Command-Delete
But the delete command gives an error in F12:
../DesktopModules/2sxc/API/app-content/any/2fc3e603-a0f1-403d-a5ff-cc1cbf4ccb8e 405 (Method Not Allowed)
So is there something we have missed Daniel?
dotnetnuke 2sxc
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36
|
show 2 more comments
We've just followed this:
https://github.com/2sic/2sxc/wiki/Html-Js-Command-Delete
But the delete command gives an error in F12:
../DesktopModules/2sxc/API/app-content/any/2fc3e603-a0f1-403d-a5ff-cc1cbf4ccb8e 405 (Method Not Allowed)
So is there something we have missed Daniel?
dotnetnuke 2sxc
We've just followed this:
https://github.com/2sic/2sxc/wiki/Html-Js-Command-Delete
But the delete command gives an error in F12:
../DesktopModules/2sxc/API/app-content/any/2fc3e603-a0f1-403d-a5ff-cc1cbf4ccb8e 405 (Method Not Allowed)
So is there something we have missed Daniel?
dotnetnuke 2sxc
dotnetnuke 2sxc
asked Nov 23 '18 at 14:02
MBouwmanMBouwman
186
186
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36
|
show 2 more comments
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36
|
show 2 more comments
0
active
oldest
votes
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%2f53448117%2fhow-do-i-get-rid-of-a-405-error-in-2sxc-module%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53448117%2fhow-do-i-get-rid-of-a-405-error-in-2sxc-module%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
So those instructions are necessary so the toolbar gives you the buttons. If that works, you're doing well. Now apparently you're running into some kind of issue that I'm not aware of. My guess is it's either some http-filter preventing the command - pls check if it's doing a GET or DELETE - or the code is running, but finds an issue - check the DNN site-logs. Then post your findings.
– iJungleBoy
Nov 27 '18 at 8:49
Ok, just checked this is what it looks like in F12/Developers tools: DELETE websitename.nl/DesktopModules/2sxc/API/app-content/any/… 405 (Method Not Allowed) send @ jquery.js?cdv=107:8526 ajax @ jquery.js?cdv=107:7978 t.request @ ToSic.Sxc.WebApi.ts:101 t.delete @ ToSic.Sxc.WebApi.ts:51 (anonymous) @ item-commands.ts:23 delete @ item-commands.ts:22 code @ delete.ts:31 e.run @ engine.ts:94 e.detectParamsAndRun @ engine.ts:44 (anonymous) @ Cms.ts:41 e.do @ Cms.ts:52 e.run @ Cms.ts:40 t.run @ instance-engine.ts:14 onclick...
– MBouwman
Nov 27 '18 at 16:10
It might be that the entity still is linked with some other entity. We're kind of looking to do a force-delete from the template
– MBouwman
Nov 27 '18 at 16:11
My guess is that your web.config forbids the verb DELETE. Could you check?
– iJungleBoy
Nov 28 '18 at 9:24
Actually, DELETE was allowed, well, kind of.... If you google for the 405 and the DELETE verb it gives some suggestions about disabling webdav, because webdav disables the DELETE verb by default so: <system.webServer> <modules> <remove name="WebDAVModule" /> </modules> <handlers> <remove name="WebDAV" /> </handlers> </system.webServer> does the trick....
– MBouwman
Nov 29 '18 at 10:36