0
Dim con As New OleDbConnection(My.Resources.ConnectionString)
// Give exception = Format of the initialization string does not conform to specification starting at index 62.
當我替代資源的實際價值,它給也不例外:
Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\rawData.xlsx;Extended Properties=""Excel 12.0 XML;""")
的ConnectionString的資源的價值:
<data name="ConnectionString" xml:space="preserve">
<value>Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\rawData.xlsx;Extended Properties=""Excel 12.0 XML;""</value>
</data>
我不明白爲什麼會發生這種情況?
我想這應該連編譯過程之前已被替換..
那爲什麼給例外呢?
愚蠢的錯誤..謝謝..解決了這個問題..! –