ClickOnce runtime DFSVC.EXE

Can someone either detail or point me to some information on what role exactly the DFSVC.EXE plays in the execution cycle of a ClickOnce application? If I launch a ClickOnce application via: I see that a DFSVC.EXE process is started. I then see that the actual EXE process of my ClickOnce application is invoked (by … Read more

Why does .Net Socket.Disconnect take two minutes?

Timeout in case of Shutdown followed by Disconnect or BeginDisconnect will occur in the case if the other side Socket is not Receiving. Here how it works: Shutdown(SocketShutdown.Send) (or Both) produce SENDING of zero byte to other side. And then if you call Disconnect it will block until other side accept this zero byte packet. This is … Read more

How to resolve this System.IO.FileNotFoundException

I hate to point out the obvious, but System.IO.FileNotFoundException means the program did not find the file you specified. So what you need to do is check what file your code is looking for in production. To see what file your program is looking for in production (look at the FileName property of the exception), try these … Read more

Where Is Machine.Config?

32-bit 64-bit [version] should be equal to v1.0.3705, v1.1.4322, v2.0.50727 or v4.0.30319. v3.0 and v3.5 just contain additional assemblies to v2.0.50727 so there should be no config\machine.config. v4.5.x and v4.6.x are stored inside v4.0.30319.

How does the “Using” statement translate from C# to VB?

Using has virtually the same syntax in VB as C#, assuming you’re using .NET 2.0 or later (which implies the VB.NET v8 compiler or later). Basically, just remove the braces and add a “End Using” You can get the full documentation here http://msdn.microsoft.com/en-us/library/htd05whh(VS.80).aspx EDIT If you’re using VS2003 or earlier you’ll need the below code. … Read more

Associating enums with strings in C#

I like to use properties in a class instead of methods, since they look more enum-like. Here’s an example for a Logger: Pass in type-safe string values as a parameter: Usage: