备份应用程序不起作用

时间:2018-04-13 08:17:17

标签: iis

我有两台安装并配置了IIS 7的服务器。例如,将这些服务器称为web1和web2。我的任务是备份名为" site1"从web1到web2。任务完成了,但现在当我打开site1时,我收到了这个错误堆栈:

Exception information: System.Diagnostics.Contracts.ContractException: Statement error: primitiveType != null

    Stacktrace: 


    [ContractException: Ошибка в утверждении: primitiveType != null]
       System.Runtime.CompilerServices.ContractHelper.TriggerFailureImplementation(ContractFailureKind kind, String displayMessage, String userMessage, String conditionText, Exception innerException) +5643014
       System.Data.Entity.ModelConfiguration.Utilities.RuntimeFailureMethods.ReportFailure(ContractFailureKind contractFailureKind, String userMessage, String conditionText, Exception innerException) +298
       System.Data.Entity.ModelConfiguration.Utilities.TypeExtensions..cctor() +169

    [TypeInitializationException: Инициализатор типа "System.Data.Entity.ModelConfiguration.Utilities.TypeExtensions" выдал исключение.]
       System.Data.Entity.ModelConfiguration.Utilities.TypeExtensions.IsValidStructuralType(Type type) +0
       System.Data.Entity.Internal.DbSetDiscoveryService.GetSets() +528
       System.Data.Entity.Internal.DbSetDiscoveryService.InitializeSets() +24
       DomainModel.Concrete.SqlPageRepository..ctor(String connectionString) +36

    [TargetInvocationException: Адресат вызова создал исключение.]
       System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
       System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +662
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +322

    [ComponentActivatorException: ComponentActivator: could not instantiate DomainModel.Concrete.SqlPageRepository]
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +586
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) +82
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) +29
       Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) +23
       Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleManager.Resolve(CreationContext context) +133
       Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context) +102
       Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency) +749
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context, Type[]& signature) +337
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) +60
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) +29
       Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) +23
       Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context) +102
       Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) +46
       WebUI.WindsorControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +25
       System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +81
       System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +280
       System.Web.Mvc.<>c__DisplayClass6.<BeginProcessRequest>b__2() +80
       System.Web.Mvc.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a() +19
       System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Func`1 func) +128
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12288259
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

我完全不知道如何在IIS中修复它,而不是在代码中。如果您有任何想法,请帮助我! :C

0 个答案:

没有答案