0

I am new to c# and have created a web form using ASP.NET 4.7.2 and Visual Studio 2019. One of my buttons links to a url using:

System.Diagnostics.Process.Start("www.google.com", "_blank");

However, when I debug my app locally, it works fine. Once I deploy the app and click on the same button, this error shows up:

Exception Details: System.ComponentModel.Win32Exception: No application is associated with the specified file for this operation

This points directly at the line where I make the call to System.Diagnostics.Process.Start.

What am I doing wrong?

Zizzipupp
  • 1,301
  • 1
  • 11
  • 27

0 Answers0