DynamoDS/Dynamo — pull request #1807 by aparajit-pratap (2014-06-25 07:28:22+00:00)
Title: Defect Fix: MAGN-3373 Passing xlsx file to Import.csv crashes Dynamo

Crash happened because the same file that was opened in Excel was being read from, using File.OpenText. You can't use File.OpenText for this, OpenText tries to open the file in "shared read" mode which fails if another application/thread has the file open for writing. We have to use the FileStream class and open the file
for reading with sharing mode set to ReadWrite.