Hi Roman, kannst du mal versuchen, den kompletten Pfad anzugeben (siehe unten)
Ciao Denis Auszug aus microsoft.public.dotnet.framework.aspnet : Den ganzen Thread kannst du dir anschauen, wenn du bei Google in den Newsgroups suchst. ------------------------------------------ Hi Vincas, Here is the answer to the problem where treeview control is not able to access the data in the XML file if the anonymous access is turned off on that xml file. At this point, we don't support having any authentication on the xml files used in the treeview's properties such as TreeNodeSrc, TreeNodeXsltSrc etc So, it requires anonymous authentication to be enabled on the xml file. Here are the workarounds: 1) Enable Anonymous authentication on the xml file of you are providing the path as: TreeView1.TreeNodeSrc = "Testdata.xml" ( Please note that the above path will be interpretted as "http://myserver/myproject/Testdata.xml") or TreeView1.TreeNodeSrc = "http://myserver/myproject/Testdata.xml" 2) Provide fully qualified file path to the xml file and make sure that the accessing user has proper permissions to the xml file: e.g. TreeView1.TreeNodeSrc = "e:\inetpub\wwwroot\samplenetproject\testdata.xml" Note: You can also use Server.Mappath or Request.PhysicalPath etc. Hope this helps. Thanks, Anand Hegde (MSFT) This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Fischer Roman [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 2. April 2002 18:01 To: aspDEdotnet Subject: [aspdedotnet] AW: FINAL -> AW: Re: Final Release und TreeView-Con trol Hallo, Wirklich war. Funkt bei mir auch ! Des is aber ein Schrott. Ich kann f�r ein Webproject aber nicht einmal auf anonymous und Windows Authentication schalten. -----Urspr�ngliche Nachricht----- Von: Alexander Bohle [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 02. April 2002 17:49 An: aspDEdotnet Betreff: [aspdedotnet] FINAL -> AW: Re: Final Release und TreeView-Control OK, f�r alle die es interessiert: Dieser Fehler: System.Xml.XmlException: Ung�ltige Daten auf Stammebene. Zeile 1, Position 1. entsteht dann, wenn keine 'Anonyme Anmeldung' auf die Site m�glich ist (Selbst wenn 'Jeder' Vollzugriff auf das Verzeichniss hat). D.h.: sobald man auf der Site 'Anonyme Anmeldung' zul�sst scheint der Fehler wie weggeblasen. Im Moment habe ich keine andere L�sung, kann mir auch nicht erkl�ren wieso und warum. Naja, irgentwie scheint mir das treeview-webcontrol noch nicht so ganz ausgereift.... Also das wars... Alex | [aspdedotnet] als [email protected] subscribed | http://www.dotnetgerman.com/archiv/aspdedotnet/ = Listenarchiv | Sie k�nnen sich unter folgender URL an- und abmelden: | http://www.dotnetgerman.com/listen/aspDEdotnet.asp
