Error for System.ServiceModel.Channels.ServiceChannel when debugging azure project for windows in local environment

I recently upgraded from windows azure sdk 1.5 to 1.6. I managed to debug the azure projects on my system using sdk 1.5. But after the update, I can no longer debug even the recently created azure projects. Visual Studio throws an error "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. For more information, see the output window."

Below is the text from my output window:

Server Tracking:

in System.ServiceModel.Channels.CommunicationObject.Close (TimeSpan timeout) in System.ServiceModel.Channels.ServiceChannel.System.IDisposable.Dispose ()

Exception thrown in [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (iMessage reqMsg, IMessage retMsg) in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData, Int. IDisposable.Dispose () at Microsoft.ServiceHosting.Tools.DevelopmentFabric.FabricClient.AddServiceDeployment (String tenantName, ServiceModelDefinition serviceModelDefinition, String instanceDescriptionPath, ServiceDeploymentOptions)

I can create a package and the packages work correctly in real time. I already checked only for web.config. He can write.

+4
source share
1 answer

I found a solution: Remove the read-only property for the files located in the path below (on your development machine). This will fix the problem and allow you to run the application in debug mode.

%LocalAppData%\dftmp\IISConfigurator1.6.0.0 folder

Note. The IISConfigurator folder name may vary depending on the version of the Windows Azure SDK that you are working on.

Edit: You can find information from a Microsoft support engineer

+6
source

Source: https://habr.com/ru/post/1403030/


All Articles