本文介绍了安全例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新到CTP5后收到此错误

I am receiving this error after update to CTP5

安全例外

[SecurityException:请求失败。]

   System.Data.Edm.EdmUtil.IsValidLanguageIndependentIdentifier(String name)+0

   System.Data.Edm.EdmUtil.IsValidUndottedName(String name)+57

   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelSyntacticValidationRules。< .cctor> b__2(EdmModelValidationContext context,EdmNamedMetadataItem item)+66

   System.Data.Edm.Validation.Internal.DataModelValidationRule`2.Evaluate(DataModelValidationContext context,DataModelItem item)+80

   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationVisitor.EvaluateItem(EdmDataModelItem item)+93

   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationVisitor.VisitEdmDataModelItem(EdmDataModelItem item)+34

   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmMetadataItem(EdmMetadataItem item)+19

   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmNamedMetadataItem(EdmNamedMetadataItem item)+10

   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmModel(EdmModel item)+20
$
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidator.Validate(EdmModel validateRoot,EdmModelValidationContext context)+118

   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationContext.Validate(EdmModel root)+73

   System.Data.Edm.Validation.Internal.DataModelValidator.Validate(EdmModel root,Boolean validateSyntax)+48

   System.Data.Edm.Serialization.CsdlSerializer.Serialize(EdmModel model,XmlWriter xmlWriter)+221

   System.Data.Entity.ModelConfiguration.Edm.EdmModelExtensions.Validate(EdmModel model)+274

   System.Data.Entity.ModelConfiguration.ModelBuilder.ValidateModel(EdmModel model)+ 149 $
   System.Data.Entity.ModelConfiguration.ModelBuilder.Build(DbProviderManifest providerManifest,DbProviderInfo providerInfo,Boolean validateModel)+273

   System.Data.Entity.ModelConfiguration.ModelBuilder.Build(DbConnection providerConnection)+172

[SecurityException: Request failed.]
   System.Data.Edm.EdmUtil.IsValidLanguageIndependentIdentifier(String name) +0
   System.Data.Edm.EdmUtil.IsValidUndottedName(String name) +57
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelSyntacticValidationRules.<.cctor>b__2(EdmModelValidationContext context, EdmNamedMetadataItem item) +66
   System.Data.Edm.Validation.Internal.DataModelValidationRule`2.Evaluate(DataModelValidationContext context, DataModelItem item) +80
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationVisitor.EvaluateItem(EdmDataModelItem item) +93
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationVisitor.VisitEdmDataModelItem(EdmDataModelItem item) +34
   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmMetadataItem(EdmMetadataItem item) +19
   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmNamedMetadataItem(EdmNamedMetadataItem item) +10
   System.Data.Edm.Internal.EdmModelVisitor.VisitEdmModel(EdmModel item) +20
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidator.Validate(EdmModel validateRoot, EdmModelValidationContext context) +118
   System.Data.Edm.Validation.Internal.EdmModelValidation.EdmModelValidationContext.Validate(EdmModel root) +73
   System.Data.Edm.Validation.Internal.DataModelValidator.Validate(EdmModel root, Boolean validateSyntax) +48
   System.Data.Edm.Serialization.CsdlSerializer.Serialize(EdmModel model, XmlWriter xmlWriter) +221
   System.Data.Entity.ModelConfiguration.Edm.EdmModelExtensions.Validate(EdmModel model) +274
   System.Data.Entity.ModelConfiguration.ModelBuilder.ValidateModel(EdmModel model) +149
   System.Data.Entity.ModelConfiguration.ModelBuilder.Build(DbProviderManifest providerManifest, DbProviderInfo providerInfo, Boolean validateModel) +273
   System.Data.Entity.ModelConfiguration.ModelBuilder.Build(DbConnection providerConnection) +172

推荐答案

看起来这将是一个错误,任何机会你都可以发布一些重现问题的代码?如果它是一个更大的项目,那么随时给我发电子邮件,rowmil'AT'microsoft'DOT'com。

Looks like this is going to be a bug, any chance you can post some code that reproduces the issue? If it is a bigger project then feel free to email a repro to me, rowmil 'AT' microsoft 'DOT' com.

~Rowan


这篇关于安全例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 14:56