Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net Windows Azure:无法加载文件或程序集';Microsoft.TeamFoundation.WorkItemTracking.Client.Cache';_.net_Asp.net Mvc_Azure - Fatal编程技术网

.net Windows Azure:无法加载文件或程序集';Microsoft.TeamFoundation.WorkItemTracking.Client.Cache';

.net Windows Azure:无法加载文件或程序集';Microsoft.TeamFoundation.WorkItemTracking.Client.Cache';,.net,asp.net-mvc,azure,.net,Asp.net Mvc,Azure,我正在尝试在Windows Azure计算仿真程序中调试ASP MVC应用程序,在应用程序启动之前,我遇到以下错误。我的配置如下: Windows 8 x64 WindowsAzure计算仿真程序(本地调试) IIS express(这很重要,因为错误是由此进程引发的) 我读过一些其他的文章,问题似乎是兼容性问题 本文中的解决方案是将IIS配置为允许32位应用程序,但我不知道如何配置IIS Express来实现这一点 以下是详细的错误: Server Error in '/' Applica

我正在尝试在Windows Azure计算仿真程序中调试ASP MVC应用程序,在应用程序启动之前,我遇到以下错误。我的配置如下:

  • Windows 8 x64
  • WindowsAzure计算仿真程序(本地调试)
  • IIS express(这很重要,因为错误是由此进程引发的)
我读过一些其他的文章,问题似乎是兼容性问题

本文中的解决方案是将IIS配置为允许32位应用程序,但我不知道如何配置IIS Express来实现这一点

以下是详细的错误:

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.

=== Pre-bind state information ===
LOG: User = TITANIUM\Administrator
LOG: DisplayName = Microsoft.TeamFoundation.WorkItemTracking.Client.Cache
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Microsoft.TeamFoundation.WorkItemTracking.Client.Cache | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///C:/workspace2/01nerva/src/client/webui/Codice.Web.Client/
LOG: Initial PrivatePath = C:\workspace2\01nerva\src\client\webui\Codice.Web.Client\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\workspace2\01nerva\src\client\webui\Codice.Web.Client\web.config
LOG: Using host configuration file: C:\Program Files\IIS Express\config\templates\PersonalWebServer\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/cf250a6c/39ae37b/Microsoft.TeamFoundation.WorkItemTracking.Client.Cache.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/Temporary ASP.NET Files/root/cf250a6c/39ae37b/Microsoft.TeamFoundation.WorkItemTracking.Client.Cache/Microsoft.TeamFoundation.WorkItemTracking.Client.Cache.DLL.
LOG: Attempting download of new URL file:///C:/workspace2/01nerva/src/client/webui/Codice.Web.Client/bin/Microsoft.TeamFoundation.WorkItemTracking.Client.Cache.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

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, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

[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) +12759734
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +503
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +142
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +203
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +152
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[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) +12880068
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257

对于
Microsoft.TeamFoundation.WorkItemTracking.Client.Cache
程序集,是否有
CopyLocal=true
?另外,我相信Azure emulator使用的是完整的IIS,而不是IIS Express