HtmlWeb.Load throws System.IO.IOException

Topics: Developer Forum, User Forum
Nov 23, 2010 at 11:22 AM

Hi,

I try to load a simple textfile (csv) via HtmlWeb.Load method using UNC uri format like "\\myServer\myPath\MyDocument.csv"

Unfortunatly, somebody opened the file with MS Excel, so I get a System.IO.IOException "The process cannot access the file because it is used by another process". So why that? HtmlWeb shouldn't care if the file is used, since the access should be read-only.

 

Any ideas?