<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article EPM - Issues when debugging web applications with Visual Studio in Endpoint Privilege Manager (EPM) Articles</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-issues-when-debugging-web-applications-with-visual-studio/ta-p/1428121</link>
    <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;What are some issues when debugging web applications with Visual Studio?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;When Visual Studio starts the web debugging process, the user credentials are transferred via HTTP and the elevated parameters are lost. This causes the debug process to fail. Similar behavior can be found when a process is connected to a resource on the network – users token is created on the target non-elevated. This is how authentication via network works.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;There are two workarounds for this issue. We can elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;&amp;nbsp;and manually debug or configure IIS to run under the limited user context. In the second case, you will not need to elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Method 1: Elevate devenve.exe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;1. Create a policy to elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;&amp;nbsp;(no other processes require elevation in this scenario)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;2. Start Visual Studio&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;3. Start your Web Application manually - just open IE and navigate to the application URL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;4. In Visual Studio select&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Debug&lt;/B&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Attach to Process&lt;/B&gt;&amp;nbsp;from the menu and then select the&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_wp.exe&lt;/B&gt;&amp;nbsp;process&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;5. Visual Studio attaches to the process and you can debug your Web Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Method 2: Execute aspnet_wp.exe with same credentials as Devenv.exe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note&lt;/B&gt;: The following steps should be performed when you have local administrative rights.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;1. Grant the user access to IIS 6 metabase&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;a. Open a CMD Window&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;b. Navigate to:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&amp;nbsp;(or appropriate framework version)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;c. Execute the following command:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Courier, monospace;font-size: small;"&gt;aspnet_regiis.exe -ga "dom\user"&lt;/B&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Where user dom\user is the actual user name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;2. Configure&amp;nbsp;&lt;A href="http://www.asp.net/" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;ASP.NET&lt;/A&gt;&amp;nbsp;to Run Using the New Account. &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;This procedure edits&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;machine.config&lt;/B&gt;&amp;nbsp;to configure ASP.NET to run using the new account.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;To configure&amp;nbsp;&lt;A href="http://www.asp.net/" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;ASP.NET&lt;/A&gt;&amp;nbsp;to run using the new account:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;a. Download&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;&amp;nbsp;utility from Microsoft’s site. See&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;"Download and run Aspnet_setreg.exe"&lt;/B&gt;&amp;nbsp;section at:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;font-family: Verdana, Helvetica, sans-serif;font-size: small;" target="_blank"&gt;https://support.microsoft.com/en-us/kb/329290&lt;/A&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;b. Encrypt the username and password attributes by using&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;. To do this, type the following command at the command line:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe -k:SOFTWARE\MY_SECURE_APP\ASPNET -u:"yourdomainname\username"&amp;nbsp; -p:"password"&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;This command encrypts the username and password attributes, creates registry keys at any location that you specify, and then stores the attributes in those registry keys. This command also generates output that specifies how to change your&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Web.config&lt;/B&gt;&amp;nbsp;or&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Machine.config&lt;/B&gt;&amp;nbsp;file so that ASP.NET will use these keys to read that information from the registry.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note:&lt;/B&gt;&amp;nbsp;For more information on the&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;&amp;nbsp;utility, see&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;"How to use the ASP.NET utility to encrypt credentials and session state connection strings"&lt;/B&gt;&amp;nbsp;(&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;http://support.microsoft.com/kb/329290/&lt;/A&gt;).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;c. Open&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;machine.config&lt;/B&gt;&amp;nbsp;using Microsoft Visual Studio® .NET or Notepad.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Machine.config&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;&amp;nbsp;is located in the following folder:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;%systemroot%\WINNT\Microsoft.NET\Framework\&amp;lt;versionNumber&amp;gt;\CONFIG&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;d. Find &amp;lt;processModel&amp;gt; element and add username and password attributes as follows:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&amp;lt;processModel userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,userName" password="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,password" .....&amp;gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;e. Execute the following command from CMD:&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;iisreset&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;For more information see&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ff649223.aspx" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ff649223.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR style="box-sizing: border-box;" /&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note:&lt;/B&gt;&amp;nbsp;&lt;BR /&gt;On Windows 7 you don’t have to manually edit config files. The same result can be achieved using GUI configuration.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;After the above steps have been completed Visual Studio can be started as a limited user and start debugging the Web Application. Elevation is not required. (Elevation of&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;devenv.exe&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;&amp;nbsp;is required only if you want to debug applications not belonging to the limited user.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;

&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;U&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Q:&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;What are some issues when debugging web applications with
Visual Studio?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;U&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;A:&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;When Visual Studio starts the web debugging process, the
user credentials are transferred via HTTP and the elevated parameters are lost.
This causes the debug process to fail. Similar behavior can be found when a
process is connected to a resource on the network – users token is created on
the target non-elevated. This is how authentication via network works.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;There are two workarounds for this issue. We can elevate
&lt;B&gt;devenv.exe&lt;/B&gt; and manually debug or configure IIS to run under the limited user
context. In the second case, you will not need to elevate &lt;B&gt;devenv.exe&lt;/B&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Method 1: Elevate
devenve.exe&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. Create a policy to elevate &lt;B&gt;devenv.exe&lt;/B&gt; (no other processes
require elevation in this scenario)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. Start Visual Studio&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3. Start your Web Application manually - just open IE and
navigate to the application URL&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4. In Visual Studio select &lt;B&gt;Debug&lt;/B&gt; -&amp;gt; &lt;B&gt;Attach to Process&lt;/B&gt; from
the menu and then select the &lt;B&gt;aspnet_wp.exe&lt;/B&gt; process&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5. Visual Studio attaches to the process and you can debug
your Web Application&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Method 2: Execute
aspnet_wp.exe with same credentials as Devenv.exe&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note&lt;/B&gt;: The
following steps should be performed when you have local administrative rights.&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. Grant the user access to IIS 6 metabase&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a. Open a CMD Window&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. Navigate to: &lt;/FONT&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319&lt;/B&gt;&lt;/FONT&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;
(or appropriate framework version)&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. Execute the following command:&amp;nbsp;&lt;/FONT&gt;&lt;B style="font-family: Courier, monospace;font-size: small;"&gt;aspnet_regiis.exe -ga "dom\user"&lt;/B&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Where user dom\user is the actual user name&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. Configure &lt;A href="http://www.asp.net/" target="_blank"&gt;ASP.NET&lt;/A&gt; to Run Using the New Account. &amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;This procedure edits &lt;B&gt;machine.config&lt;/B&gt; to configure ASP.NET to
run using the new account.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;To configure &lt;A href="http://www.asp.net/" target="_blank"&gt;ASP.NET&lt;/A&gt; to run using the new account:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a. Download &lt;B&gt;aspnet_setreg.exe&lt;/B&gt; utility from Microsoft’s site.
See &lt;B&gt;"Download and run Aspnet_setreg.exe"&lt;/B&gt; section at:&amp;nbsp;&lt;/FONT&gt;&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="font-family: Verdana, Helvetica, sans-serif;font-size: small;" target="_blank"&gt;https://support.microsoft.com/en-us/kb/329290&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. Encrypt the username and password attributes by using
&lt;B&gt;aspnet_setreg.exe&lt;/B&gt;. To do this, type the following command at the command line:&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;aspnet_setreg.exe -k:SOFTWARE\MY_SECURE_APP\ASPNET
-u:"yourdomainname\username"&amp;nbsp; -p:"password"&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;This command encrypts the username and password attributes,
creates registry keys at any location that you specify, and then stores the
attributes in those registry keys. This command also generates output that
specifies how to change your &lt;B&gt;Web.config&lt;/B&gt; or &lt;B&gt;Machine.config&lt;/B&gt; file so that ASP.NET
will use these keys to read that information from the registry.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note:&lt;/B&gt; For more information on the &lt;B&gt;aspnet_setreg.exe&lt;/B&gt; utility,
see &lt;B&gt;"How to use the ASP.NET utility to encrypt credentials and session
state connection strings"&lt;/B&gt; (&lt;A href="https://support.microsoft.com/en-us/kb/329290" target="_blank"&gt;http://support.microsoft.com/kb/329290/&lt;/A&gt;).&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. Open &lt;B&gt;machine.config&lt;/B&gt; using Microsoft Visual Studio® .NET
or Notepad.&amp;nbsp;&lt;/FONT&gt;&lt;B style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Machine.config&lt;/B&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt; is located in the following folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;%systemroot%\WINNT\Microsoft.NET\Framework\&amp;lt;versionNumber&amp;gt;\CONFIG&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;d. Find &amp;lt;processModel&amp;gt; element and add username
and password attributes as follows:&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;&amp;lt;processModel userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,userName"
password="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,password"
.....&amp;gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;e. Execute the following command from CMD:&amp;nbsp;&lt;B&gt;iisreset&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;For more information see
&lt;A href="https://msdn.microsoft.com/en-us/library/ff649223.aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ff649223.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note:&lt;/B&gt; On Windows 7 you don’t have to manually edit config
files. The same result can be achieved using GUI configuration.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;After
the above steps have been completed Visual Studio can be started as a limited
user and start debugging the Web Application. Elevation is not required.
(Elevation of &lt;/SPAN&gt;&lt;B style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;devenv.exe&lt;/B&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt; is required only if you want to debug applications not
belonging to the limited user.)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2026 20:05:41 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2026-11-05T20:05:41Z</dc:date>
    <item>
      <title>EPM - Issues when debugging web applications with Visual Studio</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-issues-when-debugging-web-applications-with-visual-studio/ta-p/1428121</link>
      <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;What are some issues when debugging web applications with Visual Studio?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;When Visual Studio starts the web debugging process, the user credentials are transferred via HTTP and the elevated parameters are lost. This causes the debug process to fail. Similar behavior can be found when a process is connected to a resource on the network – users token is created on the target non-elevated. This is how authentication via network works.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;There are two workarounds for this issue. We can elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;&amp;nbsp;and manually debug or configure IIS to run under the limited user context. In the second case, you will not need to elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Method 1: Elevate devenve.exe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;1. Create a policy to elevate&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;devenv.exe&lt;/B&gt;&amp;nbsp;(no other processes require elevation in this scenario)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;2. Start Visual Studio&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;3. Start your Web Application manually - just open IE and navigate to the application URL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;4. In Visual Studio select&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Debug&lt;/B&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Attach to Process&lt;/B&gt;&amp;nbsp;from the menu and then select the&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_wp.exe&lt;/B&gt;&amp;nbsp;process&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;5. Visual Studio attaches to the process and you can debug your Web Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Method 2: Execute aspnet_wp.exe with same credentials as Devenv.exe&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note&lt;/B&gt;: The following steps should be performed when you have local administrative rights.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;1. Grant the user access to IIS 6 metabase&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;a. Open a CMD Window&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;b. Navigate to:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&amp;nbsp;(or appropriate framework version)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;c. Execute the following command:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Courier, monospace;font-size: small;"&gt;aspnet_regiis.exe -ga "dom\user"&lt;/B&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;Where user dom\user is the actual user name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;2. Configure&amp;nbsp;&lt;A href="http://www.asp.net/" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;ASP.NET&lt;/A&gt;&amp;nbsp;to Run Using the New Account. &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;This procedure edits&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;machine.config&lt;/B&gt;&amp;nbsp;to configure ASP.NET to run using the new account.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;To configure&amp;nbsp;&lt;A href="http://www.asp.net/" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;ASP.NET&lt;/A&gt;&amp;nbsp;to run using the new account:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;color: #181818;font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;font-size: 14px;font-style: normal;font-variant-ligatures: normal;font-weight: 400;text-align: start;white-space: normal;background-color: #ffffff;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;a. Download&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;&amp;nbsp;utility from Microsoft’s site. See&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;"Download and run Aspnet_setreg.exe"&lt;/B&gt;&amp;nbsp;section at:&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;font-family: Verdana, Helvetica, sans-serif;font-size: small;" target="_blank"&gt;https://support.microsoft.com/en-us/kb/329290&lt;/A&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;b. Encrypt the username and password attributes by using&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;. To do this, type the following command at the command line:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe -k:SOFTWARE\MY_SECURE_APP\ASPNET -u:"yourdomainname\username"&amp;nbsp; -p:"password"&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;This command encrypts the username and password attributes, creates registry keys at any location that you specify, and then stores the attributes in those registry keys. This command also generates output that specifies how to change your&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Web.config&lt;/B&gt;&amp;nbsp;or&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Machine.config&lt;/B&gt;&amp;nbsp;file so that ASP.NET will use these keys to read that information from the registry.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note:&lt;/B&gt;&amp;nbsp;For more information on the&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;aspnet_setreg.exe&lt;/B&gt;&amp;nbsp;utility, see&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;"How to use the ASP.NET utility to encrypt credentials and session state connection strings"&lt;/B&gt;&amp;nbsp;(&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;http://support.microsoft.com/kb/329290/&lt;/A&gt;).&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;c. Open&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;machine.config&lt;/B&gt;&amp;nbsp;using Microsoft Visual Studio® .NET or Notepad.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Machine.config&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;&amp;nbsp;is located in the following folder:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;%systemroot%\WINNT\Microsoft.NET\Framework\&amp;lt;versionNumber&amp;gt;\CONFIG&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;d. Find &amp;lt;processModel&amp;gt; element and add username and password attributes as follows:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT face="Courier New, Courier, monospace"&gt;&lt;FONT size="2"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;&amp;lt;processModel userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,userName" password="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,password" .....&amp;gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE style="box-sizing: border-box;margin-top: 32px;margin-right: 24px;margin-bottom: 32px;margin-left: 24px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;e. Execute the following command from CMD:&amp;nbsp;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;iisreset&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;For more information see&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ff649223.aspx" style="box-sizing: border-box;color: var(--lwc-brandTextLink,#0176d3);text-decoration: none;transition: color 0.1s linear 0s;cursor: pointer;" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ff649223.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR style="box-sizing: border-box;" /&gt;
&lt;SPAN style="font-size: 14px;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="color: #181818;"&gt;&lt;SPAN style="font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;;"&gt;&lt;SPAN style="font-style: normal;"&gt;&lt;SPAN style="font-variant-ligatures: normal;"&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN style="white-space: normal;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="text-decoration-thickness: initial;"&gt;&lt;SPAN style="text-decoration-style: initial;"&gt;&lt;SPAN style="text-decoration-color: initial;"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif"&gt;&lt;FONT style="box-sizing: border-box;"&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);"&gt;Note:&lt;/B&gt;&amp;nbsp;&lt;BR /&gt;On Windows 7 you don’t have to manually edit config files. The same result can be achieved using GUI configuration.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;After the above steps have been completed Visual Studio can be started as a limited user and start debugging the Web Application. Elevation is not required. (Elevation of&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;B style="box-sizing: border-box;font-weight: var(--lwc-fontWeightBold,700);font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;devenv.exe&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="box-sizing: border-box;"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;"&gt;&amp;nbsp;is required only if you want to debug applications not belonging to the limited user.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;

&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;U&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Q:&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;What are some issues when debugging web applications with
Visual Studio?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;U&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;A:&lt;/FONT&gt;&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;When Visual Studio starts the web debugging process, the
user credentials are transferred via HTTP and the elevated parameters are lost.
This causes the debug process to fail. Similar behavior can be found when a
process is connected to a resource on the network – users token is created on
the target non-elevated. This is how authentication via network works.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;There are two workarounds for this issue. We can elevate
&lt;B&gt;devenv.exe&lt;/B&gt; and manually debug or configure IIS to run under the limited user
context. In the second case, you will not need to elevate &lt;B&gt;devenv.exe&lt;/B&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Method 1: Elevate
devenve.exe&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. Create a policy to elevate &lt;B&gt;devenv.exe&lt;/B&gt; (no other processes
require elevation in this scenario)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. Start Visual Studio&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;3. Start your Web Application manually - just open IE and
navigate to the application URL&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;4. In Visual Studio select &lt;B&gt;Debug&lt;/B&gt; -&amp;gt; &lt;B&gt;Attach to Process&lt;/B&gt; from
the menu and then select the &lt;B&gt;aspnet_wp.exe&lt;/B&gt; process&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;5. Visual Studio attaches to the process and you can debug
your Web Application&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Method 2: Execute
aspnet_wp.exe with same credentials as Devenv.exe&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note&lt;/B&gt;: The
following steps should be performed when you have local administrative rights.&lt;/FONT&gt;&lt;/P&gt;
&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;1. Grant the user access to IIS 6 metabase&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a. Open a CMD Window&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. Navigate to: &lt;/FONT&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319&lt;/B&gt;&lt;/FONT&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;
(or appropriate framework version)&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. Execute the following command:&amp;nbsp;&lt;/FONT&gt;&lt;B style="font-family: Courier, monospace;font-size: small;"&gt;aspnet_regiis.exe -ga "dom\user"&lt;/B&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;Where user dom\user is the actual user name&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;2. Configure &lt;A href="http://www.asp.net/" target="_blank"&gt;ASP.NET&lt;/A&gt; to Run Using the New Account. &amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;This procedure edits &lt;B&gt;machine.config&lt;/B&gt; to configure ASP.NET to
run using the new account.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;To configure &lt;A href="http://www.asp.net/" target="_blank"&gt;ASP.NET&lt;/A&gt; to run using the new account:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;a. Download &lt;B&gt;aspnet_setreg.exe&lt;/B&gt; utility from Microsoft’s site.
See &lt;B&gt;"Download and run Aspnet_setreg.exe"&lt;/B&gt; section at:&amp;nbsp;&lt;/FONT&gt;&lt;A href="https://support.microsoft.com/en-us/kb/329290" style="font-family: Verdana, Helvetica, sans-serif;font-size: small;" target="_blank"&gt;https://support.microsoft.com/en-us/kb/329290&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;b. Encrypt the username and password attributes by using
&lt;B&gt;aspnet_setreg.exe&lt;/B&gt;. To do this, type the following command at the command line:&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;aspnet_setreg.exe -k:SOFTWARE\MY_SECURE_APP\ASPNET
-u:"yourdomainname\username"&amp;nbsp; -p:"password"&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;This command encrypts the username and password attributes,
creates registry keys at any location that you specify, and then stores the
attributes in those registry keys. This command also generates output that
specifies how to change your &lt;B&gt;Web.config&lt;/B&gt; or &lt;B&gt;Machine.config&lt;/B&gt; file so that ASP.NET
will use these keys to read that information from the registry.&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note:&lt;/B&gt; For more information on the &lt;B&gt;aspnet_setreg.exe&lt;/B&gt; utility,
see &lt;B&gt;"How to use the ASP.NET utility to encrypt credentials and session
state connection strings"&lt;/B&gt; (&lt;A href="https://support.microsoft.com/en-us/kb/329290" target="_blank"&gt;http://support.microsoft.com/kb/329290/&lt;/A&gt;).&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;c. Open &lt;B&gt;machine.config&lt;/B&gt; using Microsoft Visual Studio® .NET
or Notepad.&amp;nbsp;&lt;/FONT&gt;&lt;B style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;Machine.config&lt;/B&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt; is located in the following folder:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;%systemroot%\WINNT\Microsoft.NET\Framework\&amp;lt;versionNumber&amp;gt;\CONFIG&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;d. Find &amp;lt;processModel&amp;gt; element and add username
and password attributes as follows:&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Courier, monospace" size="2"&gt;&lt;B&gt;&amp;lt;processModel userName="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,userName"
password="registry:HKLM\SOFTWARE\MY_SECURE_APP\ASPNET\ASPNET_SETREG,password"
.....&amp;gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE style=""&gt;&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;e. Execute the following command from CMD:&amp;nbsp;&lt;B&gt;iisreset&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;For more information see
&lt;A href="https://msdn.microsoft.com/en-us/library/ff649223.aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ff649223.aspx&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;B&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;FONT face="Verdana, Helvetica, sans-serif" size="2"&gt;&lt;B&gt;Note:&lt;/B&gt; On Windows 7 you don’t have to manually edit config
files. The same result can be achieved using GUI configuration.&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;After
the above steps have been completed Visual Studio can be started as a limited
user and start debugging the Web Application. Elevation is not required.
(Elevation of &lt;/SPAN&gt;&lt;B style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt;devenv.exe&lt;/B&gt;&lt;SPAN style="font-family: Verdana, Helvetica, sans-serif;font-size: small;"&gt; is required only if you want to debug applications not
belonging to the limited user.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 20:05:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/epm-issues-when-debugging-web-applications-with-visual-studio/ta-p/1428121</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-11-05T20:05:41Z</dc:date>
    </item>
  </channel>
</rss>

