Rank: Newbie
Joined: 7/7/2007 Posts: 5
|
So I have gone through all the posts about the woes of installing Umbraco opn a shared host. I can say it has not been fun or enjoyable.
With the assistance of those other posts I have gotten it down to one error that I cannot find on the forums. Only on the shared host after login to the administrative console the context menus (right-click) menu on the trees all javascript error.
I have traced it down to the fact that contextmenu.aspx is erroring with a Security Exception shown below.
---- Error Paste Start ----
Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.AppDomainSetup.VerifyDir(String dir, Boolean normalize) +110 umbraco.BusinessLogic.Utils.TypeResolver.GetAssignablesFromType(String[] files) +453 umbraco.BusinessLogic.Utils.TypeResolver.GetAssignablesFromType(String path, String filePattern) +224 umbraco.BusinessLogic.Actions.Action.registerActionHandlers() +159 umbraco.BusinessLogic.Actions.Action..cctor() +96
---- Error Paste End ----
I have tried this locally on a development server and it works fine. So this is something environmental on the shared host. I need to figure out what it is so I can direct the shared host on what they can possibly modify to get this working. Here is what I have tried:
- Different Browser Security Levels (Low, Medium, etc..) on the client side
- Checking the shared web.config in the .NET Framework folder and modify the different security level .config's on the local development machine to see if I can see what change triggers the error. I focused on FileIO since that is what the error is above.
- Different file permissions on the /umbraco/js folder and file. Now 'Everyone' has full permissions. ASPNET has full permissions as well.
Anyone seen this before? Anyone have any ideas they can share that may resolve this issue. As you know without the context menus you are pretty mustch dead in the water since that is how you add new items to the tree's etc...
Any input, suggestions, etc.. I how to resolve this is much appreciated.
Thank you.
|
Rank: Newbie
Joined: 7/6/2007 Posts: 3
|
I have the exsact same issue, except I got that error on install when the install checks for permissions...
If someone has a clue on how to fix that problem, you would be a godsend!
|
Rank: Devotee
Joined: 7/19/2006 Posts: 97
|
I think it will be hard to install on a shared server with medium trust.
I did try it yesterday and I got stuck in the same place. Reading the source, Umbraco is trying to get alot of stuff by reading the dll's in the bin-directory, and I don't think that is allowed in a medium trust.
|
Rank: Newbie
Joined: 7/20/2006 Posts: 7
|
Uhh.. i hope we will make some complete tutorial for this issue. We, yesterday i was chatting with friend, abotu medium trust and stuff. Actually this medium trust is mess and it happens when hosting providers don't know what are they doing. Well, some of them who have full trust have totaly unprotected servers. So, they moved to medium trust - to stop disable server hacking. U know, they all use same guest username for all guest accounts. THey use same app pool to save resources and etc. And they could make everyones work easier if they would just know what are they doing. http://www.doscoop.com
|
Rank: Newbie
Joined: 9/5/2007 Posts: 6
|
Guess we should look into the TypeResolver.cs file to see what the GetTypes() method really does. It seems it could be the culprit causing the security exception...
|