How to access file in WSS(Web Storage System) through browser or C# code?
Re-invent ASP.NET Hosting Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



How to access file in WSS(Web Storage System)... Expand / Collapse
Author
Message
Posted 11/18/2005 1:45:00 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/18/2005 1:43:00 AM
Posts: 1, Visits: 1

If I use OWA(Outlook Web Access) to access WSS, it can access directory. For example, http://localhost/public/myfolder. If I point to a file in such directory, for example http://localhost/public/myfolder/a1.xml, then browser will display 403 error and a1.xml can not be accessed.
Similarity, if I use following code to acesss http://localhost/public/myfolder/a1.xml, it still tell me the 403 error from catch statements:
try
{

 WebClient client = new WebClient();
 client.Credentials = new System.Net.NetworkCredential("username", "password");
 inputStream = client.OpenRead("http://localhost/public/myfolder/a1.xml");
 reader = new XmlTextReader(inputStream);
}
catch (WebException webEx)
{
 Console.Write(webEx.ToString());
}
Would you please tell me how to resolve this problem?



Thank you very much!
Post #224
Posted 12/5/2005 4:55:00 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 9:33:43 AM
Posts: 157, Visits: 371

Hello,

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.

Thank You



Paul B

Re-invent Technologies LLC
http://www.re-invent.com

Innovative ASP.NET 3.5/2.0 Hosting
Now with Windows 2008 Hosting and SQL 2008
Celebrating 10 Years in Business!

Post #228
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Administrator, Re-invent (Paul), Re-invent (Nick)

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 8:03am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 10 queries. Compression Disabled.


Copyright 2007 Re-invent Technologies LLC All Rights Reserved.