Solved

Read files from a sharepoint document library with vb.net via webdav path

Posted on 2016-10-11
4
171 Views
Last Modified: 2016-10-11
I have a solution which is reading files like xml or png from a network share. Now some customers want to move to SharePoint. We realized that the document library can be opened in windows explorer and we can use a unc path to read the files the same way we read the files from the network share. So we don't need to change the application. We use the webdav path like:
\\mysharepoint@SSL\DavWWWRoot\my Files
I can now get informations about the xml file:
Dim fi As New IO.FileInfo("\\mysharepoint@SSL\DavWWWRoot\my Files\test.xml")
But I can't load the xml file:
Dim xmlDoc As New Xml.XmlDocument
xmlDoc.Load("\\mysharepoint@SSL\DavWWWRoot\my Files\test.xml")
I get an error that the uri isn't ccorrect.

Some weeks ago I can read the xmlfile with another path:
xmlDoc.Load("\\mysharepoint\my Files\test.xml")
But now it doesn't work anymore. I get a message that I have no access to this path and I just add it to the trusted sites in internet explorer. Maybe something changed on my SharePoint (office365)?
I also can't open this path (without davwwwroot) anymore in the windows explorer, I'm sure I could open this path before.

Can anyone help me? I don't want to change every reading operation in my application for SharePoint libraries. Is this possible?
0
Comment
Question by:ElkeG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
Walter Curtis earned 500 total points
ID: 41838339
This may be a long shot and is not best practice, but might help you out. You can use a drive letter to map to a SharePoint document library. In that way you may be able to avoid some of the issues you are having.

Hope that helps...
0
 

Author Comment

by:ElkeG
ID: 41838510
Thanks a lot!
We also thought about a drive letter, but we ant to avoid it because every pc in a network needs the same drive letter.
I tried it again on my pc: logged off from the SharePoint and logged in again and suddenly I can access the document library without the ssl and webdav in the path.
That's strange.
0
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41838527
Strange things happen dealing with IT !
0
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41838575
Thanks, glad that helped.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question