Server Explorer in Visual Studio? That has nothing to do with code you're running in your app. Server Explorer is a tool in VS to allow you to browse server resources on your network. Personally I never use it.
You are being a little vague on what the actual problem is beyond a moved server. If you are referencing a database in your app and you moved the database then the database connection string needs to be changed. If you follow standard practice then the connection string is stored in your app's appsettings.json
(and environment-specific files). Update the connection string in those files and your app will use the new database.
If you hard coded the connection string in your code then move it to the appsettings.json
file and then fix the connection string as mentioned earlier.
Note that changing appsettings.json
does not require a rebuild of your app. You can technically go to your hosted app in IIS and change the settings in the file and restart the site and it'll use the new settings.