asp.net – 无法加载文件或程序集“Microsoft.TeamFoundation.WorkItemTracki
发布时间:2020-05-23 17:51:32 所属栏目:asp.Net 来源:互联网
导读:我正在与一个与TFS进行交互的Web应用程序。当我将应用程序上传到Windows Azure云时,我收到此错误消息。 感谢您的投入,以解决这个问题。 粘贴在下面是我收到的错误信息 Server Error in / Application.----------------------------------------------------
|
我正在与一个与TFS进行交互的Web应用程序。当我将应用程序上传到Windows Azure云时,我收到此错误消息。 感谢您的投入,以解决这个问题。 粘贴在下面是我收到的错误信息 Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies. An attempt was made to load a program with an incorrect format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies. An attempt was made to load a program with an incorrect format. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' could not be loaded. WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging,set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off,remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog]. Stack Trace: [BadImageFormatException: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,Boolean suppressSecurityChecks) +567 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Boolean forIntrospection) +192 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective) +123 [ConfigurationErrorsException: Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName,Boolean starDirective) +11568240 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +485 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +79 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +337 System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager,IApplicationHost appHost,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,Exception appDomainCreationException) +1167 [HttpException (0x80004005): Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies. An attempt was made to load a program with an incorrect format.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11700976 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context) +4869205 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 解决方法这是因为您的项目正在尝试在64位环境(azure)中使用32位dll要解决这种类型的问题,请使用以下给定的命令创建一个启动脚本 将启动脚本复制到文本文件,并另存为“setup.cmd”。 <webrole > --your webrole
<Startup>
<Task commandLine="setup.cmd" executionContext="elevated" />
</Startup>
</webrole >
启动脚本粘贴如下: %windir%system32inetsrvappcmd set config -section:system.applicationHost/applicationPools /applicationPoolDefaults.enable32BitAppOnWin64:"True" /commit:apphost (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- .net – SqlDataSource与ObjectDataSource
- ASP.Net MVC Cookies不会持续存在
- asp.net-mvc – 可在LAN中远程访问的IIS页面,但不能在服务器
- asp.net核心 – ASP.Net MVC 6中使用Tag Helpers的优点是什
- asp.net 使用驻留在页面中的Cache缓存常用可定时更新的数据
- 使用ASP.NET Web API 2.1配置依赖注入
- ASP MVC C#:是否可以将动态值传递给属性?
- asp.net-mvc – 在活动的SignalR连接期间更改用户身份 – 如
- asp.net – 如何更改FileUpload控件(System.Web.UI.WebCont
- asp.net – 如何创建一个HTML Helper来扩展TextBoxFor()以添
推荐文章
站长推荐
- asp.net-mvc – 当前动作是ChildAction吗?
- ASP.NET Server.HtmlEncode限制
- asp.net-core – 如何在使用asp.net 5时更改登录
- 如何决定哪个是正确的,WebForms或MVC做ASP.NET时
- asp.net-mvc – 如何在视图上下文之外获取ModelM
- asp.net-mvc – ASP MVC Razor视图扩展方法,如何
- asp.net – 多个项目Visual Studio 2015 npm
- ASP.Net WebAPI与Ajax进行跨域数据交互时Cookies
- asp.net – 我可以通过编程方式禁用更新面板吗?
- asp.net-mvc – 使用MVC3 WebGrid助手向html属性
热点阅读
