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

[BUG] Deploy to Azure Button #4929

Open
ubidev opened this issue Dec 19, 2024 · 7 comments
Open

[BUG] Deploy to Azure Button #4929

ubidev opened this issue Dec 19, 2024 · 7 comments

Comments

@ubidev
Copy link

ubidev commented Dec 19, 2024

Oqtane Info

Version - 6.0.0
Render Mode - Static
Interactivity - Server
Database - SQL Server

Describe the bug

I just successfully ran the "deploy to azure" button BUT when I go to the https://websitename.azurewebsites.net URL I get a default azure website status page instead of the oqtane initialization wizard

image

Expected Behavior

once deployed I should get the oqtane initialize wizard

Steps To Reproduce

click the "deploy to azure" button
fill the form with acceptable values
create
wait for success
clic the website provided address

Anything else?

I know there is a manuall way to do this documented here: https://blazorhelpwebsite.com/ViewBlogPost/1 but I really need that wizard to work because I plan to demonstrate/use oqtane during classes to noobs

Thanks in advance for taking the time. This project is simply Amazing

@sbwalker
Copy link
Member

@vnetonline I believe you were able to resolve the issues in the Deploy to Azure functionality in the past... are you able to investigate the latest issues?

@vnetonline
Copy link
Contributor

Yup I will have a look and investigate and fix

@vnetonline
Copy link
Contributor

I have recorded a FREE course on how to setup Oqtane on Local IIS

https://learnoqtane.com/course-page/!/4/how-to-setup-oqtane-on-local-iis

If you are not a member of LearnOqtane.com .. you can Join Now for FREE

@vnetonline
Copy link
Contributor

The Button to deploy to Azure is working properly, however when it has finished getting the source files from the master it fails because of a Build error see below

Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. [C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj]

NuGet Config files used:
      D:\DWASFiles\Sites\#120241221-1542-amazing\AppData\NuGet\NuGet.Config
  
  Feeds used:
      https://api.nuget.org/v3/index.json
  
  Installed:
      15 package(s) to C:\home\site\repository\Oqtane.Shared\Oqtane.Shared.csproj
      125 package(s) to C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj
      40 package(s) to C:\home\site\repository\Oqtane.Client\Oqtane.Client.csproj
Done Building Project "C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" (Restore target(s)).
Project "C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" on node 1 (default targets).
C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(135,5): warning NETSDK1223: Targeting .NET 9.0 or higher in Visual Studio 2022 17.11 is not supported. [C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj]
PrepareForBuild:
  Creating directory "bin\Release\net9.0\".
  Creating directory "obj\Release\net9.0\".
  Creating directory "C:\home\site\repository\Oqtane.Server\obj\Release\net9.0\refint\".
  Creating directory "obj\Release\net9.0\ref".
C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1060: Error reading assets file: Error loading lock file 'C:\home\site\repository\Oqtane.Server\obj\project.assets.json' : Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. [C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj]

Done Building Project "C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" (default targets) -- FAILED.

Build FAILED.

"C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" (default target) (1:7) ->
(_WarnWhenUsingNET9AndVSPriorTo1712 target) -> 
  C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(135,5): warning NETSDK1223: Targeting .NET 9.0 or higher in Visual Studio 2022 17.11 is not supported. [C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj]


"C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" (default target) (1:7) ->
(ResolvePackageAssets target) -> 
  C:\Program Files (x86)\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1060: Error reading assets file: Error loading lock file 'C:\home\site\repository\Oqtane.Server\obj\project.assets.json' : Could not load file or assembly 'System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. [C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj]

    1 Warning(s)
    1 Error(s)

Time Elapsed 00:04:03.79
Failed exitCode=1, command="C:\Program Files (x86)\MSBuilds\17.11.2\MSBuild\Current\Bin\MSBuild.exe" /restore "C:\home\site\repository\Oqtane.Server\Oqtane.Server.csproj" /p:DeployOnBuild=true /p:configuration=Release /p:publishurl="C:\local\Temp\8dd217a36b6dc47"
An error has occurred during web site deployment.
\r\nC:\Program Files (x86)\SiteExtensions\Kudu\103.100930.002\bin\Scripts\starter.cmd "C:\home\site\deployments\tools\deploy.cmd"

@ubidev
Copy link
Author

ubidev commented Dec 21, 2024

I understand.
Is this fixable?

@vnetonline
Copy link
Contributor

This related to dotnet/sdk#44197 (comment) i have made a comment that this hasn't been resolved

@richlander
Copy link

Can you share your project file? It isn't obvious to me how this behavior is related to that other issue.

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

4 participants