XmlSiteMapProvider does not exist

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idsanjeev
    New Member
    • Oct 2007
    • 241

    #1

    XmlSiteMapProvider does not exist

    Hi i am very new in .net using vb
    some file downloaded to learn but when excute file the error is
    System.InvalidO perationExcepti on: The file web.sitemap required by XmlSiteMapProvi der does not exist how can resolve it.
  • senol
    Banned
    New Member
    • Jun 2008
    • 6

    #2
    Code:
     using System.IO; 
    using System.Text;
    using System.Xml;
     
    DataView XmlSag = personel_kontrol.Toplam_kayitlar("select * from User_Haber where HResim_Yer='2' and Haber_Durum='Evet'");
    XmlTextWriter writer = new XmlTextWriter(Server.MapPath("../bigsale.xml"), System.Text.Encoding.UTF8);
     
    writer.WriteStartDocument();
     
    writer.WriteComment("The Program Şenol Şahin");
     
    writer.Formatting = Formatting.Indented;
     
     
    writer.WriteStartElement("bigSale");
     
    for (int FlasId = 0; FlasId < XmlSag.Count; FlasId++)
    {
     
    //writer.WriteElementString("image", null);
    //writer.WriteAttributeString("picUrl", "Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
    //writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["DilID"].ToString());
    //writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Tarih"].ToString());
     
     
    writer.WriteStartElement("image", null);
    writer.WriteAttributeString("picUrl", "Yonetici/Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
    writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["HaberID"].ToString());
    writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Baslik"].ToString());
    writer.WriteEndElement();
     
     
    }
     
    writer.Flush();
    writer.Close();
    MY WEB PAGE

    http://www.paslanmazbu l.net
    Last edited by DrBunchman; Jun 23 '08, 09:56 AM. Reason: Added code tags - Please use the # button

    Comment

    • idsanjeev
      New Member
      • Oct 2007
      • 241

      #3
      hi
      i can't understand what you suggest .

      Comment

      • DrBunchman
        Recognized Expert Contributor
        • Jan 2008
        • 979

        #4
        Hi senol,

        Welcome to Bytes.com.

        I assume that you are trying to provide idsanjeev with a working example to help with his query but posting great big chunks of code without any explanation is not going to help anybody and is also against the Posting Guidlines. Please read the guidelines so you are familiar with what is expected of you while you are on the site.

        Also, idsanjeev specifically mentioned that they were using VB.NET but your post is written in C# - again this is not very helpful to somebody who has stated that they are a beginner.

        I certainly don't want to discourage you from posting on the site but please try to provide clearer assistance when replying to a question.

        Thanks and regards,

        Dr B
        MODERATOR

        Comment

        Working...