none
Visual Studio2015求助!出现Microsoft Visual Studio is waiting for an internal operation to complete问题 RRS feed

  • 问题

  • 我在Visual Studio2015中新建一个Cloud serivce后,配置Role文件夹下的web角色与辅助角色的连接字符串时,点击下图Conectiong String右侧冒号后,程序死机且显示“Microsoft Visual Studio is waiting for an internal operation to complete”,其余操作一切正常,是不是软件bug?我照MSDN上说的把杀毒软件都关掉了但是依然没有改善,求帮助。


    2016年3月30日 10:56

答案

  • 请问只有Azure项目有这个问题吗?

    要不你修复一下VS,结果如何?另外请安装VS2015 update2.

    https://www.visualstudio.com/zh-cn/news/vs2015-update2-vs.aspx

    如果只有Azure的项目有问题,可能你还是需要到Azure开发论坛去求证一下,另外,记得安装最新的Azure的SDK。

    在工具菜单-》扩展和更新上可以看到需要更新的安装包,看看是不是有Azure方面的包需要更新。


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2016年3月31日 7:41
    版主

全部回复

  • 请问只有Azure项目有这个问题吗?

    要不你修复一下VS,结果如何?另外请安装VS2015 update2.

    https://www.visualstudio.com/zh-cn/news/vs2015-update2-vs.aspx

    如果只有Azure的项目有问题,可能你还是需要到Azure开发论坛去求证一下,另外,记得安装最新的Azure的SDK。

    在工具菜单-》扩展和更新上可以看到需要更新的安装包,看看是不是有Azure方面的包需要更新。


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2016年3月31日 7:41
    版主
  • 好的,非常感谢。还有一个问题,我从azure官网上下载了个demo,运行起来总是报错,vs应该没问题,因为运行其他程序是正常的,但是程序是从官网上下载下来按说应该也没问题,想找您帮忙看下,

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Microsoft.ServiceBus.Messaging;
    using System.Threading;
    
    namespace ReadDeviceToCloudMessages04
    {
        class Program
        {
            static string connectionString = "HostName=myiot003.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=Gk/d76dNAfOQwirestX+zloy+3sOtb3SzUbnfricEWY=";
            static string iotHubD2cEndpoint = "messages/events";
            static EventHubClient eventHubClient;
            private static async Task ReceiveMessagesFromDeviceAsync(string partition, CancellationToken ct)
            {
                var eventHubReceiver = eventHubClient.GetDefaultConsumerGroup().CreateReceiver(partition, DateTime.UtcNow);
                while (true)
                {
                    if (ct.IsCancellationRequested) break;
                    EventData eventData = await eventHubReceiver.ReceiveAsync();
                    if (eventData == null) continue;
    
                    string data = Encoding.UTF8.GetString(eventData.GetBytes());
                    Console.WriteLine("Message received. Partition: {0} Data: '{1}'", partition, data);
                }
            }
            static void Main(string[] args)
            {
                Console.WriteLine("Receive messages. Ctrl-C to exit.\n");
                eventHubClient = EventHubClient.CreateFromConnectionString(connectionString, iotHubD2cEndpoint);
                // var d2cPartitionss = eventHubClient.GetRuntimeInformation();
                var r = eventHubClient.GetRuntimeInformation().PartitionIds;            //////////////// 总是在此处报错
                var d2cPartitions = eventHubClient.GetRuntimeInformation().PartitionIds;
    
                CancellationTokenSource cts = new CancellationTokenSource();
    
                System.Console.CancelKeyPress += (s, e) =>
                {
                    e.Cancel = true;
                    cts.Cancel();
                    Console.WriteLine("Exiting...");
                };
    
                var tasks = new List<Task>();
                foreach (string partition in d2cPartitions)
                {
                    tasks.Add(ReceiveMessagesFromDeviceAsync(partition, cts.Token));
                }
                Task.WaitAll(tasks.ToArray());
            }
        }
    }

    以下是报错信息:

    Microsoft.ServiceBus.Messaging.MessagingCommunicationException was unhandled
      HResult=-2146233088
      IsTransient=true
      Message=系统检测到在一个调用中尝试使用指针参数时的无效指针地址。
      Source=Microsoft.ServiceBus
      StackTrace:
           在 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
           在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.RunSynchronously()
           在 Microsoft.ServiceBus.Messaging.Amqp.AmqpEventHubClient.GetRuntimeInformation()
           在 EwadDeviceToCloudMessage03.Program.Main(String[] args) 位置 F:\学习课件\C#学习资料\AZURE练习程序\iottest01\EwadDeviceToCloudMessage03\Program.cs:行号 33
           在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           在 System.Threading.ThreadHelper.ThreadStart()
      InnerException: 
           ErrorCode=10014
           HResult=-2147467259
           Message=系统检测到在一个调用中尝试使用指针参数时的无效指针地址。
           NativeErrorCode=10014
           Source=Microsoft.ServiceBus
           StackTrace:
             Server stack trace: 
                在 System.Net.Sockets.Socket.get_RemoteEndPoint()
                在 Microsoft.ServiceBus.Messaging.Amqp.Transport.TcpTransport..ctor(Socket socket, TcpTransportSettings transportSettings)
                在 Microsoft.ServiceBus.Messaging.Amqp.Transport.TcpTransportInitiator.Complete(SocketAsyncEventArgs e, Boolean completeSynchronously)
             Exception rethrown at [0]: 
                在 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
                在 Microsoft.ServiceBus.Messaging.Amqp.AmqpMessagingFactory.ConnectAsyncResult.<GetAsyncSteps>b__9e(ConnectAsyncResult thisPtr, IAsyncResult r)
                在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
             Exception rethrown at [1]: 
                在 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
                在 Microsoft.ServiceBus.Messaging.Amqp.AmqpMessagingFactory.EndCreateConnection(IAsyncResult result)
                在 Microsoft.ServiceBus.Messaging.Amqp.FaultTolerantObject`1.CreateAsyncResult.<GetAsyncSteps>b__4(CreateAsyncResult thisPtr, IAsyncResult r)
                在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
             Exception rethrown at [2]: 
                在 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
                在 Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
                在 Microsoft.ServiceBus.Messaging.Amqp.FaultTolerantObject`1.OnEndCreateInstance(IAsyncResult asyncResult)
                在 Microsoft.ServiceBus.Messaging.SingletonManager`1.EndGetInstance(IAsyncResult asyncResult)
                在 Microsoft.ServiceBus.Messaging.Amqp.AmqpMessagingFactory.CreateManagementLinkAsyncResult.<>c__DisplayClass17a.<GetAsyncSteps>b__175(CreateManagementLinkAsyncResult thisPtr, IAsyncResult r)
                在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
             Exception rethrown at [3]: 
                在 Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
                在 Microsoft.ServiceBus.Messaging.Amqp.AmqpEventHubClient.GetRuntimeInfoAsyncResult.<GetAsyncSteps>b__14(GetRuntimeInfoAsyncResult thisPtr, IAsyncResult r)
                在 Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
           InnerException: 

    2016年4月27日 4:41