Solved

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

Posted on 2016-10-11
4
58 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
  • 3
4 Comments
 
LVL 16

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 16

Expert Comment

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

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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