当地开始Azure项目时,调试器无法连接 [英] Debugger can't connect when starting local azure project

查看:142
本文介绍了当地开始Azure项目时,调试器无法连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,首先的;这里就是我所做的:

Ok, first of; here's what I did:


  1. 安装Azure工具

  2. 重新启动

  3. 启动Visual Studio - 新Azure项目

  4. 添加Web角色(asp.net MVC 4测试Web角色)

  5. 按F5(调试)

在启动存储模拟器和计算模拟器,并开始在运行时加载,然后我得到一个弹出说,调试器无法连接。

It starts up the storage emulator and the compute emulator and starts to load in runtimes, and then I get a popup saying that the debugger couldn't connect.

然后一些googeling后,我建议尽量不运行调试,看看我是否可以存取权限的应用程序运行应用程序。只有这样,我得到这样的:

Then after some googeling I'm suggested to try to run the application without running the debugger to see if I can acces the application. When I do I get this:

所以我想,IIS没有权限访问某些文件/目录。所以,我去IIS和查找应用程序池中运行的应用程序,它告诉我,使用的身份是网络服务,然后我去给网络服务完全权限,IIS已设置应用程序的文件夹的全部(这也恰好要的路径,项目目录)。我仍然得到同样的错误。现在我的想法有多有少,但我尽量做最后一件事情,这是也给IUSR完全权限同一目录,但这并没有帮助。

So I figure that IIS does not have permissions to access some file/directory. So I go to IIS and look up the application pool running the app, and it tells me that the identity in use is NetworkService, then I go give NetworkService full permissions to the entirety of the folder IIS has set for the application (which also happens to be the path to the project dir). Still I get the same error. Now I'm more or less out of ideas, but I try one last thing, which is to also give IUSR full permissions to the same dir, but this did not help either.

我怎么能去解决这个问题呢?我还没有真正尝试推出我的项目的Azure还没有,因为如果我甚至无法得到它的开发工作,我没有看到多少点。任何及所有帮助将是AP preciated。

How can I go about resolving this problem? I haven't tried actually launching my project to Azure yet, cause if I can't even get it to work in development I don't see much point. Any and all help would be appreciated.

推荐答案

今天我碰到了同样的错误卸载.NET 4.5 / Visual Studio中开发11 preVIEW,然后安装ASP.NET MVC 4 Beta版之后(这是之前当更新VS 2011 preVIEW滴2月29日)。

I ran into the same error today after uninstalling .NET 4.5/Visual Studio 11 Dev Preview, then installing ASP.NET MVC 4 Beta (this is before Feb 29th when the updated VS 2011 Preview drops).

由于我卸载了.NET 4.5,你只需要做一个为aspnet_regiis -i,以确保在.NET Framework(4.0)设置与IIS 7.x的这个工作对我来说。

Since I uninstalled .net 4.5, you just need to do an "aspnet_regiis -i" to ensure the .net framework (4.0) is set up with IIS 7.x this worked for me.

编辑:如果您卸载/然后手动安装Visual Studio 2012这将工作RTM以及

This will work if you uninstall/then manually install Visual Studio 2012 RTM as well.

这篇关于当地开始Azure项目时,调试器无法连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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