2

从 Visual Studio 启动默认 mvc 项目时遇到问题。我尝试更改 _CSRUN_STATE_DIRECTORY 并重新安装 azure sdk。但仍然没有效果。

DFFabric 日志:

---
2012-7-10T4:57:53.252, 1, 1, Information, 201523206, Loading Providers`
---
2012-7-10T4:57:53.267, 2, 1, Information, 201523231, Done reading configuration from {0}`C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devfabric\DevFC.exe.Config`
---
2012-7-10T4:57:53.271, 3, 1, Information, 201523243, Loading Configuration.`
---
2012-7-10T4:57:53.352, 4, 1, Information, 201523233, {0} file not found in CWD. Extracting from dll resources.`Fabric.StockBindings.xml`
---
2012-7-10T4:57:53.356, 5, 1, Information, 201523242, Loading binding configuration.`
---
2012-7-10T4:57:53.373, 6, 1, Information, 201523242, Total {0} binding configurations loaded.`19`
---
2012-7-10T4:57:53.373, 7, 1, Information, 201523242, Loading binding configuration.`
---
2012-7-10T4:57:53.378, 8, 1, Information, 201523242, Total {0} binding configurations loaded.`19`
---
2012-7-10T4:57:53.379, 9, 1, Information, 201523234, {0} file not found in CWD. Extracting from dll resources.`Fabric.StockBehaviors.xml`
---
2012-7-10T4:57:53.381, 10, 1, Information, 201523241, Loading service behavior configuration.`
---
2012-7-10T4:57:53.386, 11, 1, Information, 201523241, Total {0} service behavior configurations loaded.`2`
---
2012-7-10T4:57:53.386, 12, 1, Information, 201523241, Loading endpoint behavior configuration.`
---
2012-7-10T4:57:53.386, 13, 1, Information, 201523241, Total {0} endpoint behavior configurations loaded.`0`
---
2012-7-10T4:57:53.386, 14, 1, Information, 201523241, Loading service behavior configuration.`
---
2012-7-10T4:57:53.386, 15, 1, Information, 201523241, Total {0} service behavior configurations loaded.`2`
---
2012-7-10T4:57:53.386, 16, 1, Information, 201523241, Loading endpoint behavior configuration.`
---
2012-7-10T4:57:53.386, 17, 1, Information, 201523241, Total {0} endpoint behavior configurations loaded.`0`
---
2012-7-10T4:57:53.386, 18, 1, Information, 201523243, Done Loading Configuration.`
---
2012-7-10T4:57:53.386, 19, 1, Information, 201523232, AppConfig Config Source deleting its artifacts.`
---
2012-7-10T4:57:53.386, 20, 1, Information, 201523232, Deleting AppConfig Config Source artifact {0}`C:\Users\KochekovskySA\AppData\Local\Temp\Fabric.StockBindings.xmlea27fd29-6349-47dc-93ba-bd14d830a8fd`
---
2012-7-10T4:57:53.386, 21, 1, Information, 201523232, Deleting AppConfig Config Source artifact {0}`C:\Users\KochekovskySA\AppData\Local\Temp\Fabric.StockBehaviors.xml9dc12dcd-2f6d-43ca-9769-3a496e71cc90`
---
2012-7-10T4:57:53.390, 22, 1, Information, 201523206, CommunicationFramework initialized with configuration source type: {0}`AppConfig`
---
2012-7-10T4:57:53.436, 23, 4, Information, 201523202, CreateService called for {0}`Microsoft.ServiceHosting.Tools.DevelopmentFabric.NetworkInformation.PxeDHCPResponder`
---
2012-7-10T4:57:53.441, 24, 4, Information, 201523202, Logging event CommFxServiceHostCreated with params: ServiceName={0} `Microsoft.ServiceHosting.Tools.DevelopmentFabric.NetworkInformation.PxeDHCPResponder`
---
2012-7-10T4:57:53.456, 25, 4, Information, 201523251, GetServiceBehaviors called for behavior config {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.456, 26, 4, Verbose, 201523249, GetServiceBehaviorConfiguration called for configuration {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.457, 27, 4, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.457, 28, 4, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.457, 29, 4, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.457, 30, 4, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.458, 31, 4, Information, 201523253, Ignoring the DataContractSerializerServiceBehavior.`
---
2012-7-10T4:57:53.458, 32, 4, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.458, 33, 4, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.459, 34, 4, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.459, 35, 4, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.459, 36, 4, Information, 201523251, Returning {0} service behaviors for the behavior config {1}`4`FabricServiceBehavior`
---
2012-7-10T4:57:53.460, 37, 4, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.461, 38, 4, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`PxeNetTcpBinding`
---
2012-7-10T4:57:53.461, 39, 4, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.461, 40, 4, Information, 201523257, Applying configuration {0} to binding type {1}`PxeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.463, 41, 4, Information, 201523203, StartService called for {0}`Microsoft.ServiceHosting.Tools.DevelopmentFabric.NetworkInformation.PxeDHCPResponder`
---
2012-7-10T4:57:53.464, 42, 4, Verbose, 201523225, ServiceHost.Open called for service {0}.`PxeDHCPResponder`
---
2012-7-10T4:57:53.464, 43, 4, Information, 201523225, Logging event CommFxServiceHostOpened with params: ServiceName={0} `PxeDHCPResponder`
---
2012-7-10T4:57:53.519, 44, 1, Information, 49153, Node 27c0ade8-285e-4250-b10d-cabc5daccfef BeginWorkflow, : Reset workflow from {0}`BeginWorkflow`
---
2012-7-10T4:57:53.525, 45, 1, Warning, 49171, Node 27c0ade8-285e-4250-b10d-cabc5daccfef: Set agent version to unknown. Skip building dependency graph.`
---
2012-7-10T4:57:53.525, 46, 1, Information, 0, LogicalNode`Initializing Logical Node`
---
2012-7-10T4:57:53.532, 47, 1, Information, 201523208, CreateClient called for contract {0} with bindingConfigName {1} and IP endpoint {2}`RD.Fabric.Controller.IAgent`LargeNetTcpBinding`net.tcp://localhost:15098/dfagent/1/host`
---
2012-7-10T4:57:53.532, 48, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.532, 49, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.533, 50, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.533, 51, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.541, 52, 1, Information, 201523208, Logging event CommFxClientCreated with params: ContractName={0} `RD.Fabric.Controller.IAgent`
---
2012-7-10T4:57:53.541, 53, 1, Information, 201523208, CreateClient called for contract {0} with bindingConfigName {1} and IP endpoint {2}`RD.Fabric.Controller.IDevelopmentAgent`LargeNetTcpBinding`net.tcp://localhost:15098/dfagent/1/host`
---
2012-7-10T4:57:53.542, 54, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.542, 55, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.542, 56, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.543, 57, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.544, 58, 1, Information, 201523208, Logging event CommFxClientCreated with params: ContractName={0} `RD.Fabric.Controller.IDevelopmentAgent`
---
2012-7-10T4:57:53.544, 59, 1, Information, 201523202, CreateService called for {0}`RD.Fabric.Controller.DevFabricAgentInterface`
---
2012-7-10T4:57:53.545, 60, 1, Information, 201523202, Logging event CommFxServiceHostCreated with params: ServiceName={0} `RD.Fabric.Controller.DevFabricAgentInterface`
---
2012-7-10T4:57:53.545, 61, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.545, 62, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.546, 63, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.546, 64, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.546, 65, 1, Information, 201523203, StartService called for {0}`RD.Fabric.Controller.DevFabricAgentInterface`
---
2012-7-10T4:57:53.546, 66, 1, Verbose, 201523225, ServiceHost.Open called for service {0}.`DevFabricAgentInterface`
---
2012-7-10T4:57:53.547, 67, 1, Information, 201523225, Logging event CommFxServiceHostOpened with params: ServiceName={0} `DevFabricAgentInterface`
---
2012-7-10T4:57:53.547, 68, 1, Information, 201523251, GetServiceBehaviors called for behavior config {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.547, 69, 1, Verbose, 201523249, GetServiceBehaviorConfiguration called for configuration {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.547, 70, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.548, 71, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.548, 72, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.548, 73, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.549, 74, 1, Information, 201523253, Ignoring the DataContractSerializerServiceBehavior.`
---
2012-7-10T4:57:53.549, 75, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.549, 76, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.549, 77, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.550, 78, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.550, 79, 1, Information, 201523251, Returning {0} service behaviors for the behavior config {1}`4`FabricServiceBehavior`
---
2012-7-10T4:57:53.559, 80, 1, Information, 0, LogicalNode`Agent Interface Initialized`
---
2012-7-10T4:57:53.560, 81, 14, Information, 0, Calling to Poll Health from PollAgent code`
---
2012-7-10T4:57:53.561, 82, 1, Information, 0, Starting DevFabric...`
---
2012-7-10T4:57:53.561, 83, 1, Information, 0, Starting Repository Service...`
---
2012-7-10T4:57:53.561, 84, 1, Information, 201523202, CreateService called for {0}`Microsoft.Windows.Azure.DevFabric.RepositoryService`
---
2012-7-10T4:57:53.571, 85, 14, Information, 49153, new version {0} of goal data is picked up.`0`
---
2012-7-10T4:57:53.572, 86, 1, Information, 201523202, Logging event CommFxServiceHostCreated with params: ServiceName={0} `Microsoft.Windows.Azure.DevFabric.RepositoryService`
---
2012-7-10T4:57:53.572, 87, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.573, 88, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.573, 89, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.573, 90, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.574, 91, 1, Information, 201523203, StartService called for {0}`Microsoft.Windows.Azure.DevFabric.RepositoryService`
---
2012-7-10T4:57:53.574, 92, 1, Verbose, 201523225, ServiceHost.Open called for service {0}.`RepositoryService`
---
2012-7-10T4:57:53.574, 93, 1, Information, 201523225, Logging event CommFxServiceHostOpened with params: ServiceName={0} `RepositoryService`
---
2012-7-10T4:57:53.574, 94, 14, Information, 49153, Node 27c0ade8-285e-4250-b10d-cabc5daccfef BeginWorkflow, : Reset workflow from {0}`BeginWorkflow`
---
2012-7-10T4:57:53.575, 95, 1, Information, 201523251, GetServiceBehaviors called for behavior config {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.575, 96, 1, Verbose, 201523249, GetServiceBehaviorConfiguration called for configuration {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.575, 97, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 98, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 99, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 100, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 101, 1, Information, 201523253, Ignoring the DataContractSerializerServiceBehavior.`
---
2012-7-10T4:57:53.576, 102, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 103, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 104, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 105, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.576, 106, 1, Information, 201523251, Returning {0} service behaviors for the behavior config {1}`4`FabricServiceBehavior`
---
2012-7-10T4:57:53.578, 107, 14, Information, 201523223, Contract: RD.Fabric.Controller.IAgent Checking channel terminal states.`
---
2012-7-10T4:57:53.578, 108, 14, Information, 201523222, Contract: RD.Fabric.Controller.IAgent Creating channel.`
---
2012-7-10T4:57:53.594, 109, 1, Information, 0, Repository Service is up and running...`
---
2012-7-10T4:57:53.595, 110, 1, Information, 0, Starting Management Service...`
---
2012-7-10T4:57:53.595, 111, 1, Information, 201523202, CreateService called for {0}`Microsoft.Windows.Azure.DevFabric.DevFabricManagement`
---
2012-7-10T4:57:53.600, 112, 1, Information, 201523202, Logging event CommFxServiceHostCreated with params: ServiceName={0} `Microsoft.Windows.Azure.DevFabric.DevFabricManagement`
---
2012-7-10T4:57:53.600, 113, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.600, 114, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.600, 115, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.600, 116, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.600, 117, 1, Verbose, 201523256, GetBindingFromConfig called.`
---
2012-7-10T4:57:53.600, 118, 1, Verbose, 201523250, GetBindingConfiguration called for configuration {0}`LargeNetTcpBinding`
---
2012-7-10T4:57:53.600, 119, 1, Information, 201523257, Created binding of type {0}`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.601, 120, 1, Information, 201523257, Applying configuration {0} to binding type {1}`LargeNetTcpBinding`System.ServiceModel.NetTcpBinding`
---
2012-7-10T4:57:53.601, 121, 1, Information, 201523203, StartService called for {0}`Microsoft.Windows.Azure.DevFabric.DevFabricManagement`
---
2012-7-10T4:57:53.601, 122, 1, Verbose, 201523225, ServiceHost.Open called for service {0}.`DevFabricManagement`
---
2012-7-10T4:57:53.601, 123, 1, Information, 201523225, Logging event CommFxServiceHostOpened with params: ServiceName={0} `DevFabricManagement`
---
2012-7-10T4:57:53.601, 124, 1, Information, 201523251, GetServiceBehaviors called for behavior config {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.601, 125, 1, Verbose, 201523249, GetServiceBehaviorConfiguration called for configuration {0}`FabricServiceBehavior`
---
2012-7-10T4:57:53.601, 126, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 127, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 128, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 129, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 130, 1, Information, 201523253, Ignoring the DataContractSerializerServiceBehavior.`
---
2012-7-10T4:57:53.601, 131, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 132, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 133, 1, Information, 201523254, Creating service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 134, 1, Information, 201523254, Copying properties for service behavior {0}`System.ServiceModel.Description.IServiceBehavior`
---
2012-7-10T4:57:53.601, 135, 1, Information, 201523251, Returning {0} service behaviors for the behavior config {1}`4`FabricServiceBehavior`
---
2012-7-10T4:57:53.608, 136, 14, Information, 201523224, Contract: RD.Fabric.Controller.IAgent Configuring channel factory with default and custom behaviors.`
---
2012-7-10T4:57:53.613, 137, 1, Information, 0, Management Service is up and running...`
---
2012-7-10T4:57:53.615, 138, 1, Information, 0, DevFabric is up and running...`
---
2012-7-10T4:57:53.618, 139, 14, Information, 201523223, Contract: RD.Fabric.Controller.IAgent Channel state is {0}`Created`
---
2012-7-10T4:57:53.618, 140, 14, Information, 201523220, Contract: RD.Fabric.Controller.IAgent GetChannel did not require channel recycle. Reusing existing channel.`
---
2012-7-10T4:57:53.619, 141, 14, Verbose, 0, 898878e0-3e5d-4335-8a1a-ada2578c2aa8`GetAgentState`System.Object[]`
---
2012-7-10T4:57:53.621, 142, 14, Information, 201523260, Logging event CommFxClientOperationInvoked with params: Id={0} TimeAtActionInvoke={1} ClientVersion={2} ClientCapabilities={3} From={4} To={5} Action={6} `00000000-0000-0000-0000-000000000000`10.07.2012 4:57:53`<null>`<null>`KOCHEKOVSKY`net.tcp://localhost:15098/dfagent/1/host`IAgent/GetState`
---
2012-7-10T4:57:55.702, 143, 14, Error, 0, 898878e0-3e5d-4335-8a1a-ada2578c2aa8`GetAgentState`System.ServiceModel.EndpointNotFoundException: ?? ??????? ???????????? ? net.tcp://localhost:15098/dfagent/1/host. ??????? ??????????? ??????????? ? ??????? ????????? ??????? 00:00:02.0014000. ??? ?????? TCP 10061: ??????????? ?? ???????????, ?.?. ???????? ????????? ?????? ?????? ?? ??????????? 127.0.0.1:15098.  ---> System.Net.Sockets.SocketException: ??????????? ?? ???????????, ?.?. ???????? ????????? ?????? ?????? ?? ??????????? 127.0.0.1:15098
   ? System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   ? System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   ? System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   --- ????? ??????????? ??????????? ????? ?????????? ---

Server stack trace: 
   ? System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   ? System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   ? System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   ? System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
   ? System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   ? System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   ? System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   ? System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   ? System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   ? System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   ? RD.Fabric.Controller.IAgent.GetState()
   ? RD.Fabric.Controller.DevFabricAgentInterface.<>c__DisplayClass2b.<GetAgentState>b__2a(IAgent agent)
   ? RD.Fabric.Controller.DevFabricAgentInterface.CallAgent(AgentCallDelegate agentCall, String operation)`
---
2012-7-10T4:57:55.702, 144, 14, Information, 0, GetAgentState fails.`
---
2012-7-10T4:57:56.703, 145, 14, Information, 0, Calling to Poll Health from PollAgent code`
---
2012-7-10T4:57:56.703, 146, 14, Information, 201523223, Contract: RD.Fabric.Controller.IAgent Checking channel terminal states.`
---
2012-7-10T4:57:56.703, 147, 14, Information, 201523223, Contract: RD.Fabric.Controller.IAgent Channel state is {0}`Faulted`
---
2012-7-10T4:57:56.703, 148, 14, Information, 201523219, Contract: RD.Fabric.Controller.IAgent GetChannel required channel recycle. Returning new channel.`
---
2012-7-10T4:57:56.704, 149, 14, Information, 201523222, Contract: RD.Fabric.Controller.IAgent Creating channel.`
---
2012-7-10T4:57:56.704, 150, 14, Information, 201523224, Contract: RD.Fabric.Controller.IAgent Configuring channel factory with default and custom behaviors.`
---
2012-7-10T4:57:56.704, 151, 14, Verbose, 0, 898878e0-3e5d-4335-8a1a-ada2578c2aa8`GetAgentState`System.Object[]`
---
2012-7-10T4:57:56.704, 152, 14, Information, 201523260, Logging event CommFxClientOperationInvoked with params: Id={0} TimeAtActionInvoke={1} ClientVersion={2} ClientCapabilities={3} From={4} To={5} Action={6} `00000000-0000-0000-0000-000000000000`10.07.2012 4:57:56`<null>`<null>`KOCHEKOVSKY`net.tcp://localhost:15098/dfagent/1/host`IAgent/GetState`
---
2012-7-10T4:57:58.715, 153, 14, Error, 0, 898878e0-3e5d-4335-8a1a-ada2578c2aa8`GetAgentState`System.ServiceModel.EndpointNotFoundException: ?? ??????? ???????????? ? net.tcp://localhost:15098/dfagent/1/host. ??????? ??????????? ??????????? ? ??????? ????????? ??????? 00:00:02.0094056. ??? ?????? TCP 10061: ??????????? ?? ???????????, ?.?. ???????? ????????? ?????? ?????? ?? ??????????? 127.0.0.1:15098.  ---> System.Net.Sockets.SocketException: ??????????? ?? ???????????, ?.?. ???????? ????????? ?????? ?????? ?? ??????????? 127.0.0.1:15098
   ? System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   ? System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   ? System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   --- ????? ??????????? ??????????? ????? ?????????? ---

Server stack trace: 
   ? System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   ? System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   ? System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   ? System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
   ? System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
   ? System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   ? System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   ? System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   ? System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   ? System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   ? System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   ? RD.Fabric.Controller.IAgent.GetState()
   ? RD.Fabric.Controller.DevFabricAgentInterface.<>c__DisplayClass2b.<GetAgentState>b__2a(IAgent agent)
   ? RD.Fabric.Controller.DevFabricAgentInterface.CallAgent(AgentCallDelegate agentCall, String operation)`
---
2012-7-10T4:57:58.716, 154, 14, Information, 0, GetAgentState fails.`

DFAgent日志:

[2012/07/06, 08:48:31.363,  INFO, 00009220] StorageRoot: C:\DFTemp
[2012/07/06, 08:48:31.544,  INFO, 00009220] The parameters and the method signature does not match
[2012/07/06, 08:48:31.547,  INFO, 00009220]    в System.Reflection.RuntimeParameterInfo.GetParameters(IRuntimeMethodInfo methodHandle, MemberInfo member, Signature sig, ParameterInfo& returnParameter, Boolean fetchReturnParameter)
   в System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
   в System.Reflection.RuntimeMethodInfo.GetParameters()
   в System.ServiceModel.Description.ServiceReflector.ValidateParameterMetadata(MethodInfo methodInfo)
   в System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction)
   в System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation)
   в System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation)
   в System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation)
   в System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation)
   в System.ServiceModel.Description.ContractDescription.GetContract(Type contractType, Object serviceImplementation)
   в System.ServiceModel.ServiceHost.CreateDescription(IDictionary`2& implementedContracts)
   в System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
   в System.ServiceModel.ServiceHost.InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses)
   в System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
   в Microsoft.Windows.Azure.Fabric.Cfx.Contracts.CommunicationFrameworkServ
4

3 回答 3

3

我可能不知道您的机器上发生的事情的确切原因,但可以通过尝试以下步骤来帮助您解决此问题:

  1. 确保 Azure DevFabric 未在您的计算机中运行
  2. 现在在管理员模式下打开 Windows Azure SDK 1.7 命令提示符并设置如下(确保有“newdftemp”文件夹,如下所述):

    设置 _CSRUN_STATE_DIRECTORY=C:\newdftemp

  3. 启动 dev Fabric 如下:

    csrun /devfabric:开始

  4. 这将启动 Azure Emulator 并预计会因上述问题而崩溃
  5. 现在打开 C:\newdftemp\DevFCLogs 文件夹,你会发现一个日志文件 DevFabric--*.log。检查这个文件,看看可能是什么问题。(日志文件会很大,所以你不能把所有的都放在这里,但它会解释什么不会写并帮助你)
  6. 您还可以打开免费事件以从 Windows Azure 支持团队获得帮助并共享此日志以在需要时获得进一步的帮助。
于 2012-07-09T21:08:55.203 回答
3

查看日志后,这是我的调查:

代理配置定义如下:

C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devfabric\DevFC.exe.Config

代理端口设置为 15098,如下所示:

<DevFCSettings>
    <add key="AgentPort" value="15098" />
</DevFCSettings>

现在当代理在你的机器上启动时

2012-7-10T4:57:55.702, 143, 14, Error, 0, 898878e0-3e5d-4335-8a1a-ada2578c2aa8`
GetAgentState`System.ServiceModel.EndpointNotFoundException:
         net.tcp://localhost:15098/dfagent/1/host.
         127.0.0.1:15098.  ---> System.Net.Sockets.SocketException:
         127.0.0.1:15098 
? System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
? System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
? System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)

因此,主要问题是您在开发机器中遇到了分类 WCF“EndpointNotFoundException”异常,这会导致 Compute Emulator 崩溃。您需要解决此问题以解决您的计算模拟器问题。

在我之前的一项类似调查中,我发现特定端口已被其他服务使用,因此服务无法使用它。在您的情况下,问题是找不到端点。

这里有几点建议:

[ 1 ] 尝试在您的机器上修复服务模型安装,如下所示:

 C:\Windows\Microsoft.NET\Framework64\v4.0.30319>ServiceModelReg.exe -r

[ 2 ] 尝试在您的 DevFC.exe.config 中启用 WCF 跟踪,如此链接中所述。这将有助于解决您遇到此类异常的原因,并提供进一步的步骤来找到解决方案。

于 2012-07-12T19:22:53.117 回答
1

我最近在使用 Visual Studio Azure Compute Emulator 时遇到了类似的问题,并且无法启动任何云项目。这是解决方法:

问题:

Azure 模拟器崩溃并出现错误 0x800700b7:当该文件已存在时无法创建该文件

原因:

此问题背后的实际原因是 WMI 类丢失或失败。

解决方案:

  1. 转到开始运行并输入 wmimgmt.msc

  2. 右键单击本地 WMI 控件(本地)并选择属性。

  3. 在常规选项卡上,如果该框上注明了任何故障,则表明存在核心 WMI 问题。

  4. 找到 Win32_Processor 命名空间/类 WMI 控件属性的 .MOF 文件

  5. 通过运行 mofcomp.exe 'MOFFilename.MOF' 修复 MOF 文件。mofcomp.exe 位于 C:\Windows\System32\wbem 文件夹中。

  6. 然后通过运行命令 regsvr32 'MOFFilename.dll' cmd重新注册关联的 DLL

  7. 通过再次检查 WMI 控件 (wmimgmt.msc) 来验证它是否已修复。这一次,如下图所示,不再有 WMI 类错误。

  8. 然后,重新启动模拟器,这次您将看到模拟器再次运行,这次没有问题/崩溃。

于 2016-08-08T11:08:45.177 回答