.Net5 Blazor application

Ami Sett 1 Reputation point
2020-11-24T19:21:30.93+00:00

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

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,390 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Shivam Tiwari 11 Reputation points
    2020-11-26T08:19:55.54+00:00

    I suppose you need to update the hosting bundles also from https://dotnet.microsoft.com/download/dotnet/5.0

    2 people found this answer helpful.
    0 comments No comments

  2. 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.

    0 comments No comments

  3. Ami Sett 1 Reputation point
    2020-11-25T12:01:07.347+00:00

    No error messages either

    0 comments No comments

  4. Jerry Cai-MSFT 986 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.

    0 comments No comments

  5. 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.

    0 comments No comments