English 中文(简体)
我怎样才能让IIS快递公司 发射MVC3网络应用程序 与64位位三方DLLS
原标题:How do I get IIS Express to launch MVC3 web application with 64 bit 3rd party DLLS

I referenced a DLL in a MVC3 web application. It compiled successfully. MVC3 project is running as Any CPU configuration property. I launched IIS Express 7.5 and I keep seeing the DLL is missing its dependencies exception.

I then created a windows application and referenced the DLL and it worked fine. So I realise it s something to do with IIS Express setting.

Dll is 64 bit. Can you please guide me

问题回答

IIS Express 8 has a 64 bit and a 32 bit version, which are both installed on a 64 bit machine.
See this question on how to run IIS Express in 64 bit mode, and then attach to process to debug.

见以下问题 。IIS Express 7.5是一个32点的应用,所以无法用64位 DLLs来操作。视觉工作室开发服务器也是如此。

要运行您的网站, 您需要以完整版本的 IIS 运行 。 您可以在工程属性的网络部分选择“ 使用本地 IIS 网络服务器 ” 来设置它 。

IS Express 7. 5 仅作为32比特程序运行。 要运行 64比特 应用程序, 您应该使用完整版本的 IIS 。

  1. Make sure that build configuration is set to “Any CPU" for your MVC app.
  2. 并同时确保您的应用程序应用程序库设置以 64 位模式运行。运行以下命令来做到这一点

    appool/appool.name:/enable32BitAppOnWin64:false 设置 appool/appool.name:/enable32BitAppOnWin64:false





相关问题
Howto get started with C# 4.0 and .NET 4.0?

I don t want to download Visual Studio 2010. How can I start studying (not developing real applications) C# 4.0 and .NET 4.0 with just a text editor? Can I just download C# 4.0 compiler and .NET 4.0 ...

Mocking Framework with C# 4.0 Support?

Anybody know of a mocking framework that supports C# 4.0? Doesn t matter which one ATM, just need something that will work.

Unit Testing interface contracts in C#

Using the Code Contracts tools available in VS2010 Beta 2, I have defined an interface, a contract class for that interface and two classes that implement the interface. Now when I come to test the ...

How to Iterate Through Array in C# Across Multiple Calls

We have an application where we need to de-serialize some data from one stream into multiple objects. The Data array represents a number of messages of variable length packed together. There are no ...

IronPython ScriptRuntime equivalent to CPython PYTHONPATH

The following import works inside ipy.exe prompt but fails using IronPython ScriptRuntime inside a C# 4.0 program. import ConfigParser C# code: using System; using System.Collections.Generic; using ...

i cant understand the following code

Matrix<float> trainData2 = trainData.GetRows(intVar >> 1, intVar, 1); intVar is integer type... please help me to understand this code.

热门标签