Cannot call web service when deploying ASP.NET site to the server but can run on localhost
<p>When I try to run an ASP.NET site by calling a webservice in the sub virtual directory, I get the error below:</p>

<p><strong>"The request failed with HTTP status 401: Unauthorized. "</strong></p>

<p>This is the code that I wrote:</p>

<pre><code>Dim ws As Odyssey.SupportServices.SupportServices
ws = New Odyssey.SupportServices.SupportServices
ws.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials
</code></pre>

<p>My virtual directory structure is shown below:</p>

<p>CSACCsupp  - <strong>Parent</strong> :   The parent can call webservice without any issues.<br>
Odyssey - <strong>Sub</strong> :     The Sub cannot call webservice as shown in the error above.</p>

<p>I think the problem is in the IIS security. Therefore, I went through the IIS security and compared the parent and sub; they are identical.</p>

<p>I really do not know what to do next as I've tried many ways to set the security in IIS, but I am still in the dark.</p>

<p>Could you please suggest on this issue?</p>
