我將我的web項目發佈到Azure,當我在瀏覽器中將其拉出時,我看到下面的錯誤。 當我將Web ROLE發佈到Windows Azure時,我通過禁用IntelliTrace修復了相同的錯誤。但是我無法在發佈網頁設置中找到禁用它的位置。 http://www.windowsazure.com/media/devcenter/dotnet/dev-net-getting-started-039.png在Azure上發佈網頁。操作可能會使運行時不穩定MVC3
[VerificationException:操作可能破壞所述運行時] FluentValidation.AbstractValidator`1..ctor(c)中:\項目\ FluentValidation \ SRC \ FluentValidation \ AbstractValidator.cs:36 Poll.Areas.Shared .Validators.Account.LogOnValidator..ctor()in D:\ Code \ Poll \ Poll \ Areas \ Shared \ Validators \ Account \ LogOnValidator.cs:15
[TargetInvocationException:異常已被目標拋出調用。] System.RuntimeTypeHandle.CreateInstance(RuntimeType類型,布爾型publicOnly,布爾型noCheck,布爾值& canBeCached,RuntimeMethodHandleInternal &構造函數,布爾& bNeedSecurityCheck)0 System.RuntimeType.CreateInstanceSlow(布爾publicOnly,布爾skipCheckThis,布爾fillCache,StackCrawlMark & stackMark)113 System.RuntimeType.CreateInstanceDefaultCtor(布爾publicOnly,布爾skipCheckThis,布爾fillCache,StackCrawlMark & stackMark )232 System.Activator.CreateInstance(類型類型,布爾非公開)83 System.Activator.CreateInstance(類型類型)6 FluentValidation.Internal.InstanceCache.GetOrCreateInstance(類型類型,函數功能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__14 2.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.Hidden助手(的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
當我完成了我的網絡角色,它的工作。但我的網絡應用程序中有同樣的問題。而當我發佈它時,沒有這樣的屬性。 http://www.windowsazure.com/media/devcenter/dotnet/dev-net-getting-started-039.png 所以也許這與IntelliTrace沒有問題。 –