<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Basic .NET</title><link>http://forums.asp.net/36.aspx</link><description>Discussions/Questions about the Visual Basic .NET language. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=14&amp;c=23" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to use Server.Mappath</title><link>http://forums.asp.net/thread/3268972.aspx</link><pubDate>Wed, 01 Jul 2009 13:11:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268972</guid><dc:creator>navi6975</dc:creator><author>navi6975</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268972.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3268972</wfw:commentRss><description>&lt;p&gt;thanks DrivenTooFar................Its working.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to use Server.Mappath</title><link>http://forums.asp.net/thread/3263478.aspx</link><pubDate>Mon, 29 Jun 2009 07:30:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263478</guid><dc:creator>Shengqing Yang - MSFT</dc:creator><author>Shengqing Yang - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263478.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3263478</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems that the xml files are not in the directory of your website. If so, we do not recommend you to use Server.MapPath&amp;nbsp;to fetch&amp;nbsp;the path of files. Copy the folder storing the xml files into your website folder and use the method to get them then.&lt;/p&gt;
&lt;p&gt;For more information about this method, please refer to this link: &lt;a href="http://msdn.microsoft.com/en-us/library/ms524632.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms524632.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Shengqing Yang&lt;/p&gt;</description></item><item><title>Re: How to use Server.Mappath</title><link>http://forums.asp.net/thread/3260694.aspx</link><pubDate>Fri, 26 Jun 2009 17:00:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3260694</guid><dc:creator>DrivenTooFar</dc:creator><author>DrivenTooFar</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3260694.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3260694</wfw:commentRss><description>&lt;pre class="vb.net" name="code"&gt;What is the root of this project called?&amp;nbsp; I am going to assume that it is sampleWS.&amp;nbsp; That being the case:&lt;/pre&gt;&lt;pre class="vb.net" name="code"&gt;Dim fs As FileStream = New FileStream(Server.MapPath(&amp;quot;xmls\&amp;quot; &amp;amp; GadgetName &amp;amp; &amp;quot;.xml&amp;quot;), FileMode.Open, FileAccess.Read)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to use Server.Mappath</title><link>http://forums.asp.net/thread/3260661.aspx</link><pubDate>Fri, 26 Jun 2009 16:42:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3260661</guid><dc:creator>navi6975</dc:creator><author>navi6975</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3260661.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=36&amp;PostID=3260661</wfw:commentRss><description>&lt;p&gt;Hi Friends,&lt;/p&gt;
&lt;p&gt;my code is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Dim&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;fs &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FileStream = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FileStream(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;C:\Documents and Settings\C100492\Desktop\Docs\sampleWS\xmls\&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; GadgetName &amp;amp; &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, FileMode.Open, FileAccess.Read)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;In the above&amp;nbsp;code I have to change the phisical path(C:\Document.............) with Server.mappath.&lt;/p&gt;
&lt;p&gt;Plz. let me know how to write the same code with Server.mappath. I have all xml files in my&amp;nbsp;local application folder(folder name:XML).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>