“L'Argument: NotFound” erreur à l'aide de l'Authentification Windows pour Silverlight
Un SL application créée avec SL Business modèle d'Application. Puis Config il utiliser l'Authentification Windows dans le web.Config:
<authentication mode="Windows">
</authentication>
Code dans l'App.xaml.cs pour initialiser l'authentification:
webContext.Authentication = new WindowsAuthentication()
{ DomainContext = new MyRIAServices.Web.AuthenticationContext() };
puis déplacer cette application pour IIS et jeu site web sous IIS comme Widnows d'Authentification.
Ensuite, Exécutez cette application, il est très bien, Il peut obtenir compte de domaine (AD acount connecté à windows).
Puis déplacer cette application pour anohter ordinateur Windows 2008 R2 dans le même domaine. site web sous IIS configed exactement le même que sur windows 7. alors accéder à la sl app et a obtenu l'erreur suivante:
Load operation failed for query 'GetUser'.
[HttpWebRequest_WebException_RemoteServer]
Argument: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem.
See http://go.microsoft.com/fwlink/?linkid=106663&version=4.0.50917&File=System.Windows.dll&key=httpWebRequest_WebException_RemoteServer
au Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.Fin(IAsyncResult suite)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.<>c_DisplayClass1.b_0(état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback rappel, l'état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.AsyncResultBase.Complet()
au System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase opération)
au Système.ServiceModel.DomainServices.Client.LoadOperation.<>c_DisplayClass41.<Create>b__0(LoadOperation
1 arg)
au Système.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
au Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.LoadOperation.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClass1b.b__17(Objet )
Causés par: l'opération de Chargement a échoué pour la requête 'GetUser'. [HttpWebRequest_WebException_Remoteserver]
Arguments: NotFound
Débogage des chaînes de ressources ne sont pas disponibles. Souvent, la clé et les arguments de fournir suffisamment d'informations pour diagnostiquer le problème. Voir http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50917.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_Remoteserverau Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.Fin(IAsyncResult suite)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.<>c_DisplayClass1.b_0(état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback rappel, l'état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.AsyncResultBase.Complet()
au System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase opération)
au Système.ServiceModel.DomainServices.Client.LoadOperation.<>c_DisplayClass41.<Create>b__0(LoadOperation
1 arg)
au Système.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
au Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.LoadOperation.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClass1b.b__17(Objet )
Causés par: l'opération de Chargement a échoué pour la requête 'GetUser'. [HttpWebRequest_WebException_Remoteserver]
Arguments: NotFound
Débogage des chaînes de ressources ne sont pas disponibles. Souvent, la clé et les arguments de fournir suffisamment d'informations pour diagnostiquer le problème. Voir http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50917.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_Remoteserverau Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.Fin(IAsyncResult suite)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.<>c_DisplayClass1.b_0(état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback rappel, l'état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.AsyncResultBase.Complet()
au System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase opération)
au Système.ServiceModel.DomainServices.Client.LoadOperation.<>c_DisplayClass41.<Create>b__0(LoadOperation
1 arg)
au Système.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
au Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.LoadOperation.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClass1b.b__17(Objet )
Causés par: l'opération de Chargement a échoué pour la requête 'GetUser'. [HttpWebRequest_WebException_Remoteserver]
Arguments: NotFound
Débogage des chaînes de ressources ne sont pas disponibles. Souvent, la clé et les arguments de fournir suffisamment d'informations pour diagnostiquer le problème. Voir http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50917.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_Remoteserverau Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.Fin(IAsyncResult suite)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.<>c_DisplayClass1.b_0(état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback rappel, l'état de l'Objet)
au System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.AsyncResultBase.Complet()
au System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase opération)
au Système.ServiceModel.DomainServices.Client.LoadOperation.<>c_DisplayClass41.<Create>b__0(LoadOperation
1 arg)
au Système.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
au Système.ServiceModel.DomainServices.Client.OperationBase.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.LoadOperation.Complète(Sauf erreur)
au Système.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
au Système.ServiceModel.DomainServices.Client.DomainContext.<>c_DisplayClass1b.b__17(Objet )
Comment résoudre ce problème?
OriginalL'auteur KentZhou | 2010-11-08
Vous devez vous connecter pour publier un commentaire.
Déploiement de Silverlight 4 applications avec WCF RIA Services peut être vraiment un cauchemar! Mais ici, c'est la solution!
Configuration de votre serveur (par exemple, MS Windows Server 2008 R2, IIS7) de Silverlight 4 et WCF RIA Services:
1) Téléchargez et installez le .NET 4 Framework Web Platform Installer.
Utilisez le programme d'installation pour installer le .NET 4 Cadre. Redémarrez le serveur une fois cette opération terminée.
2) Télécharger WCF RIA Services pour votre machine locale (par ex. c:\temp).
Ouvrez une fenêtre de commande (j'ai utilisé "Exécuter en tant qu'Administrateur"). Allez dans le dossier avec le fichier MSI (par ex. c:\temp) et
tapez la commande suivante pour lancer l'installation de la WCF RIA Services:
3) Pour supprimer un erreur [HttpWebRequest_WebException_Remoteserver] procédez de la manière suivante:
accédez à l'invite de commande, ouvrez Microsoft.NET\Framework64 dossier
(par ex. C:\Windows\Microsoft.NET\Framework64\v4.0.30319) et exécutez les commandes suivantes:
Cela corrige le problème d'installation et WCF RIA Services fonctionne comme prévu.
Ce qui concerne,
Matjaz Bravc, MCPD
Pls expliquer ce que u veux dire...
Cette commande
servicemodelreg -ia
doe morve travailOriginalL'auteur BravcM