I suppose you need to update the hosting bundles also from https://dotnet.microsoft.com/download/dotnet/5.0
.Net5 Blazor application
Hi,
I have a project I'm developing using .Net Core 3.1 for a Blazor server-side project. As I only started this recently, I thought why not move the code to .Net5. So I've just copied and pasted most of my application over and renamed the namespaces and updated some NuGet packages as required.
However, functionality seems to be working in the dev environment on my pc (via code) but when I publish locally to IIS, that functionality just isn't working!!!
Any ideas anyone?
Am I missing something obvious?
Thanks in advance
Ami
7 answers
Sort by: Most helpful
-
-
Ami Sett 1 Reputation point
2020-11-25T10:39:16.213+00:00 Hi,
I'm mostly just talking about the login process I have.
Previously (in IIS), the user clicked the login button and the code to the business layer and then the database & if all is good the user object is returned and the user is navigated to their home page based on their role.
Now, there is nothing when the login button is clicked. I've ran sql profiler and the stored proc doesn't even get called!!!However, when I'm running the application via code - Visual Studio Express, it works both with debug & not.
-
Ami Sett 1 Reputation point
2020-11-25T12:01:07.347+00:00 No error messages either
-
Jerry Cai-MSFT 991 Reputation points
2020-11-26T06:41:58.97+00:00 Hi,AmiSett-4170
Is the request sent after clicking the login button?
You can use fiddler or use developer mode to check whether the request has been sent, if it was sent, there must be a response status code.
Then you can analyze the error according to that status code.
Best Regards,
Jerry Cai
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
-
Ami Sett 1 Reputation point
2020-11-26T12:58:14.03+00:00 Hi @Shivam Tiwari , already done.
@Jerry Cai-MSFT , Original problem seems to have been that the application couldn't read the appsetting.json file!!! But this seems to have resolved itself now.
Also have updated to the latest Sql server express (including management studio), the application isn't connecting to the database. For this I'm getting: 'Failed to open the explicitly specified database'...so searching for answers on this now.