Accueil > Forum > > > > supprimer un role SSRS
supprimer un role SSRS
lundi 30 juillet 2007 à 16:30:07 |
supprimer un role SSRS

deathsurfer
|
A
la maniere du portail Report Manager je souhaite supprimer un role SSRS
qui est associé a un groupe donné. Malheureusement il y a une erreur : Citation:
System.Web.Services.Protocols.SoapException: The required field Policy
is missing from the input structure. --->
Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException:
The required field Policy is missing from the input structure.
at Microsoft.ReportingServices.Library.Soap.Policy.PolicyArrayToXml(Policy[] policies)
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: The required field Policy
is missing from the input structure. --->
Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException:
The required field Policy is missing from the input structure.
at Microsoft.ReportingServices.Library.Soap.Policy.PolicyArrayToXml(Policy[] policies)
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)
Source Error:
Line 90:
Line 91: 'on refait la sécurité
Line 92: rs.SetPolicies(Item, Policies)
Line 93: 'historique("Suppression", "Groupe: " &
DropDownListgpe.SelectedItem.Text & " au Rôle: " &
ListBoxroles.SelectedItem.Text)
Line 94: 'Response.Redirect("~/Administration/Autorisation/Page4.aspx?nocache=", True)
Source File: C:\Inetpub\wwwroot\a\Administration\Autorisation\Page4.aspx.vb Line: 92
Stack Trace:
[SoapException: System.Web.Services.Protocols.SoapException: The
required field Policy is missing from the input structure. --->
Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException:
The required field Policy is missing from the input structure.
at Microsoft.ReportingServices.Library.Soap.Policy.PolicyArrayToXml(Policy[] policies)
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.SetPolicies(String Item, Policy[] Policies)]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) +533462
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204
Microsoft.SqlServer.ReportingServices2005.ReportingService2005.SetPolicies(String Item, Policy[] Policies) +63
Autorisation4.Buttondesassign_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\a\Administration\Autorisation\Page4.aspx.vb:92
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
|
Voici le code: Code : 'pour supprimer une association role SSRS - groupe Dim rs AsNew Microsoft.SqlServer.ReportingServices2005.ReportingService2005 Dim pol()As Microsoft.SqlServer.ReportingServices2005.Policy Dim policy As Microsoft.SqlServer.ReportingServices2005.Policy Dim role AsNew Microsoft.SqlServer.ReportingServices2005.Role Dim item2 AsObject Dim Item AsString = "/" Dim p, k, n AsInteger Dim maliste AsNew arraylist rs.Credentials = System.Net.CredentialCache.DefaultCredentials() pol = rs.GetPolicies(Item, True) Dim Policies(pol.Length - 1)As Microsoft.SqlServer.ReportingServices2005.Policy n = 0 k = 0 'pour chaque instance de sécurité ForEach policy In pol If policy.GroupUserName <> Environment.MachineName & "\" & DropDownListgpe.selecteditem.textThen ListBox1.Items.Add(policy.GroupUserName) Policies(n) = New Microsoft.SqlServer.ReportingServices2005.Policy Policies(n).GroupUserName = policy.GroupUserName 'on défnit le nombre de rôle(s) Policies(n).Roles = New Microsoft.SqlServer.ReportingServices2005.Role(policy.roles.Length - 1){} ForEach role In policy.Roles ListBox2.Items.Add(role.Name) maliste.add(role.name) Next For p = 0To policy.roles.Length - 1 Policies(n).Roles(p) = New Microsoft.SqlServer.ReportingServices2005.Role Policies(n).Roles(p).Name = maliste.item(k).ToString Next p k = k + policy.roles.Length n = n + 1 EndIf Next 'on refait la sécurité rs.SetPolicies(Item, Policies)
Merci de m'aider parce que là je bloque vraiment....
|
|
|
|
|
Cette discussion est classée dans : web, system, microsoft, policy, policies
Répondre à ce message
Sujets en rapport avec ce message
Help Problème avec IIS pour un projet ASP [ par bensniper ]
j'ai 2 projets que je veux mettre sur un serveur win2000srv je met le 1er projet sur la machine aucun pb tout fct correctement je fais la meme chose p
Control creer dynamiquement [ par alk ]
Alors voila je declare un System.Web.UI.Controlsdans un fichier aspx.cs et je souhaite le voir apparaitre sur ma WebForms cependant je recois une erre
Pb de datagrid->pour faire un panier ASP.net C# [ par fabrice83 ]
fab83je suis en BTS est mon projet est de réaliser un site de vente g un pb avec mon panier .Voici mon code j'ai une datgrid1qui represente mon catal
Fonction UPDATE sur une base Access [ par vince2472 ]
Bonjour,Je rencontre un pb : j'ai le message 'Erreur de syntaxe dans l'instruction UPDATE' lorsque je mets ma base à jour (le but étant de la modifier
appel de fonction :( [ par yafuka ]
bonjour a tous et merci d'avance.Mon probleme est bien simple.je declare une classe page1_2 dans un fichier page1_2.cs (voir ci dessous) contenant un
[ASPX][C#] creation d'un webControls Table [ par tobleronne ]
ReBonjour, Je fais une boucle afin de remplir un webcontrol Table. mais on me dit "L'argument spécifié n'était pas dans les limites de la plage des va
probleme avec Access?! [ par Jula ]
salut a tous, je suis débutante et j'ai besoin d'aide:je voudrais me connecter à une bd faite avec MS Access200, je fais donc ça:<
problème avec une bd Access [ par Jula ]
salut a tous, je suis débutante et j'ai besoin d'aide:je voudrais me connecter à une bd faite avec MS Access200, je fais donc ça:string monConnexionSt
[ASPX][C#] Héritage de System.Web.UI.Page [ par merrick ]
bonjouralors voilà, j'ai voulu factoriser des pages qui avait un comportement commun.j'ai ainsi créer une classe abstraite classeMere.cs comme suit:Co
Problème dans un extension SOAP [ par ilsandor ]
BonjourJ'ai créé une extension soap qui encrypte le corps du message soap lors de l'appel d'un service web. l'encryption marche impec les données arri
Livres en rapport
|
Derniers Blogs
XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE)[HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE) par Gio
Je m'y prends un peu tard je sais, mais bon je suis développeur web et donc hyper fainéant ! Toujours dans le cadre des technologies émergentes, ici HTML5, parce qu'on aime HTML5 chez Wyg , nous seront présent, le vieux ( Aurélien V.) et moi, pour pr...
Cliquez pour lire la suite de l'article par Gio [WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz
Forum
RE : FORMULAIRERE : FORMULAIRE par ap24dp
Cliquez pour lire la suite par ap24dp RE : FORMULAIRERE : FORMULAIRE par jopop
Cliquez pour lire la suite par jopop RE : FORMULAIRERE : FORMULAIRE par ap24dp
Cliquez pour lire la suite par ap24dp RE : FORMULAIRERE : FORMULAIRE par jopop
Cliquez pour lire la suite par jopop
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|