dataSettings.json doesn't exist after I published Nop.Web to a hosting server

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 6 años
I built nop 4.0 in my local computer.
After I published Nop.Web, my url keeps going to the installation page.
How can I modify a connection string after I publish Nopcommerce 4.0 to a web server?
Hace 6 años
Hello,

Yes after published nop.web dataSettings.json doesn't copy under app_data.

You have to manually copy and paste to published code.

Thanks,
Hace 6 años
Thank You. I fixed the issue.
Hace 6 años
Just a note for those looking

If you set BuildAction to None,
and Copy to Output Directory to Copy always
for the properties on dataSettings.json and installedPlugins.json
They will then be copied when you publish so dont have to do a manual copy
Hace 5 años
Thank you so much!  With your advice I was able to fix the issues I was having with the SQL Connection String.  This works great for nopc 4.0.  This is very useful because you can have either your nopc4 instance installed on localhost to point to the database and also if you run nopc using visual studio you can make it also point to the same database.  Thank you very much!
Hace 5 años
Remove this line in Nop.Web.csproj file:

<Content Update="App_Data\*.json" CopyToPublishDirectory="Never" />
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.