<p>With PHP, I can make numerous PHP websites locally and then upload each of them to its own sub-directory of my PHP hosting service. </p>

<p>However, with ASP.NET, it seems that I can only upload my ASP.NET to the root of my hosting service. If I upload to a sub-directory, I get an error in </p>

<pre><code>section registered as allowDefinition='MachineToApplication' beyond application level
&lt;authentication mode="Windows"/&gt;
</code></pre>

<ul>
<li>is there a way to get around this so I can have numerous ASP.NET websites each in its own directory?</li>
<li>if not, would using ASP.NET MVC be able to get around this problem?</li>
<li>or is it generally not possible to FTP multiple ASP.NET sites to a shared hosting provider?</li>
</ul>

As it happens, you can, because Java generics are just grafted on, not part of the type system.
You can do
```
```
return (List<IField>)(Object)this.fields;
```
```
because all
```
List<T>
```
objects are the same underlying type.
Bear in mind that this allows anyone to put any type implementing
```
IField
```
in your list, so if your collection is not read-only, you may run into difficulties.