Solved

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

Posted on 2016-10-11
4
33 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 14

Accepted Solution

by:
SneekCo 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 14

Expert Comment

by:SneekCo
ID: 41838527
Strange things happen dealing with IT !
0
 
LVL 14

Expert Comment

by:SneekCo
ID: 41838575
Thanks, glad that helped.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now