xsp4
is supposed to be run from the web application directory, not from bin
directory.
The reason is in the ASP.NET architecture: a web application consist of a main directory ( say webapp
) and several standard directories.
Let's just focus on bin
, which only contains compiled assemblies referenced by your web application.
Simply said, if you run xsp4
under the scope of the bin
directory, it'll never be able to reference Index.aspx
. On the other hand, running Index.aspx
from webapp allows the server to load any required assembly from the bin
directory