我在 Windows Azure 中尝试了一些实验室,效果很好。因此,我开始使用 Azure Emulator 开发我的应用程序。
我今天在 Windows Azure 中执行了我的第一个部署测试,并遇到了第一个问题:
No connection could be made because the target machine actively refused it 127.0.0.1:10000
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:10000
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SocketException (0x274d): No connection could be made because the target machine actively refused it 127.0.0.1:10000]
System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +2724507
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +392
[WebException: Unable to connect to the remote server]
Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result() +96
Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait() +271
Microsoft.WindowsAzure.StorageClient.CloudBlobContainer.Delete(BlobRequestOptions options) +213
MyProject.Web.MvcApplication.InitBlobs() in C:\Sites\MyProject\MyProject\MyProject.Web\Global.asax.cs:85
MyProject.Web.MvcApplication.Application_Start() in C:\Sites\MyProject\MyProject\MyProject.Web\Global.asax.cs:52
这是第一次部署,所以我尝试删除一个不存在的容器。我现在处理异常。
我重新部署了我的项目并且没有收到任何服务器错误。它只是结束了连接并给我留下了这个错误:Error 324 (net::ERR_EMPTY_RESPONSE)
我假设我错过了配置中的某些内容,但我无法找到它的确切含义。
谢谢您的帮助!
编辑:部署本身是这个应用程序的第一个,但它不是我在 Windows Azure 上执行的第一个。当我开始为 Windows Azure 进行开发时,我已经部署了一些 msdn 实验室。