Azure - 启动多个 Web 角色项目时出错

发布于 2024-10-09 08:24:45 字数 437 浏览 2 评论 0原文

如果我的应用程序中有多个 Web 角色(项目,而不是实例),我会收到此错误:(只有在附加 Web 角色时才会出现此错误。它可以与我想要的多个辅助角色项目一起正常工作)

Microsoft Visual Studio

适用于 Microsoft Visual Studio 的 Windows Azure 工具

将调试器附加到角色实例“deployment(21).CloudPOC.WebRoleToHostDataService.0”的 URL“http://127.0.0.1:5100/”的 IIS 工作进程时出错。无法在 Web 服务器上启动调试。 Web 服务器配置不正确。请参阅帮助以了解常见配置错误。在调试器外部运行网页可能会提供更多信息。

单击“帮助”以获取更多信息。

好的,

这里有什么问题吗?我无法理解它,我需要一个网络服务项目!

If I have more than one webroles(projects, not instances) in my application, I get this error: (I only get it if I attach a web role. It works fine wit as many worker roles projects as I want)

Microsoft Visual Studio

Windows Azure Tools for Microsoft Visual Studio

There was an error attaching the debugger to the IIS worker process for URL 'http://127.0.0.1:5100/' for role instance 'deployment(21).CloudPOC.WebRoleToHostDataService.0'. Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.

Click Help for more information.

OK

What is wrong here? I can't understand it and I need a webservice project!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风筝有风,海豚有海 2024-10-16 08:24:45

确保您正在启动 Azure 项目而不是 Web 项目本身。您可能已将 Web 角色设置为启动项目,如果这样做,您会发现 IIS 运行 Web 应用程序而不是 Azure Dev Fabric,这意味着任何 Dev Fabric 特定的内容(例如每个角色的配置设置)都不会运行。可用导致问题。

您要做的就是让 Azure Dev Fabric(计算模拟器)为您启动所有角色,它还会确定是否需要打开 Web 浏览器等。

因此,右键单击 Azure Cloud 项目,将其设置为启动项目,然后重试。

希望有帮助,
安迪

编辑想到了其他东西!

确保您的 web.config 正在编译以允许 debug="true"。如果您已将新网站添加到解决方案中,则默认情况下不会如此:


<编译debug=“true”targetFramework=“4.0”/>

Make sure you are starting the Azure project rather than the Web Project itself. You might have set the Web Role as the startup project, and if you do that you'll find that IIS runs the Web App rather than the Azure Dev Fabric, meaning any Dev Fabric specific stuff (like config settings per role) aren't available causing problems.

What you're meant to do is let the Azure Dev Fabric (Compute Simulator) fire up all your roles for you, and it'll also work out if it needs to open a web browser etc.

So right click on the Azure Cloud project, set that as the Startup Project, and try again.

Hope that helps,
Andy

EDIT thought of something else!

Make sure your web.config is compiling to allow debug="true". If you have added a new WebSite to your solution, it won't be so by default:

<system.web>
<compilation debug="true" targetFramework="4.0" />

聆听风音 2024-10-16 08:24:45

我遇到了类似的问题,通过以下步骤解决了。

  1. 确保您安装了正确版本的.net Framework 4.0。 (.Net Framework 4.0.30319 是最新版本)

  2. 如果系统上存在任何其他 .Net 4.0 框架,请通过“添加和删除程序”进行卸载。

  3. 转到 %windir%\Microsoft.NET\Framework64 物理位置并删除不需要的 .Net Framework 4.0 文件夹

I had similar issue which got resolved with following steps.

  1. Make sure you have correct version of .net framework 4.0 is intalled. (.Net Framework 4.0.30319 is the latest version)

  2. Uninstall if there isany other .Net 4.0 framework in present on your system by going to Add And Remove programs.

  3. Go to %windir%\Microsoft.NET\Framework64 physical location and remove unwanted .Net framework 4.0 folder

土豪我们做朋友吧 2024-10-16 08:24:45

我也遇到了这个问题,当我将应用程序升级到 4.0 时,它发生了...我在没有调试的情况下运行并收到以下错误:

定义了重复的“system.web.extensions/scripting/scriptResourceHandler”部分

并经过研究那个错误,我发现了这个:
http://forums.asp.net/t/1571308.aspx/1

上面说目前 vs2010 和 4.0 存在一个错误...我采纳了答案建议并注释掉了扩展部分,它对我有用...另一个可能的解决方案。

I've also had this problem and it happened when I upgraded my app to 4.0... I ran without debugging and got the following error:

There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined

and after researching that error, I found this:
http://forums.asp.net/t/1571308.aspx/1

which says there's currently a bug w/ vs2010 and 4.0... I took the answers recommendation and commented out the extensions section and it worked for me... Another possible solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文