I’ve recently started properly battling playing with Orchard and came across a gotcha which may simply have been down to a misunderstanding on my part, but I didn’t find much info when searching for it so figured I’d blog about it myself.
Having set up an initial instance, I switched on the multi-tenancy module so as to install a second instance alongside the first one rather than deploying another copy of Orchard in its entirety. When attempting to install some additional modules within the second instance, I ran into trouble – every time I clicked the “Install” link for a module in the gallery, or the “Install a module from your computer” link within the “Installed” tab of the Modules section, I got an “Access denied” error.
I started checking permissions in various places – my Orchard user account, filesystem ACEs, IIS configuration etc. In the end I had to dive into the code to see what conditions were in use.
Turns out that the problem lay with the fact I was using multi-tenancy – module installation (and possibly themes too though I haven’t checked) is only possible from the default instance, not the other tenants. I’m assuming this is because all tenants share the same modules and themes, and only the default instance is allowed to control them to prevent anarchy breaking out amongst the different tenants. My solution was simple – install the module via the default instance and then go back to the second one where it immediately showed up for me to enable.
Whilst I can see some logic to the business rule here, and maybe it’s spelled out clearly somewhere I missed, I think it could be handled better – there either ought to be a delegation feature within the multi-tenancy module that grants tenants the right to install modules, or a clearer error message when access is denied that makes it immediately obvious what the problem is. At the very least the UI for installing a module ought to be hidden when logged in as a tenant to avoid confusion.
Note the above all applies to Orchard 1.2 – if you’re reading this blog post some time down the line, be aware that it may not apply any more.
3 Comments
Thanks for the Post. I agree it needs to be fixed.
Problem still there in Orchard 1.72 … thanks for your post!
Thanks for your post, I ran into this issue today and have no idea what’s happening… 😀
44 Trackbacks
annual free credit report org
Access denied error when installing Orchard modules
lids promo codes
Access denied error when installing Orchard modules
■自転車全品送料無料!■最短発送■【DOPPELGANGER】(ドッペルギャンガー)(210 constellat…
、私はblogengine.netが好きしかし、なぜあなたはそれを選んだのですか?私は…
【激安市場】コーチ COACH★レビューを書くと送料無料!財布(二つ折り財…
読書好き優秀もの、ありがとうこの、非常に 介して。
タチカワ TIORIOティオリオ ロールスクリーン無地ウォッシャブル90×180cm TR-5126?ア…
私はこのウェブサイトは、過去にいくつかの時間を保存していたが、…
opera house sydney
Access denied error when installing Orchard modules
planters
Access denied error when installing Orchard modules
【激安市場】★今夜20時~4H限定P10倍★【送料無料/即納】究極のマットレ…
このコンテンツは、しばらく前に、ブックマークが、私のPCがクラッシ…
Lawn Needs
Access denied error when installing Orchard modules
metal bong Downpipes
“Access denied” error when installing Orchard modules
person talking
Mercedes denting and Painting Dubai
dent removal Uses
executive equity compensation Startup
Dent Removal Uses
Auto repair costs
laurel Hill proxy solicitation process
Fix Car
perform Auto
Car parts
Old tires Slip
georgeson proxy solicitation services
similar webpage
is mercedes car Maintenance expensive
Timing Belt complications
unscrupulous mechanics
who Makes the Most accurate spirit level
mercedes car maintenance
Rowlett texas car air c
http://mmorio:[email protected]/school-fundraiser-get-a-little-company-to-help-35//webstats/webstats.html
stay with me
http://6.gp
board of directors advisory solutions
Read Full Report
mercedes repair service uae
http://sports.suratkhabar.com/
karina1112.livejournal.com
Corporate Proxy Solicitation Companies
Mercedes Repair Service Near Me
Board of Directors Advisory Services
Proxy Solicitation Services
corporate proxy solicitation services online
Nclex-rn Test Prep online
download