Hi, I´ve been using Radzen Studio and it works fine. We just adquired a license but for Blazor Studio and the App works fine, but when I try to Deploy it, it fails giving denied access to the remote server. If I go to Radzen Studio and make a deploy, it works just fine but it fails in Blazor Studio. It's a .NET 7 app and in Blazor I can only see options for .NET 8 and 9.
Is there anything else that I need to do in order to deploy correctly?
This is the log shown in the Console:
C:\Program Files\dotnet\sdk\9.0.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(208,5): warning NETSDK1198: No se encontró un perfil de publicación con el nombre 'IISProfile' en el proyecto. Establezca la propiedad PublishProfile en un nombre de archivo válido. [C:\Users\PORTLAND STUDIO\source\repos\MasterEmpleados\client\MasterEmpleados.Client.csproj]
Al optimizar el tamaño de los ensamblados, es posible que cambie el comportamiento de la aplicación. Asegúrese de probarla después de su publicación. Visite Trim self-contained applications - .NET | Microsoft Learn
MasterEmpleados.Server -> C:\Users\PORTLAND STUDIO\source\repos\MasterEmpleados\server\bin\Release\net7.0\publish
Info: Usando el id. '679b57e7-d821-4bed-a5c6-5f512546bb30' para las conexiones al servidor remoto.
MSDEPLOY : Código de error : ERROR_DESTINATION_NOT_REACHABLE [C:\Users\PORTLAND STUDIO\source\repos\MasterEmpleados\server\MasterEmpleados.Server.csproj]
MSDEPLOY : error : No es posible conectar con el servidor remoto [C:\Users\PORTLAND STUDIO\source\repos\MasterEmpleados\server\MasterEmpleados.Server.csproj]
MSDEPLOY : error : No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.3.219:8172 [C:\Users\PORTLAND STUDIO\source\repos\MasterEmpleados\server\MasterEmpleados.Server.csproj]
It says that it cant find the Publish Profile, and after that a few errors are displayed.
As far as I understand the error message says it can't make a connection with the remote server. Did you check if the connection details are correct? Also did you try changing the Publish method or running Radzen Blazor Studio as administrator account? Finally does deploying this app from Visual Studio work?
When I deploy the same project with Radzen Studio, it works fine. But this errors happen when I deploy with Blazor Studio.
The same happens with Visual Studio.
So there is no problem with server, network neither security.
I've also checked and the server has WebDeploy and Web Management Service installed and running.
I can deploy by using the Folder option, but this involves additional manual steps.
Does the deploy process changed from Radzen Studio to Blazor Studio?
Yes, we are now using the dotnet command line tool for deployment combined with a published profile (pubxml) file. Similar to what Visual Studio does. This is why I asked if it works from Visual Studio - the deployment procedure is identical.
Yes, I mean that it also fails from Visual Studio, same errors.
I'm trying to deploy right now but now I'm also having issues with Radzen Studio to deploy, it takes a lot of time to optimize and never ends.
Let me try to restart this computer and the server.
I was able to make it work again. I forgot that I changed .NET 7 to .NET 8 yesterday.
Deployment works just fine when I use the Folder deploy option in Blazor Studio, but fails when I try to deploy using the IIS options. In Radzen Studio I was using the Deployment Agent Service, that option did the job, but now in Blazor Studio I just have the option to compile to a folder, so I have to manually upload it to the server and start the .exe.
This computers are not working in a domain environment, so I can´t setup a network access to make Blazor Studio to upload it to the server because it lacks of an option to impersonate the server admin user.
I can keep working with Radzen Studio, but I plan to move all the solution to Blazor Studio, so I have a few questions:
If I change the .NET 7 to .NET 8 and work with Blazor, is there anything else I need to do in order to avoid issues with the upgrade?
I'm also planning to switch from ASP.NET Core Identity to Azure AD, any special considerations to have to make this works appart from having to reassign roles?