Solved

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

Posted on 2016-10-11
4
75 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 17

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 17

Expert Comment

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

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

Suggested Solutions

Title # Comments Views Activity
RLDC Reporting in Visual studio 11 30
Sharepoint SBS 2011 to sharepoint online 4 32
Name Space error VS2015 1 27
Access/Visual Basic Question 3 28
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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