문제

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.
enter image description here

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?? :/

도움이 되었습니까?

해결책

Clean and Rebuild solution. Close solution and reopen it. Sometimes weird bug like this are fixed by these steps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top