<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.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/" xmlns:cs="http://blogs.iis.net/"><channel><title>General</title><link>http://forums.iis.net/1029.aspx</link><description>Start forum discussions here around general questions about the IIS platform including SMTP &amp; NNTP.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Need Help on iis + DataProtect.Protect</title><link>http://forums.iis.net/thread/1898567.aspx</link><pubDate>Sun, 29 Mar 2009 10:14:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1898567</guid><dc:creator>Leo Tang - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1898567.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1898567</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is indeed a program development issue. You can only&amp;nbsp;configure the ASP.Net application run in admin account by changing the application identity (IIS6.0) or editing the&amp;nbsp; section “ &amp;lt;processModel /&amp;gt;” in&amp;nbsp; machine.config file(IIS5.1 and previous version).&amp;nbsp; But running an ASP.net application in admin account is not recommended. &lt;/p&gt;
&lt;p&gt;You may try to use &lt;a class="" href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx"&gt;another cryptographic method&lt;/a&gt; which do not need to load user profiles, you can get more valuable suggestions at &lt;a class="" href="http://forums.asp.net/"&gt;ASP.Net Froum&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Need Help on iis + DataProtect.Protect</title><link>http://forums.iis.net/thread/1897817.aspx</link><pubDate>Mon, 23 Mar 2009 19:09:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897817</guid><dc:creator>chobo2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1897817.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1029&amp;PostID=1897817</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have a private key that I am storing in a file. As added security I am using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ProtectedData.Protectkey, null, DataProtectionScope.CurrentUser);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;

Server Error in &amp;#39;/&amp;#39; Application.

               The system cannot find the file specified.
 

                             Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

              Exception Details: System.Security.Cryptography.CryptographicException: The system cannot find the file specified.


             Source Error: 

                                                                       Line 24: 
Line 25:             // protect the key 
Line 26:             key = ProtectedData.Protect(key, null, DataProtectionScope.CurrentUser);
Line 27: 
Line 28:                                                                
              Source File:  e:\domains\interactivejapanese.com\wwwroot\mytest101\App_Code\generateEncryption.cs    Line:  26             

             Stack Trace: 

                                                                       [CryptographicException: The system cannot find the file specified.
]
   System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope) +453
   EncryptedPayPal_API_Credentials.generateEncryption.GenerateKey(String targetPath) in e:\domains\interactivejapanese.com\wwwroot\mytest101\App_Code\generateEncryption.cs:26
   Encryptor.btn_generate_Click(Object sender, EventArgs e) in e:\domains\interactivejapanese.com\wwwroot\mytest101\Encryptor.aspx.cs:22
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
                                                              &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So I been told I need admin privileges to access what is needed to use protectedData.Scope. So is there nothing in IIS that does the same thing where I do not need these privileges since I can&amp;#39;t get admin rights. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>