dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.15k stars 1.74k forks source link

Can't "Pair to Mac" > Problem with Xamarin Website? #24809

Closed marco-skizza closed 1 month ago

marco-skizza commented 1 month ago

Description

Dear .NET MAUI Team

Currently I can't "Pair to Mac". I get an:

Object reference not set to an instance of an object.

In the log file under %localappdata%\Xamarin\Logs\17.0 I found, that there are problems accessing to following url:

https://software.xamarin.com/service/products

Is this url maintained by you...?

Kind Regards Marco

Steps to Reproduce

Link to public reproduction project repository

-

Version with bug

Unknown/Other

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

-

Did you find any workaround?

No response

Relevant log output

DateTime=2024-09-17T17:24:20.6179720Z: 09.17.2024 17:24:20Z
Xamarin.VisualStudio.Services.ProductsService Error: 0 : The Products Service response was not successfull. Service URL: https://software.xamarin.com/service/products, Request Content: [{"ProductGuid":"4569c276-1397-4adb-9485-82a7696df22e","Version":"16.4.0.23"}], Response Code: InternalServerError, Response Content: <!DOCTYPE html>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title> HTTP Error 500.30 - ASP.NET Core app failed to start </title>
        <style>
            body {
                font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
                font-size: .813em;
                color: #222;
                background-color: #fff;
            }

            h1, h2, h3, h4, h5 {
                /*font-family: 'Segoe UI',Tahoma,Arial,Helvetica,sans-serif;*/
                font-weight: 100;
            }

            h1 {
                color: #44525e;
                margin: 15px 0 15px 0;
            }

            h2 {
                margin: 10px 5px 0 0;
            }

            h3 {
                color: #363636;
                margin: 5px 5px 0 0;
            }

            code {
                font-family: Consolas, "Courier New", courier, monospace;
            }

            body .titleerror {
                padding: 3px 3px 6px 3px;
                display: block;
                font-size: 1.5em;
                font-weight: 100;
            }

            a {
                color: #1ba1e2;
                text-decoration: none;
            }

                a:hover {
                    color: #13709e;
                    text-decoration: underline;
                }

            li {
                margin: 5px;
            }

        </style>
    </head>
    <body>
        <h1> HTTP Error 500.30 - ASP.NET Core app failed to start </h1>

        <h2> Common solutions to this issue: </h2><ul><li>The app failed to start</li><li>The app started but then stopped</li><li>The app started but threw an exception during startup</li></ul>

        <h2> Troubleshooting steps: </h2>
        <ul>
            <li> Check the system event log for error messages </li>
            <li> Enable logging the application process' stdout messages </li>
            <li> Attach a debugger to the application process and inspect </li>
        </ul>

        <h2>
            For more guidance on diagnosing and handling these errors, visit
             <a href="https://go.microsoft.com/fwlink/?LinkID=2028526"> <cite>Troubleshoot ASP.NET Core on Azure App Service and IIS</cite></a>.
        </h2>
    </body>
</html>
: 09.17.2024 17:24:21Z
    DateTime=2024-09-17T17:24:21.1408762Z: 09.17.2024 17:24:21Z
