Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SharePoint > SharePoint Development
|
SharePoint Development Programming and development for SharePoint Portal Server and Windows SharePoint Services
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SharePoint Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2005, 12:15 AM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access file in WSS through browser or C# code?

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?








Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 3.5 and WSS 3.0 Bill-W-r-o-x BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 June 10th, 2008 01:31 PM
viewing asp code in web browser srotondo Classic ASP Basics 5 December 6th, 2007 10:50 AM
Can any one tell how to run chtml code in browser? frnd4u_dotnet ASP.NET 2.0 Professional 0 November 6th, 2007 10:02 AM
Viewing code rather than content in browser aspnewbie Classic ASP Basics 2 March 27th, 2006 10:47 AM
Maximising the browser window in code badgolfer ASP.NET 1.0 and 1.1 Basics 6 June 11th, 2004 03:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.