Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将我的 asp.net 站点和 SQL Server 数据库上传到托管服务器时,如何设置和配置它?谢谢您最好的问候。
我认为这真的取决于您的托管设置。然后,它将定义在 ASP.NET 应用程序中必须进行的配置。
我有我的解决方案:
我在我的 web.config 2 连接字符串和我的代码中使用指令和符号调试我检查一个或另一个
-#if 调试
是我的测试机
-#别的
我的生产服务器
-#万一
并将我的连接字符串放入 if,接下来当我在发布模式下编译时,它使用我的生产服务器连接字符串