Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2016-10-11
4
Medium Priority
?
237 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 2000 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

661 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