如何使用 VS2010 在开发服务器上测试将我的 ASP.NET Web 应用程序作为 64 位进程运行? [英] How do I test running my ASP.NET web app as a 64-bit process on a development server with VS2010?

查看:41
本文介绍了如何使用 VS2010 在开发服务器上测试将我的 ASP.NET Web 应用程序作为 64 位进程运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务很简单:我需要在我的开发机器上的 64 位环境中测试我的 ASP.NET Web 应用程序.(此时我什至不问是否通过调试器运行它.我需要的只是在 64 位进程中运行它.)

My task is simple: I need to test my ASP.NET web application in a 64-bit environment on my development machine. (At this point I don't even ask about running it through a debugger. All I need is to run it in a 64-bit process.)

所以我在 Visual Studio 2010 中创建了一个股票 C# Web 应用程序并调整了它的属性:

So I created a stock C# Web Application in Visual Studio 2010 and adjusted its properties as such:

然后我按 Ctrl+F5(或在不调试的情况下运行)和 IE 加载并挂断如下:

I then did Ctrl+F5 (or run without debugging) and IE loaded up and hangs up like so:

我在这里做错了什么?

附注.在 Windows 7 Ultimate(64 位)上运行.

PS. Running it on Windows 7 Ultimate (64-bit).

推荐答案

我们遇到了同样的问题,当团队跳转到 Visual Studio 2012 时,这个注册表项对我们非常有用:

We had the same problem and when the team jumped to Visual Studio 2012, this registry key was really useful to us :

您可以添加一个注册表项来强制 Visual Studio 使用 64 位版本的 iisexpress.exe ;不幸的是,它是 VS2012 的唯一解决方案.

you can add a registry key to force visual studio to use the 64 bits version of iisexpress.exe ; unfortunately for you, it is a VS2012-only solution.

reg add HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0WebProjects
    /v Use64BitIISExpress /t REG_DWORD /d 1

然后重新启动 Visual Studio 并在您的设置中勾选 [X] 使用 IIS Express.

Then restart Visual Studio and tick [X] Use IIS Express in your settings.

(另见 来源).

更新:作为参考,在 Visual 2013 中,可以在界面中找到此选项:Options/Projects and Solutions/Web Projects/将 64 位版本的 IIS Express 用于网站和项目

UPDATE: For reference, in Visual 2013, this option can be found in the interface : Options/Projects and Solutions/Web Projects/Use the 64 bit version of IIS Express for web sites and projects

这篇关于如何使用 VS2010 在开发服务器上测试将我的 ASP.NET Web 应用程序作为 64 位进程运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