Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top