StrataFrame Forum

Trust levels ...

http://forum.strataframe.net/Topic33164.aspx

By Charles Thomas Blankenship - 10/14/2015

... after almost a decade ... I hope ... StrataFrame can be hosted on a shared server with Full Trust ... so ... as hosted on GoDaddy ... what does this really mean?
Server Error in '/' Application.


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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Stack Trace: 

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31
   System.Security.CodeAccessPermission.Demand() +46
   System.IO.Path.GetFullPath(String path) +98
   Microsoft.VisualBasic.FileIO.FileSystem.NormalizePath(String Path) +7
   Microsoft.VisualBasic.FileIO.FileSystem.OpenTextFileWriter(String file, Boolean append, Encoding encoding) +31
   MicroFour.StrataFrame.UI.Web.BasePage.WritePropertyInfoToTextFile(String Name) +70
   MicroFour.StrataFrame.UI.Web.BasePage.GetBusinessObjectInfos() +142
   MicroFour.StrataFrame.UI.Web.BasePage.Page_PreLoad(Object sender, EventArgs e) +15
   System.Web.UI.Page.OnPreLoad(EventArgs e) +121
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.default_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248
By Charles Thomas Blankenship - 10/16/2015

Never. mind, GoDaddy was automatically resetting the CAS Trust level to Medium. So far it seems to be fixed. Sorry to bug you guys ... not to mention posting in the wrong forum!
By StrataFrame Team - 10/19/2015

Sorry I'm late, CT.  I can't find that last SF method (WritePropertyInfoToTextFile) in our source code.  Was that something that was added for debugging on your side; I remember the last problem we were working through was getting the page to list the business objects.  I know you have it working now, but if the disk access is not necessary, it might speed things up...