Xamarin.VisualStudio.Services.ProductsService Error: 0 : The Products Service response was not successfull. Service URL: https://software.xamarin.com/service/products, Request Content: [{"ProductGuid":"964ebddd-1ffe-47e7-8128-5ce17ffffb05"}], Response Code: InternalServerError, Response Content: <!DOCTYPE html>
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title> HTTP Error 500.30 - ASP.NET Core app failed to start </title>
        <style>
            body {
                font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
                font-size: .813em;
                color: #222;
                background-color: #fff;
            }

            h1, h2, h3, h4, h5 {
                /*font-family: 'Segoe UI',Tahoma,Arial,Helvetica,sans-serif;*/
                font-weight: 100;
            }

            h1 {
                color: #44525e;
                margin: 15px 0 15px 0;
            }

            h2 {
                margin: 10px 5px 0 0;
            }

            h3 {
                color: #363636;
                margin: 5px 5px 0 0;
            }

            code {
                font-family: Consolas, "Courier New", courier, monospace;
            }

            body .titleerror {
                padding: 3px 3px 6px 3px;
                display: block;
                font-size: 1.5em;
                font-weight: 100;
            }

            a {
                color: #1ba1e2;
                text-decoration: none;
            }

                a:hover {
                    color: #13709e;
                    text-decoration: underline;
                }

            li {
                margin: 5px;
            }

        </style>
    </head>
    <body>
        <h1> HTTP Error 500.30 - ASP.NET Core app failed to start </h1>

        <h2> Common solutions to this issue: </h2><ul><li>The app failed to start</li><li>The app started but then stopped</li><li>The app started but threw an exception during startup</li></ul>

        <h2> Troubleshooting steps: </h2>
        <ul>
            <li> Check the system event log for error messages </li>
            <li> Enable logging the application process' stdout messages </li>
            <li> Attach a debugger to the application process and inspect </li>
        </ul>

        <h2>
            For more guidance on diagnosing and handling these errors, visit
             <a href="https://go.microsoft.com/fwlink/?LinkID=2028526"> <cite>Troubleshoot ASP.NET Core on Azure App Service and IIS</cite></a>.
        </h2>
    </body>
</html>
: 09.17.2024 17:24:21Z
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Kremed commented 1 month ago

windows Registry Editor => Computer\HKEY_CURRENT_USER\Software\Xamarin\VisualStudio\MacAgent Just Add new String var "DisableMonoValidation" = "True" Now You can connect but may you can't debug your app

image

marco-skizza commented 1 month ago

Thanks @Kremed! But I'd rather wait for the effective problem to get fixed...

Kremed commented 1 month ago

Thanks @Kremed! But I'd rather wait for the effective problem to get fixed...

Thank you for the response! Could you clarify what the "effective problem" is? Are there any resources or updates you could share regarding this issue?

marco-skizza commented 1 month ago

As I understand, there's a problem with a Xamarin website that gets queried by Visual Studio. I think I read in an earlier issue, that this website is hosted by the .NET MAUI team. My point was, that I'd rather wait for the website to be fixed - as I don't want to "mess" with the Registry.

mrdhockey87 commented 1 month ago

I have the same problem and the while the registry entry of "DisableMonoValidation = true" does allow the mac to pair to my Windows system it is useless as I can't access the iOS Simulators or the iPad that I have attached to my Mac. So while it says it's connected it is not really connected as it wont let me do anything that requires a connection to the Mac. Please fix this very Quickly.

Thomr77 commented 1 month ago

We are experiencing the same issue.

LeoJHarris commented 1 month ago

@marco-skizza we updated the registry and its working fine now, removing the the registry key should be as simple as adding it.

EddyCwdry commented 1 month ago

@marco-skizza we updated the registry and its working fine now, removing the the registry key should be as simple as adding it.

The registry only lets us connect, you cannot debug or access simulators, it's not really a 'fix' it just kicks the issue further down the road. Being connected to the mac by itself is useless for 99% of the people who are trying to pair to mac. People shouldn't need to arbitrarily manage registry keys whenever Microsoft drop the ball.

LeoJHarris commented 1 month ago

@EddyCwdry Debugger wasn't being impacted for me when adding the registry, maybe check debugger setting if this was changed in the project?

EddyCwdry commented 1 month ago

@EddyCwdry Debugger wasn't being impacted for me when adding the registry, maybe check debugger setting if this was changed in the project?

There are no remote devices or simulators listed, can't exactly debug when we can't even pick a device to debug. If you re-read the message by the person saying to add the registry key, they also state that debugging may not work.

Just Add new String var "DisableMonoValidation" = "True" Now You can connect but may you can't debug your app

dotnet-policy-service[bot] commented 1 month ago

Thanks for the issue report @marco-skizza! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
marco-skizza commented 1 month ago

Some unknown hero fixed the website. Thanks! 👍 If anybody knows (for the next time): Who's responsible for hosting this Xamarin website...?

marco-skizza commented 1 month ago

Hi all Maybe you also want to vote for the following feature request: https://developercommunity.visualstudio.com/t/Pair-to-Mac-should-not-fail-if-the-Xamar/10746659