标签: azure-web-roles

Azure BLOB存储 - 定价和速度"在数据中心内"

我很确定我知道答案,只是想确保我做对了.
来自Azure In Action:

在此输入图像描述

如果我使用位于我的WebRole中的WCF服务的CloudBlobClient来访问blob(读/写/更新),那么:

1)读/写/更新是作为交易收费还是免费?

2)如说明中所述,访问这些blob的速度是否快?

azure azure-storage azure-storage-blobs azure-web-roles

6
推荐指数
1
解决办法
2795
查看次数

编译MVC并预编译视图并部署到Azure WebRole

所以我有以下要求:1.编译一个大型MVC应用程序并预​​编译其所有视图.2.运行web.config的转换3.打包并发布以部署到Azure Web角色

我可以使用修改后的proj文件执行1,如果我使用msdeploy,则可以执行2次,当使用VS 2012 Azure工具时,3可以正常工作.现在我想把这些全部放在一个脚本化的过程中.

有人已经完成了这项工作吗?

asp.net-mvc azure msdeploy azure-web-roles asp.net-mvc-4

6
推荐指数
1
解决办法
1814
查看次数

由于没有可用的指标,因此Azure AutoScale失败通知

在过去的几天里,我们开始收到Azure发来的大量电子邮件,内容如下

学科:

[AUTOSCALE FAILED] - 由于没有可用的指标,service_name的自动调度任务失败

消息正文:

Autoscale has not been able to read any monitoring data ... We recommend monitoring the responsiveness and capacity of your service, to make sure that there are currently enough machines deployed to meet your goals. We will attempt to autoscale as soon as the role instances are available
Run Code Online (Sandbox Code Playgroud)

我们最近没有做出任何更改,所以我们不确定这意味着什么,或者我们是否应采取任何行动.任何人都可以对此有所了解吗?

azure azure-web-roles

6
推荐指数
2
解决办法
1264
查看次数

当我在Windows Azure上交换暂存和生产部署时,"错误:19 - 物理连接不可用"

每次我在Staging和Production之间交换部署时,都会遇到这种错误:

[Wed Oct 09 18:43:51.9519 +00:00 2013] [错误] [Zappiti.BaseApi]更新条目时发生错误.有关详细信息,请参阅内部异常

System.Data.Entity.Infrastructure.DbUpdateException:更新条目时发生错误.有关详细信息,请参阅内部异常 ---> System.Data.UpdateException:更新条目时发生错误.有关详细信息,请参阅内部异常 ---> System.Data.SqlClient.SqlException:从服务器接收结果时发生传输级错误.(提供者:会话提供者,错误:19 - 物理连接不可用)

在System.Data.SqlClient.SqlConnection.OnError(SqlException异常,Boolean breakConnection,Action`1 wrapCloseInAction)

在System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj,Boolean callerHasConnectionLock,Boolean asyncClose)

在System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj,UInt32错误)

在System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()

在System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()

在System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()

在System.Data.SqlClient.TdsParserStateObject.TryReadByte(字节和值)

在System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,SqlCommand cmdHandler,SqlDataReader dataStream,BulkCopySimpleResultSet bulkCopyHandler,TdsParserStateObject stateObj,Boolean&dataReady)

在System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds,RunBehavior runBehavior,String resetOptionsString)

在System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,Boolean async,Int32 timeout,Task&task,Boolean asyncWrite)

在System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,RunBehavior runBehavior,Boolean returnStream,String方法,TaskCompletionSource`1完成,Int32超时,任务和任务,布尔asyncWrite)

在System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1完成,String methodName,Boolean sendToPipe,Int32 timeout,Boolean asyncWrite)

在System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

在System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator转换器,EntityConnection连接,Dictionary 2 identifierValues, List1 generatedValues)

在System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager,IEntityAdapter adapter)

---内部异常堆栈跟踪结束---

在System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager,IEntityAdapter adapter)

在System.Data.Objects.ObjectContext.SaveChanges(SaveOptions选项)

在System.Data.Entity.Internal.InternalContext.SaveChanges()

---内部异常堆栈跟踪结束---

在System.Data.Entity.Internal.InternalContext.SaveChanges()

在Zappiti.BaseApi.PutVideo(PutVideo putVideo,Guid userId,String queueName,Boolean isBeta)

