Showing posts with label Windows 10. Show all posts
Showing posts with label Windows 10. Show all posts

Tuesday, April 3, 2018

Attaching debugger to IIS process in Visual Studio

Intro

The developer needs to debug web application. The web application is running on IIS.

Attach to process

Open your project in Visual Studio and build it. Then go to Debug → Attach to Process (Ctrl + Alt + P).  See picture below.

Attaching to IIS process in Visual Studio
Attaching to IIS process in Visual Studio

In 'Attach to' section select appropriate code type if you know it, otherwise you can keep it as default 'Automatically determine the type of code to debug'. In such case, the appropriate debugger will be selected based on the kind of code that is running.

To make sure that 'Available processes' windows shows your IIS process, check 'Show processes from all users' checkbox. Then use the filter to find all aspnet_wp.exe, w3p.exe, or w3wp.exe processes. 

Multiple w3wp processes

Which w3wp.exe PID corresponds to which application pool? This is the question you will face if you have multiple web applications running on your machine.

In IIS7+ and Windows 2008+, you can use appcmd.exe utility to determine which PID belongs to which IIS process. Open command prompt as Administrator → navigate to %windir%\system32\inetsrv\ → run following command:

cd/d %windir%\system32\inetsrv\

appcmd list wp

The output of the command will show which PID belongs to which IIS process. See picture below.

The output of appcmd utility execution
The output of appcmd utility execution

Please read the following article to learn more about AppCmd: Getting Started with AppCmd.exe

Tuesday, May 9, 2017

PHP Composer installation: The openssl extension is missing

Composer installation


To install Composer on Windows you have to follow documentation https://getcomposer.org/doc/00-intro.md#installation-windows

The openssl extension is missing issue

During installation "The openssl extension is missing..." issues could happen. 


Installation tool helps you to identify php.ini file location. As you already understood, we have to do some modifications in php.ini file to fix the issue. If you have empty php.ini file, then just add following code there:

extension_dir = "ext"
extension=php_openssl.dll

Otherwise open php.ini and uncomment php_openssl.dll extension and specify correct directory for PHP extensions.

Thursday, August 25, 2016

How to create a bootable USB drive for Windows 10 without any 3rd party tools

It is easy to create bootable USB drive for Windows 10 without any additional tools. Just use built-in functionality.
  1. Plug in your USB device
  2. Run cmd.exe (Command Prompt) as administrator
  3. Open the disk management utility, type in diskpart and hit enter
  4. Get connected disks that are available – to do that, type in list disk and hit enter
  5. Select your USB drive – to do that, type select disk # and hit enter – you’ll have to replace the # with your disk number
  6. Clean the USB drive – to do that, type clean and hit enter
  7. Create a bootable partition – type in create partition primary and hit enter
  8. Select the partition that you just created. To do that, type in select partition 1
  9. Type active and hit enter
  10. Format the USB drive – type in format fs=fat32 and hit enter. It takes some time to complete formatting.
  11. Assign your USB drive a letter, to do that, just type in assign
  12. Copy all the Windows 10 files and paste it inside the USB drive
That is all you need to do.