目前我正在運行使用Oracle作爲數據庫的MVC項目。數據庫連接字符串錯誤
當我的解決方案運行時,它拋出異常:
'entitycommandexecutionexception'。
我以爲我的webconfig文件有一些問題,所以我看着我的webconfig。當我試圖保存它時,我的文件被保存並顯示錯誤消息
「不支持」數據源「關鍵字」。
我的webconfig ConnectionString的情況如下:
<connectionStrings>
<add name="bob" connectionString="metadata=res://*/Entities.bob.csdl|res://*/Entities.bob.ssdl|res://*/Entities.bob.msl;provider=Oracle.ManagedDataAccess.Client;provider connection string="DATA SOURCE=localhost/XE;PASSWORD=bobsamuel;PERSIST SECURITY INFO=True;USER ID=bobsamuel"" providerName="System.Data.EntityClient" />
</connectionStrings>
什麼樣的擴展有你的webconfig? .. .xml? –
是我的webconfig文件擴展名是.xml – Bob