question

AmiSett-4170 avatar image
0 Votes"
AmiSett-4170 asked JerryCai-MSFT edited

.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

dotnet-runtimedotnet-aspnet-core-blazor
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you show us the error messages or pages? Now we can't locate the problem for you

0 Votes 0 ·
AmiSett-4170 avatar image
0 Votes"
AmiSett-4170 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AmiSett-4170 avatar image
0 Votes"
AmiSett-4170 answered

No error messages either

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JerryCai-MSFT avatar image
0 Votes"
JerryCai-MSFT answered JerryCai-MSFT edited

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ShivamTiwari-4600 avatar image
2 Votes"
ShivamTiwari-4600 answered ShivamTiwari-4600 published

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AmiSett-4170 avatar image
0 Votes"
AmiSett-4170 answered

Hi @ShivamTiwari-4600, already done.
@JerryCai-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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KevorkKeheian avatar image
0 Votes"
KevorkKeheian answered

I think you only installed the runtime of .net 5.0
Make sure you install the hosting bundle of .net 5.0

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AmiSett-4170 avatar image
0 Votes"
AmiSett-4170 answered JerryCai-MSFT edited

All installed on server. Getting : This site can’t be reached with a port number of 465 & ERR_UNSAFE_PORT.
Any ideas?

Thanks in advance

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can try to use --explicitly-allowed-ports=XXX to your browser like ..\Application\chrome.exe --explicitly-allowed-ports=XXX

0 Votes 0 ·