问题标签 [azure-compute-emulator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
97 浏览

azure - Is it possible to query for VIP (with endpoint ports) both in emulated compute environment and in cloud "cleanly"?

I have two Web Roles, another of which provides a data API an another one hosts a frontend www site and then some compute roles that produce data.

What I would like to achieve is in the www Web Role to query the VIP of the data API Web Role by running a query function that abstracts the details if I'm running locally or in Azure. It looks like querying the PublicIPEndpoint would work in Azure, but not locally. The need would be such that I could further give out, say, some URL constants for JavaScript.

Is there a better way than to hardcode some string or, say, read the .csdef file with a relative path and take it from there?

In code crudely something like

0 投票
3 回答
3391 浏览

c# - 是什么导致 Azure SDK 2.4 出现“角色实例花费的时间比预期的长”错误?

尝试使用单个 Worker 角色启动我的 Azure 项目时,我收到了臭名昭著的“角色实例花费的时间比预期的长”错误。它以前可以工作,但在两个调试会话之间没有任何明显原因就开始失败。

我尝试使用新的 Azure 项目和默认的 Worker 角色创建一个全新的解决方案,但也无法启动。

我发现了许多其他 SO 问题和讨论该主题的论坛帖子,但其中大多数已经过时,而且他们的建议都没有奏效。

我在事件日志中没有找到相关消息,我发现的唯一错误消息是在 中C:\Users\username\AppData\Local\dftmp\EmulatorRuntimeLogs\ErrorRuntime.log,它包含很多这样的行:

Compute Emulator 中角色的输出会无限期地显示以下日志:

您对最新 2.4 版本的 Azure SDK 可能导致此错误有什么建议吗?

0 投票
2 回答
1940 浏览

azure - 如何查看 Azure Compute Emulator 生成的错误

我有一个 WCF 服务解决方案,其中包含 WCF 服务和一个 Azure 云服务项目。

在 Azure Compute Emulator(我的 PC 上的 2.5 版)中运行云服务项目时,我在每个角色的输出中看到的只是

[面料] 角色状态忙碌

[面料] 角色状态已中止

我已将 Compute Emulator 中的日志记录级别调整为 log WarningError甚至尝试过Critical,但没有显示更详细的消息。我一直在谷歌搜索以查看磁盘上是否有任何事件日志条目或日志文件,我可以查看以找出云服务不工作的原因,但无济于事。

我可以做些什么来详细了解导致云服务角色中止和重试的原因?

0 投票
1 回答
529 浏览

azure - 本地 Azure 云服务(模拟器)将无法运行

我有一台新计算机,虽然云项目在我的旧计算机(Azure SDK 2.4,VS 2013)上运行,但它拒绝在新计算机上运行。

我已经安装了以下内容:

  1. 2015 Ultimate CTP 安装和 Azure 2.5 sdk(没用)
  2. 2013 Premium & Azure 2.5 sdk(所以尝试使用这个代替 - 没有骰子)

  3. 此外,我创建了一个新的云项目并将站点添加到其中。

  4. 如果 MVC 站点是启动项目,它将运行。

  5. 文档与 OneDrive 同步,但我已将所有文件设为离线可用。

  6. 尝试安装常规 IIS,包括开发功能。将云项目切换为使用 IIS,但它仍然会爆炸。

使用 IISExpress 时,这是我得到的错误。

C:\Program Files\IIS Express\iisexpress.exe" /trace:error /config:"C:\Users\<>\AppData\Local\dftmp\Resources\<>\temp\temp\RoleTemp\applicationHost.config < -- 该文件丢失。

尝试手动将 applicationHost.config 重新添加到上述文件夹中,会导致该文件被立即删除。

我在这上面花了太多时间,我已经不知所措了。有没有想过我可能还缺少什么?

==================================================== ===========

创建了虚拟机,安装了 VS2013 和 2.5 sdk,仍然无法部署。

0 投票
2 回答
1164 浏览

c# - 安装 Azure SDK 2.5 后如何运行 Azure 2.2 项目

安装 Azure SDK 2.5(与 2.4 和 2.2 并排)后,我无法在本地运行我的 2.2 项目。我收到以下错误:

Windows Azure 工具:错误:安装的 Microsoft Azure Compute Emulator 不支持角色二进制文件。请安装最新的 Microsoft Azure Compute Emulator,然后重试。

看起来计算模拟器 2.5 取代了 2.2,而不是并排运行。

我试图安装 2.2 计算模拟器,但我得到了一个

已安装此产品的较新版本

有没有办法可以在同一台机器上同时运行 2.5 和 2.2 项目?

0 投票
1 回答
3329 浏览

azure - 在 Visual Studio 2013 中调试时 Azure Compute Emulator 不启动,保持关闭状态

今天连续发生了好几次这种情况。我按下 F5 以使用模拟器在 Visual Studio 2013 中调试我的 Windows Azure 项目,该项目将构建,但没有启动浏览器。也没有构建错误,它只会完成构建并且看起来已经准备好启动浏览器,但然后就停止了。

最后,我在 Visual Studio 的左下方状态栏中看到一条消息,上面写着“计算模拟器关闭”。然后我将鼠标悬停在任务栏中的 Azure 图标上,它显示“存储模拟器已启动”,但“计算模拟器已关闭”。

0 投票
1 回答
225 浏览

asp.net-mvc - 使用 Azure Compute 模拟器的 Request.URL 中的端口不正确

我正在使用 VS 2013。IIS 8.0 Express 和 Azure .NET SDK v2.2

通过一个简单的 WebAPI 模板项目,我可以重现这一点。当我在 azure 计算模拟器中本地调试项目时,它会以https://127.0.0.1. 但是,在请求中,URI 带有端口 444。

此错误是否有任何已知的修复/解决方法?

我可以在以下页面上为其他人找到类似的问题,但他们的解决方法对我不起作用。Request 对象或 Request.RequestContext.HttpContext.Request 对象中的任何内容都没有正确的 URL。例如,如果我尝试打开https://127.0.0.1:444/,我会收到“找不到页面”错误。

  1. mvc 4 windows Azure Request.Url中的端口号错误

  2. Request.Url 有错误的端口信息

谢谢!

0 投票
1 回答
385 浏览

azure - Azure Compute emulator v2.5.0.0 - IP address and port (public port in v2.5) walking

  1. The documentation says – prior to Azure SDK 1.5, web role deployments were allocated at the same IP address – 127.0.0.1, different port numbers used to differentiate the web roles. Do this behavior is back now? I noticed my web roles deployed under the same IP address with difference in port numbers.

  2. I’m consistently getting port remapping if the app run for the first time after machine reboot. On further investigation I noticed the below things.

    • If machine rebooted without exiting Compute Emulator then the ports in which the web roles previously deployed are NOT getting released. Find the output of netstat below after machine reboot. This make the compute emulator to find the port (8070) mentioned in csdef as busy and consider for remapping on next deployment. Say if we exit compute emulator or do csrun.exe removeall/clean/shutdown from commandline before restart then it all the ports used to deploy the services are released.

netstat -aon | findstr 8070

Proto Local Address Foreign Address State PID

TCP 0.0.0.0:8070 0.0.0.0:0 LISTENING 4

TCP [::]:8070 [::]:0 LISTENING 4

TASKLIST /FI "PID eq 4"

Image Name PID Session Name Session# Mem Usage

System 4 Services 0 288 K

  • The service is not available at the expected address (ip:port) due to this remapping of port for the above scenario in Azure SDK 2.5. Remapping happening in Azure SDK 2.1 too but only private port got affected and the app worked as the public port remain unchanged. But with Azure SDK 2.5 – the public port got remapped which results in app failure. Find the below screen capture of csrun.exe /run [pack details] in both Azure SDK 2.1 and 2.5

csrun comparison between 2.1 & 2.5 Azure SDKs

Do you recommend a solution to fix this issue?

0 投票
1 回答
1625 浏览

azure - 如何连接到本地计算机上的 Azure Compute Emulator

我有一个作为云服务运行的 WorkerRole。我想调试它,因为当我在 Azure 上调用服务时,调用应用程序会挂起。

我尝试将调试器附加到远程服务,但它在 90 分钟无操作后超时。所以,我的下一步是使用模拟器在本地运行服务,我现在正在这样做。

我正在运行模拟器,但我不知道如何连接到这个本地服务以及端点是什么。有人可以帮忙吗?

0 投票
1 回答
226 浏览

azure - 模拟器无法在 Azure 虚拟机上运行(Windows 10)

下载了通用 Windows 10 应用程序示例....构建了地理位置应用程序并遇到了模拟器问题:

在此处输入图像描述