Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

"Setting system proxy settings are only supported in Windows" while in Windows MAUI App #936

Open
ricardoboss opened this issue Nov 9, 2022 · 5 comments

Comments

@ricardoboss
Copy link

Getting "Setting system proxy settings are only supported in Windows. Please manually configure you operating system to use this proxy's port and address." in MAUI (.NET 7) on Windows.

@ms777
Copy link

ms777 commented Nov 22, 2022

I had the same problem. I am using Titanium from Powershell. After upgrading from Powershell 7.2.7 (.Net 6) to Powershell 7.3 (.NET 7) my script stopped working

@Eonasdan
Copy link

For Maui this is because IsRunningAsUwp returns true

@Eonasdan
Copy link

MAUI is apparently sandboxe like UWP. If I comment out the check for uwp, maui does set the "registry", sort of. It sets the sandbox register. The maui app is then proxied through titanium but not outside requests (e.g. Chrome). The solution would be to either have a full trust companion (console app) that could adjust the system proxy or if you're just using Maui for the Blazor option then I'd ditch Maui for WPF + Blazor.

If you're interested in getting wpf + blazor to work let me know and I can pass on some additional info.

@ricardoboss
Copy link
Author

So, in short, you're saying Titanium Proxy cannot run in MAUI apps on Windows?

@Eonasdan
Copy link

It can but you'd have to set the registry values yourself and fork the code to by-pass the UWP check.

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

No branches or pull requests

3 participants