我使用TFS的标准Build Definition部署我的包. …

tfs azure tfsbuild azure-web-roles

6
推荐指数
1
解决办法
2248
查看次数

具有瞬态故障处理的Azure Web角色阻止例外:完全限定后路径太长

我们将云瞬态故障处理块应用于云服务的Web角色,我们甚至没有编写一个单行代码.当我们尝试在本地调试我们的云服务时,会在网页上显示异常,如下所示:

完全合格后路径太长.确保完整路径少于260个字符,目录名少于248个字符.

描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.

异常详细信息:System.IO.FileLoadException:完全限定后路径太长.确保完整路径少于260个字符,目录名少于248个字符.

程序集加载跟踪:以下信息有助于确定无法加载程序集"Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus"的原因.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.ServiceBus | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, …
Run Code Online (Sandbox Code Playgroud)

asp.net enterprise-library azure azure-web-roles azure-cloud-services

6
推荐指数
1
解决办法
1650
查看次数

在开发结构下运行时,Azure MVC Web角色不使用CSS

当我从Web运行应用程序本身或Azure部署时,我的页面使用CSS呈现,但是当在本地结构下运行Web角色时,我得到简单的"无CSS"样式页面.

我有两个问题:

  • 有人知道为什么会这样吗?
  • 调试类似问题的好方法是什么?

azure azure-web-roles

5
推荐指数
1
解决办法
884
查看次数

Webrole - 单个绑定上的多个hostHeader?

Azure中是否可以在单个Binding上具有多个hostHeader,或者是否必须为每个主机头创建一个Binding?

示例:

<Sites>
...
<Site name="sample.com" physicalDirectory="..\sample.com">
<Bindings>
    <Binding name="ep_sample" endpointName="Endpoint1" hostHeader="www.sample1.com,www.sample2.com,www.sample3.com" />
</Bindings>
</Sites>
Run Code Online (Sandbox Code Playgroud)

或者我是否必须为单个hostHeader创建每个绑定条目(知道站点路径是相同的)?

azure azure-web-roles azure-configuration

5
推荐指数
1
解决办法
1392
查看次数

将ASP.NET MVC 3 Web角色添加到Windows Azure项目时出现冲突的版本错误

安装Windows Azure Tools 1.4后,我收到以下错误,创建一个新项目:

检测到的ASP.NET网页版本存在冲突:指定版本为"1.0.0.0",但bin中的版本为"2.0.0.0".要继续,请从应用程序的bin目录中删除文件,或删除web.config中的版本规范.

azure visual-studio-2010 azure-web-roles asp.net-mvc-3

5
推荐指数
1
解决办法
8226
查看次数

我如何知道我的Azure角色实例VM是否已重新启动?

我有一个Azure Web角色.有时它会因异常或操作系统更新而被回收.这将包括或不包括VM重启.我想知道VM是重新启动还是只是WaIISHost.exe重新启动主机进程.

我怎样才能找到最简单的方法?

azure azure-web-roles

5
推荐指数
2
解决办法
3254
查看次数

cspack.exe是否支持.NET 4.6 *?

根据针对.NET和API的Azure SDK的支持和退休信息,SDK 2.6引入了对.NET 4.6的支持。尽管姐妹文章“ 在云服务角色上安装.NET”包括显式安装.NET 4.6.2的安装脚本,暗示Web /工作者角色支持该脚本,但列出的SDK均未明确提及4.6.2 。

当我尝试将解决方案从.NET 4.5.1(使用Azure SDK 2.8)升级到.NET 4.6.2时,我还修改了RoleProperties.txt文件,其中包括以下几行:

TargetFrameWorkVersion=v4.5.1 RoleTargetFramework=v4.5.1

TargetFrameWorkVersion=v4.6.2 RoleTargetFramework=v4.6.2

在调用后导致以下错误cspack.exe

不支持的.Net Framework v4.6.2

我尝试将更4.6.2改为简单4.6,但同样失败。

所以我的问题是:

  1. 您如何正确使用.NET 4.6.2 cspack.exe
  2. 是否有必要将这些属性设置为4.6*或是否可以安全地保留它们,4.5.1因为您cspack.exe不会抱怨?

azure azure-web-roles cspack .net-4.6

5
推荐指数
0
解决办法
393
查看次数