Clean and Rebuild solution. Close solution and reopen it. Sometimes weird bug like this are fixed by these steps.
Connection String : Already added name
-
15-10-2022 - |
質問
Have seen same questions, but its all on ASP.Net, though I tried, <clear />
, well it doesn't work since when I compile, it reverts my edits in the .config file.
I don't want to recreate my app, so a little help is greatly appreciated.
Tried to open it on notepad, to "edit" it, but as I've said, it does not apply.
<connectionStrings>
<add name="NeoPiggery.My.MySettings.pigletsNewConnectionString"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\piglets.accdb"
providerName="System.Data.OleDb" />
<add name="NeoPiggery.My.MySettings.pigletsNewConnectionString"
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\pigletsNew.accdb"
providerName="System.Data.OleDb" />
</connectionStrings>
Tried to add <clear />
after the first connection string.. It worked. But the next time I Debug, same problem (Picture 1). Why does it keeps omitting my changes?? :/
解決
所属していません StackOverflow