When clicked Yes for pop up "To run this application, you must install .NET. Would you like to download it now?", it won't open web page to download .net if I already have some other .net installed.

My application needs ".NET 5.0 Desktop Runtime" to get executed and if this .net version is not available then the application gives pop up saying "To run this application, you must install .NET. Would you like to download it now?". If I Click on yes, it will open web page to download the " .NET 5.0 Desktop Runtime", However if I already have some other version like "Microsoft Windows Desktop Runtime 6.0.24" then it still shows that pop up but it will not open any web page when clicked on yes button like previously.

I found Microsoft document related to it but it won't answer my question
Troubleshoot app launch failures - .NET | Microsoft Learn

Hi,
I'm Rodrigo and I'll help you.
Here is the link for .NET Desktop Runtime 5.0.
Download, install it, and check if it solves your issue.

https://dotnet.microsoft.com/en-us/download/dot...
If I helped you anyway, It makes me happy.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

It does work with this version but my question is different. The problem is when we click "yes" on the below pop up, it won't take to the web page if we already have a different version installed. Please read the description again for more info.
Image

2 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Since .NET 5.0 is out of support, it redirects to the supported version above 5.0 which is 6.0 and if you already have it installed, it will not redirect to any page.
If I helped you anyway, It makes me happy.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

If that's the case then why below scenario works:
if I uninstall the .net 6.0 (ie having no .net)and then run my application and if I click on Yes button on the pop up, this time it opens the web page for Download .NET 5.0 Desktop Runtime (v5.0.17) - Windows x64 Installer (microsoft.com)
According to your above point, shouldn't it has to open .net 6 download page instead of .net 5.
I think if there is a pop up saying "Would you like to download it now?" in any case, it should open the correct web page.

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I see. So are you developing an application and this application needs .NET 5.0 Desktop Runtime, right?
If I helped you anyway, It makes me happy.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

yes. But the scenario is if some other person is using this application and somehow uninstall the .NET 5.0 Desktop Runtime and if he already have .NET 6 Desktop Runtime installed in his computer than he won't get to know that which version is required to run this application since clicking on Yes button won't do anything. And this check is happening before my application runs any code.
I know if I move my application to .NET 6 then I won't have this issue but just wanted to see if I can fix it without upgrading.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thank you for explaining. This is not the best place to get help with it, since this is a user forum. I recommend you create a question on the Q&A forum to get specialized help.

Here is the .NET page on the D&A forum:
https://learn.microsoft.com/en-us/answers/tags/...
If I helped you anyway, It makes me happy.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thanks for that suggestion. I have just created a question on .NET page.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Great! I hope you find the help you need there.
If I helped you anyway, It makes me happy.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 17, 2025 Views 2,416 Applies to: