Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor-Server app run only in Development Environment #21077

Open
1 task done
enny1170 opened this issue Oct 14, 2024 · 8 comments
Open
1 task done

Blazor-Server app run only in Development Environment #21077

enny1170 opened this issue Oct 14, 2024 · 8 comments

Comments

@enny1170
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

Unable to run a Blazor-Server app without sett ASPNETCORE_ENVIRIONMENT to Development.
Compiling for Debug or Release works fine.
Try to run the compiled App for Commandline by typing dotnet xxx.Blazor.dll does nothing.

Reproduction Steps

create a new App with app-cli -ui blazor-server
do install-libs by cli
go to src/myapp.blazor
call dotnet build
go to bin/Debug/net8.0 folder
call dotnet myapp.blazor.dll
nothing happens
call dotnet myapp.blazor.dll --environment Development
the app will start with a error because of the virtual filesystem provider
call dotnet myapp.blazor.dll --environment Staging
nothing happens

Expected behavior

the app starts or give a meaningful message is something wrong

Actual behavior

it does nothing. returns to the command prompt. No Messages.

Regression?

this has worked in Version 8.0.1

Known Workarounds

No response

Version

8.3.1

User Interface

Blazor Server

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

macOS

Other information

I have try it also on Windows 11. same behavior.

@enny1170 enny1170 added the bug label Oct 14, 2024
@maliming
Copy link
Member

hi

Check your logs.txt file.

@maliming maliming removed the bug label Oct 16, 2024
@enny1170
Copy link
Author

enny1170 commented Oct 16, 2024 via email

@maliming
Copy link
Member

Please share the files in bin/Release/net8.0

@enny1170
Copy link
Author

enny1170 commented Oct 16, 2024 via email

@maliming
Copy link
Member

Can you share your project source code?

I have tested in a new template project but it works.

@enny1170
Copy link
Author

enny1170 commented Oct 17, 2024 via email

@maliming
Copy link
Member

This is not a blazor app.

image

@enny1170
Copy link
Author

enny1170 commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants