Hi,
I wrote some code using asp.net core (using .net framework). Use EF to design my DB. Localy everything work!
In plesk i import the dump of the DB (export using MSSQL Management Studio).
The app runs ok but now i dont know to connect the WebApp to the DB on the sever.
I already read somestuff and try over and over without success... The other problems is where are the system errors log in plesk?
Thanks.
web.config
<?xml version="1.0" encoding="utf-8"?><configuration><!-- Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 --><system.webServer><handlers><add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /></handlers><aspNetCore processPath=".\TopElite.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" /></system.webServer></configuration><!--ProjectGuid: 13762a19-33de-4009-a429-3bbe7bec566d-->
appsettings.json
{"ConnectionStrings": {"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-TopElite-d355b606-79b4-4d73-b05d-d761e4ec05ee;Trusted_Connection=True;MultipleActiveResultSets=true" },"Logging": {"IncludeScopes": false,"LogLevel": {"Default": "Debug","System": "Information","Microsoft": "Information" } } }
Informations
Host .\MSSQLSERVER2016 Database name AAA User name USER Password PASS
And in the database myLittleAdmin i get this
Connection Connection string: Data Source=.\MSSQLSERVER2016;Integrated Security=False;User ID=USER;Connect Timeout=15;Encrypt=False;Packet Size=4096 Connection timeout: 15 Database: master Datasource: .\MSSQLSERVER2016 Network packet size: 4096 Server version: 13.00.1601 Work station id: CP82