>From the quick look I had: The class initializes FileSystemWatcher, which accorting to http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx requires full trust. I'm not familiar with the class, but I think we should do similar things I do in DynamicProxy - verify that we have the required permission, and disable this functionality if we don't. Is this feasible?
2009/10/2 John <[email protected]>: > > Hi, > > My hosting company has usefully switched their servers to medium > trust. This has broken a site I've had running for a couple of years > now. > > Here is what's happened so far. > 1. Upgrade to trunk and compiled with the medium trust flag. > 2. Krzysztof Koźmic fixed an issue with Dynamic Proxy > 3. Upgraded the trunk to run off Boo 2.0.9.2. > > However I'm still getting the following error, any suggestions would > be greatly appreciated. > > 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 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 failed.] > > Castle.MonoRail.Framework.FileAssemblyViewSourceLoader.GetViewFolderWatcher > (String path) +0 > > Castle.MonoRail.Framework.FileAssemblyViewSourceLoader.InitViewFolderWatch > () +145 > > Castle.MonoRail.Framework.FileAssemblyViewSourceLoader.add_ViewChanged > (FileSystemEventHandler value) +126 > Castle.MonoRail.Views.Brail.BooViewEngine.Initialize() +474 > > Castle.MonoRail.Framework.Services.DefaultViewEngineManager.Initialize > () +634 > > Castle.MonoRail.Framework.Services.DefaultServiceInitializer.Initialize > (Object serviceInstance, IMonoRailServices container) +193 > > Castle.MonoRail.Framework.Container.DefaultMonoRailContainer.CreateService > (Type type) +279 > > > Thanks > > John > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
