Reference .dll method unable to create folder in web server
<p>I have a reference .dll method which will create folder in SpecialFolder.</p>

<p>So in .aspx.cs, i execute this method but it throw me an exception</p>

<pre><code>"Access the ..... is denied"
</code></pre>

<p>However,if i create it in my web application without using the reference to create, it have no problem.</p>

<p>Anyone know what's the problem and solution?</p>

<p>This is the create directory method definition:</p>

<pre><code>string TempPDFPath
            = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),
                Path.Combine("TempPDFStorage", System.Guid.NewGuid().ToString()));

                    if (!Directory.Exists(TempPDFPath))
                    {
                        Directory.CreateDirectory(TempPDFPath);
                    }
</code></pre>
