This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am using LightSpeed 5 (the last nightly build is not work too). I follow the instructions in http://www.mindscapehq.com/blog/index.php/2009/02/15/running-lightspeed-under-medium-trust, useless. please help. 在 System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
在 System.Security.CodeAccessPermission.Demand()
在 System.IO.Directory.InternalGetCurrentDirectory(Boolean checkHost)
在 Mindscape.LightSpeed.Model.TypeModel.CheckEdition()
在 Mindscape.LightSpeed.Model.TypeModel.GetTypeModel(Type type)
在 . . (String , IdentifierExpression , Query )
在 Mindscape.LightSpeed.UnitOfWork.Calculate(String calculation, IdentifierExpression attribute, Query query)
在 Mindscape.LightSpeed.UnitOfWork.Count(Query query)
在 Mindscape.LightSpeed.Linq.Plan.SingleQueryPlan.<>cDisplayClass9. |
|
|
Is there any one can help? |
|
|
Thanks for reporting this, we have added in a candidate fix for this and this will be available in the next nightly build. Let us know if you continue to encounter this issue after updating.
|
|
|
Thank Jeremy. I used the last build(version 5.02411.0). Now It report "System.Security.VerificationException". I hope you can help me to check this. [VerificationException: 操作可能会破坏运行时稳定性。]
Mindscape.LightSpeed.Model.FieldModel.GetValidations(ICustomAttributeProvider fieldInfo) +178
Mindscape.LightSpeed.Model.FieldModel..ctor(FieldInfo fieldInfo, TypeModel owningTypeModel) +451
Mindscape.LightSpeed.Model.TypeModel.CreateFieldModel(FieldInfo fieldInfo) +1053
Mindscape.LightSpeed.Model.TypeModel.InitializeValueFields(IList [TargetInvocationException: 调用的目标发生了异常。] System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +136 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +549 System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35 Cokapp.SimpleMVC.ActionExecutor.ExecuteActionInternal(HttpContext context, InvokeInfo info) in ActionExecutor.cs:63 Cokapp.SimpleMVC.ActionExecutor.ExecuteAction(HttpContext context, InvokeInfo vkInfo) in ActionExecutor.cs:40 Cokapp.SimpleMVC.ActionHandler.ProcessRequest(HttpContext context) in ActionHandler.cs:18 Cokapp.SimpleMVC.SimpleMVCPageHandler.ProcessRequest(HttpContext context) in SimpleMVCPageHandler.cs:18 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +808 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165 |
|
|
Unfortunately this is caused by a known issue in the .NET framework (see: http://www.mindscapehq.com/forums/thread/3478 and https://connect.microsoft.com/VisualStudio/feedback/details/587594 for more detail). Try adding the following to your config to check if that resolves this for you:
Unfortunately as you will see on the Connect ticket Microsoft is not intending to fix this in a hurry if ever.
|
|