Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

After deploying a asp.net core application to local IIS, I don't see data in MSSQL tables.

$
0
0

Hi all

Technologies used: ASP.NET Core and EF Core, MS SQL and IIS in Windows 10.

I have created an application in ASP.NET core that does CRUD operation to a single table.

I use my local MS SQL Server to store the data.

Everything works as expected when I’m running the application from within visual studio.

Everything works as expected even when I’m running “dotnet run” from the command line and view the application from the browser in http://localhost:5000.

I tried to publish the application to my local IIS but the problem is that I don’t see any data!

The application is running and when I go to the view where I suppose to see the data, the view appears as if the table in the database is completely empty.

I’m trying to add a new record but after the addition there are no data. I’m not getting any errors!

I also enabled the “app.UseDeveloperExceptionPage();” but still I don’t get any error. My connection string look like this

Server=my_server_name;Database=my_database_name;Trusted_Connection=True;MultipleActiveResultSets=true

Anyone knows what is going on?

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>