Home > Net >  ASP.NET debugging and running the database can be connected with vs success, after the release site
ASP.NET debugging and running the database can be connected with vs success, after the release site

Time:09-21

ASP.NET debugging and running the database can be connected with vs success, after the release site (published to the phone) will not be able to connect, could you tell me how to troubleshoot the problem,

CodePudding user response:

Because you after release, database and web site would not be in a machine is in the above, you may use the localhost,

You need to open the database port 1433, and then end the program using IP addresses instead of localhost

CodePudding user response:

Check the config configuration, or whether to open the firewall port 1433

CodePudding user response:

Recently and found this problem, you look at your database in the configuration file link string, is a user login or Windows authentication

CodePudding user response:

The error message posted

CodePudding user response:

Error log posted, arguably, should not make a mistake, if you release in the machine

CodePudding user response:

https://blog.csdn.net/yenange/article/details/77026214

https://blog.csdn.net/yenange/article/details/50853083

CodePudding user response:

refer to 4th floor are nu month god reply:
the error message posted


The problem is how to capture this error message?

CodePudding user response:

refer to 6th floor gypsy song response:

https://blog.csdn.net/yenange/article/details/77026214
https://blog.csdn.net/yenange/article/details/50853083


Warrior, my test result is as follows:


But after the release site (published to the phone) or unable to connect,

  • Related