J'essaie de créer un modèle de projet Visual Studio qui inclut un projet Azure Service Fabric avec un StatelessService
.FabricConnectionDeniedException - Où puis-je configurer les connexions Azure Service Fabric?
Dans la plaque de la chaudière Program
code EntryPoint, je reçois un FabricConnectionDeniedException
. Où puis-je configurer les informations de connexion ou corriger cette exception? Je cours contre le gestionnaire de cluster local. J'ai regardé à travers les différents fichiers de configuration .xml
mais ne vois rien. Ai-je besoin de mettre en liste blanche mon application dans le gestionnaire de cluster?
est ici le code de plaque de la chaudière je copiais du service Azure Fabric:
private static void Main()
{
try
{
// Creating a FabricRuntime connects this host process to the Service Fabric runtime.
using (var fabricRuntime = System.Fabric.FabricRuntime.Create())
{
// The ServiceManifest.XML file defines one or more service type names.
// RegisterServiceType maps a service type name to a .NET class.
// When Service Fabric creates an instance of this service type,
// an instance of the class is created in this host process.
fabricRuntime.RegisterServiceType(
"RunSetManagerServiceType",
typeof(RunSetManagerService));
ServiceEventSource.Current.ServiceTypeRegistered(
Process.GetCurrentProcess().Id,
typeof(RunSetManagerService).Name);
// Prevents this host process from terminating to keep the service host process running.
Thread.Sleep(Timeout.Infinite);
}
}
catch (Exception e)
{
// !!!!!! GETTING FabricConnectionDeniedException HERE !!!!!
ServiceEventSource.Current.ServiceHostInitializationFailed(e.ToString());
throw;
}
}