An ASPX page in a virtual directory does not find the
compiled assembly containing the base class located in
the application's bin directory correctly.

Example:
1) Create project WebTest ([url]http://localhost/webtest[/url])

2) Create simple WebForm1.aspx that contains "Hello
World" and inherits from WebTest.WebForm1

3) Compile and then test by navigating to
[url]http://localhost/webtest/webform1.aspx[/url] - form appears as
expected

4) Now create a directory elsewhere on the filesystem (I
used d:\temp\wt) and map a virtual directory from
[url]http://localhost/webtest/wt[/url] to this location.

5) Move the WebForm1.aspx file into the directory that
the virtual directory is mapped to

6) Test by navigating to
[url]http://localhost/webtest/wt/webform1.aspx[/url] - receives
error "Could not load type 'WebTest.WebForm1'"

Why does this not look in the
[url]http://localhost/webtest/bin[/url] directory for the DLL??

Why does IIS treat a virtual directory differently to a
physical directory? (it works if wt is a physical
directory under the application)

I have tried messing with probing and codebases to no
effect.

I've tested this on XP and W2K Server with the same
results.

Thanks,

Hilton