Publish MAUI - Telerik App - Error

1 Answer 1034 Views
General Discussions
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 03 Apr 2022, 07:57 AM

Hi,

I tried to publish the app and I got this error.

Any specials requirement to publish this app for testing.


03/04/2022 10:45:16
System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. 
   --- End of inner exception stack trace ---
---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---

Microsoft.WebTools.Shared.Exceptions.WebToolsException: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. 

===================

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 03 Apr 2022, 09:48 AM

Error from Event viewer.


Application: AutomationClient.MAUI.exe
CoreCLR Version: 6.0.222.6406
.NET Version: 6.0.2
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException: Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
   at AutomationClient.MAUI.WinUI.Program.XamlCheckProcessRequirements()
   at AutomationClient.MAUI.WinUI.Program.Main(String[] args)

Lance | Manager Technical Support
Telerik team
commented on 04 Apr 2022, 05:41 PM

Hi Daniel, please carefully review the license you agreed to before attempting to publish anything End user license agreement for UI for MAUI - EULA (telerik.com). If you have any questions on agreement you are legally bound to, contact the sales team here https://telerik.com/contact 

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 04 Apr 2022, 05:18 AM

Hello Daniel,

This question is not related to Telerik UI for .NET MAUI. It is a general .NET MAUI question. For general .NET MAUI questions I suggest you use the Microsoft Q&A. You can find post by typing .net maui/maui or using the "ask a question" button.

Regards,
Author nickname
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 04 Apr 2022, 04:45 PM

I tried to publish simple MAUI project as window also in your side ?
Lance | Manager Technical Support
Telerik team
commented on 04 Apr 2022, 05:23 PM

Daniel, as Didi mentioned, the problem you're having is related to dotnet preview SDK publishing, which has nothing to do with the Telerik UI for MAUI controls. The Telerik components are UI controls, and is not related to any of the dotnet SDK functionality.

I am closing this thread as unrelated. If you would like to have a discussion with someone about whether or not they can publish a WinUI3 MAUI app, you can do this on StackOverflow, Microsoft Q&A or on the MAUI GitHub.

As a side note, we've discussed this on many different occasions that the Telerik forums are available for getting help with the Telerik functionality. You are wasting days of time in getting help by asking these types of questions here, as we cannot answer your general SDK questions and may possibly end up closing your case without a response at all (especially continuing to ask questions from the same engineer who just said where you can find help).

I highly recommend the three options I mentioned above for general technology help, for Telerik-related assistance, we're happy to assist.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 04 Apr 2022, 07:48 PM

i already open issue in microsoft.

Regarding the publish, it was for testing purposes.

Thanks.

Lance | Manager Technical Support
Telerik team
commented on 04 Apr 2022, 08:36 PM

That's good news. Specifically, I do not believe this is related to even the MAUI SDK. It looks like a typical msbuild setup for packaging single-project MSIX WinUI3 project types (remember MAUI is just a layer on top of whatever the platform is, you still need to follow the platform's publishing steps)

I do not know if the VS2022 Preview GUI is an option for WinUI3 projects, I've never published a UWP or WinUI3 project that way. I've always done it via the command line. In any case, you can Google "How to publish/package a WinUI3 project", here are some of my favorite results:

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 07 Apr 2022, 11:44 AM | edited

Hi,

I used Visual Studio Community 2022 17.2 Preview 2.1 .NET MAUI Preview 14
My question is it possible to create excutable file in Window platform ?
In this link: https://www.youtube.com/watch?v=jfSVb_RR7X0
:Create a Signed and Publishable .NET MAUI Android App in VS2022
I this link:
https://www.youtube.com/watch?v=kpZi5xAvpZA

Release Your .NET MAUI iOS App to the Apple App Store

For window I find this link:

https://www.youtube.com/watch?v=FNwv_W3TtSU

Create a .NET MAUI Windows MSIX to Sideload Or Publish to the Microsoft Store

My question is not possible to publish without creating certificate ?

Thanks in advance,

 

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 12 Apr 2022, 08:20 AM

If you don't have an answer please give me someone who can advise to publish Visual Studio Community 2022 17.2 Preview 2.1 .NET MAUI Preview 14 with class library net6 reference to it.
Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 20 Apr 2022, 12:06 PM

I moved to 17 preview 3 and still not succeeded to deploy my app .

Does give me someone who can advise to publish and create exe from it ?

Lance | Manager Technical Support
Telerik team
commented on 20 Apr 2022, 01:35 PM

Hi Daniel,

App publishing is something that Telerik Support doesn't have resources for, as it is a feature of the SDK rather than a feature of UI for MAUI controls.

I do remember seeing some threads in the MAUI Issues and I think I also remember seeing a blog series form the same author. Search here => https://github.com/dotnet/maui/issues 

 

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 11 May 2022, 02:16 PM

I succeeded published the app using this tread:https://github.com/dotnet/maui/issues/6717

But there is one more issue after publish in release mode,

I run the MSIX and go to Task Manger on processes tab and choose the exe and go to details and you see all dlls and images ..... is not a bug ? look on attached screenshot.

Lance | Manager Technical Support
Telerik team
commented on 11 May 2022, 04:03 PM

We do not support publishing with the previews. It's also against the legal terms you agreed to with the terms of service for the UI for MAUI preview releases.

Once Telerik UI for MAUI is available, and you purchase a license, then you can attempt publishing. If you have an issue then, you can open a Technical Support Ticket using your license.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 11 May 2022, 04:24 PM

it is for testing purposes.

We are waiting to buy the licence.

 

Lance | Manager Technical Support
Telerik team
commented on 11 May 2022, 04:41 PM

I understand, please don't misunderstand my response as saying I think you're trying to publish with preview bits. However, while we're in preview, we cannot promise any sort of compatibility with packaging and distribution (we do not even have our own demo apps in the stores yet because .NET MAUI itself isn't even GA, it is currently RC3).

when release comes, you can then compile/package your project with the non preview version of Visual Studio and use the official SDK and MSBuild.

Right now you are using a preview version of MSBuild, a preview version of .NET MAUI and a preview version of Telerik UI for MAUI. It would be early coincidence if all of those work well enough to produce a final, trimmed and distributable application.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 11 May 2022, 04:48 PM

ok
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Didi
Telerik team
Share this question
or