我将我的 Web 项目发布到 Azure,当我在浏览器中将其拉起时,我看到了以下错误。当我将 Web ROLE 发布到 windows azure 时,我通过禁用 IntelliTrace 修复了相同的错误。但我找不到在发布网络设置中禁用它的位置。 http://www.windowsazure.com/media/devcenter/dotnet/dev-net-getting-started-039.png
[VerificationException:操作可能会破坏运行时。] FluentValidation.AbstractValidator`1..ctor() in c:\Projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:36 Poll.Areas.Shared.Validators.Account.LogOnValidator.. D:\Code\Poll\Poll\Areas\Shared\Validators\Account\LogOnValidator.cs:15 中的 ctor()
[TargetInvocationException: 调用目标抛出异常。] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +113 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.Activator.CreateInstance (类型类型)+6 FluentValidation.Internal.InstanceCache.GetOrCreateInstance(类型类型,Func 2 factory) in c:\Projects\FluentValidation\src\FluentValidation\Internal\InstanceCache.cs:58
FluentValidation.Internal.InstanceCache.GetOrCreateInstance(Type type) in c:\Projects\FluentValidation\src\FluentValidation\Internal\InstanceCache.cs:37
FluentValidation.Attributes.AttributedValidatorFactory.GetValidator(Type type) in c:\Projects\FluentValidation\src\FluentValidation\Attributes\AttributedValidatorFactory.cs:48
FluentValidation.Mvc.FluentValidationModelValidatorProvider.GetValidators(ModelMetadata metadata, ControllerContext context) in c:\Projects\FluentValidation\src\FluentValidation.Mvc3\FluentValidationModelValidatorProvider.cs:75
System.Web.Mvc.<>c__DisplayClass7.<GetValidators>b__6(ModelValidatorProvider provider) +21
System.Linq.<SelectManyIterator>d__14
2.MoveNext() +234 System.Linq.d__142.MoveNext() +397
System.Web.Mvc.HtmlHelper.GetUnobtrusiveValidationAttributes(String name, ModelMetadata metadata) +297
System.Web.Mvc.Html.InputExtensions.InputHelper(HtmlHelper htmlHelper, InputType inputType, ModelMetadata metadata, String name, Object value, Boolean useViewData, Boolean isChecked, Boolean setId, Boolean isExplicitValue, IDictionary
2 htmlAttributes)+794 System.Web.Mvc.Html.InputExtensions.HiddenHelper(HtmlHelper htmlHelper,ModelMetadata 元数据,对象值,布尔 useViewData,字符串表达式,IDictionary 2 htmlAttributes) +124
System.Web.Mvc.Html.InputExtensions.HiddenFor(HtmlHelper
1 htmlHelper,表达式1 expression, IDictionary
2 htmlAttributes)+90 System.Web.Mvc.Html。 InputExtensions.HiddenFor(HtmlHelper 1 htmlHelper, Expression
1 表达式) +54