473,378 Members | 1,236 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

XmlSiteMapProvider does not exist

idsanjeev
241 100+
Hi i am very new in .net using vb
some file downloaded to learn but when excute file the error is
System.InvalidOperationException: The file web.sitemap required by XmlSiteMapProvider does not exist how can resolve it.
Jun 23 '08 #1
3 4516
senol
6
Expand|Select|Wrap|Line Numbers
  1.  using System.IO; 
  2. using System.Text;
  3. using System.Xml;
  4.  
  5. DataView XmlSag = personel_kontrol.Toplam_kayitlar("select * from User_Haber where HResim_Yer='2' and Haber_Durum='Evet'");
  6. XmlTextWriter writer = new XmlTextWriter(Server.MapPath("../bigsale.xml"), System.Text.Encoding.UTF8);
  7.  
  8. writer.WriteStartDocument();
  9.  
  10. writer.WriteComment("The Program Şenol Şahin");
  11.  
  12. writer.Formatting = Formatting.Indented;
  13.  
  14.  
  15. writer.WriteStartElement("bigSale");
  16.  
  17. for (int FlasId = 0; FlasId < XmlSag.Count; FlasId++)
  18. {
  19.  
  20. //writer.WriteElementString("image", null);
  21. //writer.WriteAttributeString("picUrl", "Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
  22. //writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["DilID"].ToString());
  23. //writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Tarih"].ToString());
  24.  
  25.  
  26. writer.WriteStartElement("image", null);
  27. writer.WriteAttributeString("picUrl", "Yonetici/Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
  28. writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["HaberID"].ToString());
  29. writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Baslik"].ToString());
  30. writer.WriteEndElement();
  31.  
  32.  
  33. }
  34.  
  35. writer.Flush();
  36. writer.Close();
  37.  
MY WEB PAGE
http://www.evdenevenakliyatbul.com/
http://www.paslanmazbul.net
Jun 23 '08 #2
idsanjeev
241 100+
hi
i can't understand what you suggest .
Jun 23 '08 #3
DrBunchman
979 Expert 512MB
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
Jun 23 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: jeanfor | last post by:
I get a http 500 error on all asp pages. When turning off the friendly message box, the message is "Class does not exist". What is the fix for that? This affect all asp pages incling the default...
0
by: Dirk Försterling | last post by:
Hi all, a few days ago, I upgraded from PostgreSQL 7.2.1 to 7.4, following the instructions in the INSTALL file, including dump and restore. All this worked fine without any error (message). ...
3
by: Olivogt | last post by:
Hello, I was just puting an application on the web server but it did not work as usual... - I do develop on my notebook and move released applications to the Web server - both have Sql Server...
16
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've...
2
by: Martin | last post by:
Isn't it a mistake for XmlSiteMapProvider to use the url as the node key? What if you want to change the url? The node and the url should be decoupled, via a distinct key which does not change. ...
19
by: Angus | last post by:
I have a socket class CTestClientSocket which I am using to simulate load testing. I create multiple instances of the client like this: for (int i = 0; i < 5; i++) { CTestClientSocket* pTemp...
6
by: Max2006 | last post by:
Hi, I need to hide a series of siteMapNodes to certain roles. That means roles have access to the siteMapNode, but the node doesn't appear on the navigation menu. I'll use Response.Redirect to...
11
by: tracy | last post by:
Hi, I really need help. I run this script and error message appeal as below: drop trigger log_errors_trig; drop trigger log_errors_trig ERROR at line 1: ORA04080: trigger 'LOG_ERRORS-TRIG'...
3
by: moltendorf | last post by:
I copied the files from my "test" database on my old server (MySQL was not running) to my new server ("./mysql/data/test" folder), and after starting the server, SHOW TABLES; shows all of the tables...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.