Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 163451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:34:11+00:00 2026-05-11T11:34:11+00:00

I have a Windows Forms application that runs locally on the user’s desktop. The

  • 0

I have a Windows Forms application that runs locally on the user’s desktop. The only way it accesses the Internet is by doing System.Diagnostics.Process.Start(url) to launch the user’s default browser and point it to various URLs (to check for updates, contact us, etc.). And none of this happens without the user explicitly requesting it by clicking a menu item or button.

On my machine I have been occasionally getting a Windows Firewall warning message upon starting up the program, saying that Windows Firewall has ‘blocked some features’ of the program to protect the machine. I also occasionally get this warning when running my program within Visual Studio (and the warning dialog says that vshost has been blocked from the network). It doesn’t happen all the time.

I have not heard from any of my customers that this has been happening on their PCs, but that doesn’t mean it’s not. And it’s a somewhat scary warning to a less-technically savvy user, so I’d like to figure out how to eliminate it if possible.

What could my program possibly be doing to trigger this warning?

Edit: The only somewhat unusual thing my program is doing at startup is that it uses the Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase class to enforce a single instance application. I know this does some threading magic behind the scenes to detect new instances and redirect them. Is it possible it’s listening on the network for some reason?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T11:34:12+00:00Added an answer on May 11, 2026 at 11:34 am

    Windows Firewall will only be triggered if your program is listening on a port – effectively acting as a server. System.Diagnostics.Process.Start will not trigger Windows Firewall.

    Instead, WindowsFormsApplicationBase is likely causing the firewall warning, because WindowsFormsApplicationBase uses remoting to sense other instances of itself. Using reflector, I found this code in WindowsFormsApplicationBase.Run():

    TcpChannel channel = this.RegisterChannel(secureChannel); RemoteCommunicator communicator = new RemoteCommunicator(this, this.m_MessageRecievedSemaphore); string uRI = applicationInstanceID + '.rem'; new SecurityPermission(SecurityPermissionFlag.RemotingConfiguration).Assert(); RemotingServices.Marshal(communicator, uRI); CodeAccessPermission.RevertAssert(); string uRL = channel.GetUrlsForUri(uRI)[0]; this.WriteUrlToMemoryMappedFile(uRL); this.m_FirstInstanceSemaphore.Set(); this.DoApplicationModel(); 

    As long as you use WindowsFormsApplicationBase for its SingleInstance feature, I don’t know of any way around this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 81k
  • Answers 81k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If your wordlist is very long, might it be more… May 11, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer So you only want to add a class? jQuery('a[href^=#]').click(function(){ var… May 11, 2026 at 4:28 pm
  • Editorial Team
    Editorial Team added an answer If you need this level of dynamic querying, LINQ is… May 11, 2026 at 4:28 pm

Related Questions

I have a Windows Forms application that runs locally on the user's desktop. The
I have several .NET Windows Forms applications that I'm preparing to convert into a
I have a c# application that runs as a windows service controlling socket connections
I have an application that has been getting strange errors when canceling out of
When I run my Visual Studio Windows Forms application by clicking F5 (debug mode),

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.