Posts

Showing posts from 2022

Visual Studio 2022 performance tips

  Visual Studio performance recommendations are intended for low memory situations, which may occur in rare cases. In these situations, you can optimize certain Visual Studio features that you may not be using.  Use a 64-bit OS If you upgrade your system from a 32-bit version of Windows to a 64-bit version, you expand the amount of virtual memory available to Visual Studio from 2 GB to 4 GB. This enables Visual Studio to handle significantly larger workloads, even though it is 32-bit process. Tip Visual Studio 2022 on Windows is now a 64-bit application. This means you can open, edit, run, and debug even the biggest and most complex solutions without running out of memory.  Disable automatic file restore Visual Studio automatically reopens documents that were left open in the previous session. This can prolong the times it takes to load a solution by up to 30% or more, depending on the project type and the documents being opened. Designers like Windows Forms and XAML, and...

Login Failed for user DomainName\machinename

  NETWORK SERVICE and LocalSystem authenticate themselves always as the corresponding account locally (builtin\network service and builtin\system) but both will authenticate as the machine account remotely. This can cause login failures. If you see a failure like  Login failed for user 'DOMAIN\MACHINENAME$'  it means that a process running as NETWORK SERVICE or as LocalSystem has accessed a remote resource, has authenticated itself as the machine account, and was denied authorization. A typical example would be an ASP application running in an app pool set to use NETWORK SERVICE credential and connecting to a remote SQL Server: the app pool will authenticate as the  machine  running the app pool and is this machine account that needs to be granted access. When access is denied to a machine account, then access must be granted to the machine account. If the server refuses to login 'DOMAIN\MACHINE$', then you must grant login rights to 'DOMAIN\MACHINE$' not to NET...