Running in partial trust
1 post
• Page 1 of 1
Running in partial trust
I'm trying to use Phalanger from an XBAP, but get a security exception when it's trying to read a configuration. Is there any way around this?
Would it work if include a config file in my project? If so, what should it look like?
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Path.GetFullPath(String path)
at PHP.Core.FullPath..ctor(String path, Boolean isArbitrary)
at PHP.Core.ApplicationConfiguration.PathsSection..ctor()
at PHP.Core.ApplicationConfiguration..ctor()
at PHP.Core.Configuration..cctor()
at PHP.Core.Configuration.get_DefaultLocal()
at PHP.Core.ScriptContext..ctor(ApplicationContext appContext)
at PHP.Core.ScriptContext.get_CurrentContext()
Would it work if include a config file in my project? If so, what should it look like?
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Path.GetFullPath(String path)
at PHP.Core.FullPath..ctor(String path, Boolean isArbitrary)
at PHP.Core.ApplicationConfiguration.PathsSection..ctor()
at PHP.Core.ApplicationConfiguration..ctor()
at PHP.Core.Configuration..cctor()
at PHP.Core.Configuration.get_DefaultLocal()
at PHP.Core.ScriptContext..ctor(ApplicationContext appContext)
at PHP.Core.ScriptContext.get_CurrentContext()
- lemmy@codeplex
- Posts: 1
- Joined: January 7th, 2012, 8:53 pm
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests