<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting Started</title><link>http://forums.asp.net/15.aspx</link><description>The perfect forum for ASP.NET novices. No question too simple! &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=21&amp;amp;c=17" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: credentials and impersonation</title><link>http://forums.asp.net/thread/2238357.aspx</link><pubDate>Mon, 17 Mar 2008 20:20:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2238357</guid><dc:creator>smokesoft</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2238357.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=2238357</wfw:commentRss><description>&lt;p&gt;i have the same problem... does anyone have any answer????&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>Re: credentials and impersonation</title><link>http://forums.asp.net/thread/1624028.aspx</link><pubDate>Fri, 16 Mar 2007 17:40:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1624028</guid><dc:creator>bkim</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1624028.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1624028</wfw:commentRss><description>&lt;p&gt;Here's some more info.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;When running the site using impersonation of my account through web.config&amp;nbsp; &amp;lt;identity impersonate="true" username="domain\xyz" password="xyz"&amp;gt; my site works fine.&amp;nbsp;&amp;nbsp; However, when I use programmatic impersonation, as described in MSDN or &lt;a href="http://west-wind.com/weblog/posts/1572.aspx"&gt;http://west-wind.com/weblog/posts/1572.aspx&lt;/a&gt;&amp;nbsp;it wont work right&lt;/p&gt;
&lt;p&gt;using Web.Config Impersonation&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;WindowsIdentity.GetCurrent.Name: domain\xyz&lt;br /&gt;Environment.UserName: xyz&lt;br /&gt;User.Identity.Name : domain\bkimuser&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;everything works.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Using programmtic impersonation and setting &lt;font face=Arial size=2&gt;web.config&amp;nbsp; &amp;lt;identity impersonate="true&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;font face=Arial size=2&gt;page starts with &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt 0.5in;mso-pagination:none;mso-layout-grid-align:none;"&gt;WindowsIdentity.GetCurrent.Name: domain\bkimuser&lt;br /&gt;Environment.UserName: bkimuser&lt;br /&gt;User.Identity.Name : domain\bkimuser&lt;/p&gt;
&lt;p&gt;impersonates to &lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WindowsIdentity.GetCurrent.Name: domain\xyz&lt;br /&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Environment.UserName: xyz&lt;br /&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;User.Identity.Name : domain\bkimuser&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;fails database connection&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;reverts to&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;WindowsIdentity.GetCurrent.Name: domain\bkimuser&lt;br /&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Environment.UserName: bkimuser&lt;br /&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;User.Identity.Name : domain\bkimuser&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;it looks like I impersonate properly but I still can't connect to the database properly unless I impersonate the user from the beginning???&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:'Times New Roman';mso-fareast-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Is there any difference between impersonating through web.config or using temporary impersonation on the page that requires it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;br style="mso-special-character:line-break;" /&gt;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Re: credentials and impersonation</title><link>http://forums.asp.net/thread/1622671.aspx</link><pubDate>Thu, 15 Mar 2007 21:19:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1622671</guid><dc:creator>hordurj</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1622671.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1622671</wfw:commentRss><description>&lt;p&gt;Does your impersonated account have access to all the the neccesary files, like the&amp;nbsp;.net temporary files. If you are running IIS6 on a Windows 2003 you should also&amp;nbsp;check the identity of the application pool the website is running under, by default it is the NETWORK SERVICE.&lt;/p&gt;
&lt;p&gt;What error do you get?&amp;nbsp;&lt;/p&gt;</description></item><item><title>credentials and impersonation</title><link>http://forums.asp.net/thread/1622118.aspx</link><pubDate>Thu, 15 Mar 2007 15:39:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1622118</guid><dc:creator>bkim</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1622118.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=15&amp;PostID=1622118</wfw:commentRss><description>&lt;p&gt;Dear everyone please clear this up for me.&lt;/p&gt;
&lt;p&gt;I'm confused about which identity a website runs under.&amp;nbsp;&amp;nbsp; I thought Environment.Username was the main one used to do things like attempt file access, connect to a database etc.&amp;nbsp; I can use Impersonation&amp;nbsp;to change this.&amp;nbsp; So everything should run under this account but&amp;nbsp;am I wrong?&amp;nbsp;&amp;nbsp; I have a site that works running from Visual Studio, or connecting through IE&amp;nbsp;on the development server ONLY,&amp;nbsp;it wont work from another computer even when signed in as the same domain account.&lt;/p&gt;
&lt;p&gt;I know that these 3 show up properly&lt;/p&gt;
&lt;p&gt;&lt;span id=Label1&gt;WindowsIdentity.GetCurrent.Name&lt;/span&gt;&lt;br /&gt;&lt;span id=Label2&gt;Environment.UserName&lt;/span&gt;&lt;br /&gt;&lt;span id=Label3&gt;User.Identity.Name&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The only difference is this&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Auth_User&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I'm not sure whats going on.&amp;nbsp; please clarify the differences between these and any others I missed.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>