Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I can't get base to work in Umbraco 4.0.4, this is my restExtensions.config:
<ext assembly="/bin/AssemblyName" type="Namespace.Class" alias="doSomething"> <permission method="Create" allowAll="true" /> </ext>
I'm calling the URL like this: http://domain.local/base/doSomething/ but I always get the result of: "Extension not found or permission denied".
The class looks like this:
namespace Namespace { public class Clas { public static string Create() { return "test"; } } }
The assembly is in my /bin folder.
What did I miss?
Have you ran the IIS permissions after copying any new files in?
There's an xsltExtension in this assembly that works just fine, so I don't think that's the problem.
Comment author was deleted
Hi Sebastiaan, looks like your type needs to be Namespace.Clas
Thanks, but that's a typo in giving the class an anonymous name. I triple checked the names! :-)
Ps. I've just implemented the exact code above and called the URL, same problem.
And do you get the same message when calling http://domain.local/base/doSomething/Create.aspx
Oh there we go, that was silly of me! I had assumed (because I only have one method) that it would automatically be called. Of course now that I'm calling the method it works perfectly, thank you!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Base problem: Extension not found or permission denied
I can't get base to work in Umbraco 4.0.4, this is my restExtensions.config:
I'm calling the URL like this: http://domain.local/base/doSomething/ but I always get the result of: "Extension not found or permission denied".
The class looks like this:
The assembly is in my /bin folder.
What did I miss?
Have you ran the IIS permissions after copying any new files in?
There's an xsltExtension in this assembly that works just fine, so I don't think that's the problem.
Comment author was deleted
Hi Sebastiaan, looks like your type needs to be Namespace.Clas
Thanks, but that's a typo in giving the class an anonymous name. I triple checked the names! :-)
Ps. I've just implemented the exact code above and called the URL, same problem.
Comment author was deleted
And do you get the same message when calling http://domain.local/base/doSomething/Create.aspx
Oh there we go, that was silly of me! I had assumed (because I only have one method) that it would automatically be called. Of course now that I'm calling the method it works perfectly, thank you!
is working on a reply...