I added a file to \Windev1\wwwroot\dvg
Which is the location on the network of where the source code is that I am using.
Now when I try to open the file in code I get an exception that says
Access to the path '\\Windev1\wwwroot\dvg\ProductsToXml.xml' is denied.
The code I am using to access the file is
Dim writer As New XmlTextWriter("\\Windev1\wwwroot\dvg\ProductsToXml.xml", Nothing)
Is this from an regular desktop application or from an ASP.NET page? If it is from an ASP.NET web app then you will need to run your application as a user that has access to the remote folder or impersonate that user before you try to access the file.
If it is a regular desktop application then I would expect that you would get the same error in Windows explorer which just means that you need to give your logged in user permissions on the remote folder.
Also, if your app is a Windows service you should change the user credentials that the service runs under to a user that has access to the network share.