Asp.net MVC5 Deployment to 3rd Party Server, could not find my database
-
19-10-2022 - |
Вопрос
I have successfully deploy my application with left click to project folder and publish. I have also fill my server and SQL server information which is in Settings tab. Everything is OK but when i look at my server with sql server management tools i could not see my DB file but i can CRUD also...
Where is my DB created ?
Here is my config file connection infor after deployment, it seems it is changed to my live DB which is correct.
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=94.***.***.***;Persist Security Info=True;User ID=sa;Password=*******" providerName="System.Data.SqlClient" />
<add name="DefaultConnection_DatabasePublish" connectionString="Data Source= ***********;Persist Security Info=True;User ID=sa;Password=******" providerName="System.Data.SqlClient" />
</connectionStrings>
Нет правильного решения
Не связан с StackOverflow