UWP
17 TopicsRuntime Broker - Consuming lots of memory.
Hello All, I have developed a UWP app years ago to download and store files and sync data from a service of mine. This application has been stable and working without issues for long time, however a recent change in the behaviour of the solution has meant it's almost continually streaming data from the service and a side effect of that means the runtime broker is consuming so much memory the system grinding to a halt, even stopping the traffic doesn't free the memory. Is there any way I can debug what is happening with this RuntimeBroker or understand why this is happening?175Views0likes0CommentsSecure Data Storage for WinUI application
UWP being a sandboxed application had a way to save data using PasswordVault/Credential Manager, but WinUI doesn't offer the same level of security since other apps can access the data. DPAPI also doesn't provide a good way to protect the data as any app running in the same User Context can unprotect it. Adding entropy helps, but where do I store the entropy? Can somebody help me understand the mechanism for storing data securely in Windows App SDK?261Views0likes0CommentsUnique Device Identifier in MAUI
I am looking for a way to get a device identifier in NET MAUI that is cross platform compliant between Android/iOS/Windows. I originally had this code working in Xamarin Forms with the following: Android Context context = Application.Context; id = Settings.Secure.GetString(context.ContentResolver, Settings.Secure.AndroidId); iOS UIDevice.CurrentDevice.IdentifierForVendor.AsString().Replace("-", ""); Is there anything currently or planned in the future for use in NET MAUI. Thanks In Advance, Stuart Ferguson11KViews3likes1CommentIntegrate the Microsoft.BingAds.UETSdk into our UWP product
Hello, We are currently trying to integrate the UET (Universal Event Tracking) SDK ([Microsoft.BingAds.UETSdk](https://www.nuget.org/packages/Microsoft.BingAds.UETSdk)) into our UWP product. We have been following the documentation closely, but we encounter an issue as soon as we implement the step "Import all of the .NET Native / CoreCLR props" from [this guide](https://learn.microsoft.com/en-us/advertising/guides/windows-app-uet-sdk?view=bingads-13#cpluspluswinrt). After adding this step, when we attempt to submit our UWP package to the Windows Store, we receive the error: "You cannot submit pre-compiled .NET Native packages." For testing purposes, we created an entirely blank project and followed the instructions step by step: 1. Blank project (UetTestBlank.rar and UetTestBlank_1.0.60.0_x86_x64_arm_arm64) - successfully submitted to the Windows Store. 2. Added only the .dll without modifying project settings (UetTestUetPkgOnly_1.0.60.0_x86_x64_arm.appxbundle and UetTestUetPkgOnly.rar) - successfully submitted to the Windows Store. 3. Modified the project by adding "Import all of the .NET Native / CoreCLR props" (UetTestUetPkgWithProjectFileMod.rar and UetTestUetPkgWithProjectFileMod_1_0_60_0_x86_x64_arm_arm64_appxbundle) - submission failed with the error: UetTestUetPkgWithProjectFileMod_1_0_60_0_x86_x64_arm_arm64_appxbundle 3.2 MB, "Package acceptance validation error: You cannot submit pre-compiled .NET Native packages. Please upload the Microsoft Store appxupload file and try again." You can find all the project files here: [Dropbox link](https://www.dropbox.com/scl/fo/d6hr4k24z7sybzg6172r6/AOqBb_2zMBUPCuKgxrmbwhU?rlkey=1pzpak1l1aqcwuejapmmllpid&st=o2wmzce5&dl=0) Could there be any inaccuracies in the documentation, or does anyone have experience working with this library who could provide some guidance or examples? Thank you!228Views0likes0CommentsHow to add attachements to new outlook programmatically?
Hello, We have developped C# UWP application that send an email with attachement file through Courier app and its work fine). Our customers migrate from Courier to New Outlook and our programs still open New Outlook mail message with Recipient, Subject, and body, but attachement files not appears ! Default Mail App - is New Outlook Do you have any ideas to add attachement to new outlook ? We use the following code : protected async void SendMail(Email mail) { try { var emailMessage = new Windows.ApplicationModel.Email.EmailMessage(); emailMessage.AllowInternetImages = true; emailMessage.To.Add(new Windows.ApplicationModel.Email.EmailRecipient(mail.Destinataire)); emailMessage.Subject = mail.Sujet; emailMessage.Body = mail.Corps; var stream = Windows.Storage.Streams.RandomAccessStreamReference.CreateFromFile(mail.fichier); var attachment = new Windows.ApplicationModel.Email.EmailAttachment(fichier.Name, stream); emailMessage.Attachments.Add(attachment); await Windows.ApplicationModel.Email.EmailManager.ShowComposeNewEmailAsync(emailMessage); } catch (Exception ex) { } } Regards, Thibaud232Views0likes0Comments关于Microsoft Defender对VisualBasic.Net编写的软件报毒问题
大家好,我之前使用VS2019写过 VB.net 程序,该程序使用了Winform框架,除了导入了system.data.sqlite之外,其余任何组件都是使用的winform自带的组件,没有使用第三方库,并且仅仅只是一个数据库查询以及创建窗体的功能,将它编译好后,在打开时Microsoft Defender对其报毒(Trojan.xxx.A.xx)了,并且它不是每次打开都会报毒,是偶尔报一次毒,这对我的体验很不好,我无法找到它报毒的原因,请问这应该怎么解决?或者说我在写代码时应该注意什么以避免此问题。期待收到大家的回复,非常感谢885Views1like0CommentsHow to allow Kerberos authentication on SQL Express?
A self signed certificate has been installed on SQL Express but the WinUI UWP app still will not connect. The server log says: >SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required. I am not able to connect to SQL Express with the Inventory.Sample. Inventory Sample on GitHub Putting "TrustServerCertificate=True" at the end of the connection string fails. This connection string works in a console app to test ado connection "using Microsoft.Data.SqlClient;". string connString = @"Data Source=.\SQLEXPRESS;Initial Catalog=VanArsdelDb;Integrated Security=SSPI;TrustServerCertificate=True;"; The app and SQL Express are both on the same box.851Views0likes0CommentsProblems with creating a local build of a UWP project
Hi, there are some unknown problems with the local build of the UWP project. I am using visual studio 2022 with the latest version. When trying to create a build in the Release Version, I get the following errors shown in the screenshot. What could be the reasons for this?404Views0likes1Commenthow does MAUI handle cross-platform gesture recognition
specifically how is it implemented for each platform and where can i find the code for each platform in regards to this gesture recognition for example, for MacOS i assume there would be some custom NSView implementation with overrides for the following TouchesBeganWithEvent TouchesMovedWithEvent TouchesEndedWithEvent TouchesCancelledWithEvent and for android i assume there would be similar with custom View implementation and OnTouchEvent method override i do not know for windows nor linux as i have not experimented with those platforms yet specifically i assume the gesture API MAUI provides is truely cross-platform and has no platform-dependant behavioural differences (with some exceptions for certain gestures for example a mouse or stylus CANNOT perform a two-finger scroll gesture however would be implemented via the scroll-wheel if present on the mouse on a mobile-device a two-finger scroll gesture does not make sense since it is usually just one finger for scrolling on a trackpad two-finger scrolling makes sense however regardless of HOW it is implemented, the api would provide a platform-independant way of tracking how much the user has scrolled, possibly accounting for some sensitivity setting the user can modify at will similar to pointer-acceleration settings for large and small monitors and high dpi and low dpi monitors2.4KViews0likes2CommentsMAUI XAML "in-app toolbar" / "xaml inspector" no longer visible
Sorry for using some made up term but I have no idea what this little menu is called. So I referred to it as "xaml Inspector" I have 2 systems opening the same project, one is 17.3 preview 6 and the other is 17.3.2. On the preview version I can see this menu when I debug my MAUI app in Windows. I cannot see it on the 17.3.2 release, which seems to also be part of a wider debugging issue that I'm experiencing. Any idea how to fix this? Maybe I have changed a setting somewhere but am not aware of what. Thanks in advance!Solved1.5KViews1like2Comments