﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Re-invent ASP.NET Hosting Community / SharePoint Services 2003 / SharePoint 2003  / How to access file in WSS(Web Storage System) through browser or C# code? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Re-invent ASP.NET Hosting Community</description><link>http://community.re-invent.com/</link><webMaster>community@re-invent.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 04:44:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to access file in WSS(Web Storage System) through browser or C# code?</title><link>http://community.re-invent.com/Topic224-8-1.aspx</link><description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The cause of this is that the file located in your folder structure cannot be seen by SharePoint as SharePoint data and files are stored in a server-side SQL Database. Unless the file path is explicitly included into the SharePoint path this error will occur.  At this time including and excluding file paths for SharePoint sites is a server-side setting we can make for you.  If you are a customer, please contact support and they can assist you with this.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description><pubDate>Mon, 05 Dec 2005 16:55:00 GMT</pubDate><dc:creator>Re-invent (Paul)</dc:creator></item><item><title>How to access file in WSS(Web Storage System) through browser or C# code?</title><link>http://community.re-invent.com/Topic224-8-1.aspx</link><description>&lt;P&gt;If I use OWA(Outlook Web Access) to access WSS, it can access directory. For example, &lt;a target=_blank href="http://localhost/public/myfolder"&gt;http://localhost/public/myfolder&lt;/A&gt;. If I point to a file in such directory, for example &lt;a target=_blank href="http://localhost/public/myfolder/a1.xml"&gt;http://localhost/public/myfolder/a1.xml&lt;/A&gt;, then browser will display 403 error and a1.xml can not be accessed.&lt;BR&gt;Similarity, if I use following code to acesss &lt;a target=_blank href="http://localhost/public/myfolder/a1.xml"&gt;http://localhost/public/myfolder/a1.xml&lt;/A&gt;, it still tell me the 403 error from catch statements:&lt;BR&gt;try&lt;BR&gt;{&lt;/P&gt;&lt;P&gt; WebClient client = new WebClient();&lt;BR&gt; client.Credentials = new System.Net.NetworkCredential("username", "password");&lt;BR&gt; inputStream = client.OpenRead("&lt;a target=_blank href="http://localhost/public/myfolder/a1.xml"&gt;http://localhost/public/myfolder/a1.xml&lt;/A&gt;");&lt;BR&gt; reader = new XmlTextReader(inputStream);&lt;BR&gt;} &lt;BR&gt;catch (WebException webEx) &lt;BR&gt;{&lt;BR&gt; Console.Write(webEx.ToString());&lt;BR&gt;}&lt;BR&gt;Would you please tell me how to resolve this problem?&lt;/P&gt;</description><pubDate>Fri, 18 Nov 2005 01:45:00 GMT</pubDate><dc:creator>askman</dc:creator></item></channel></rss>