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.
6 years ago
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?
6 years ago
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,
6 years ago
Thank You. I fixed the issue.
6 years ago
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
5 years ago
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!
5 years ago
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.