J
Jeremy
Everything in my app worked fine - then I moved some user controls to a
subfolder named \ControlTemplates that physically exists directly under the
site root.
Then, at runtime when these lines attempts to load a user control from that
subdirectory:
string templateFileName = @"/ControlTemplates/Template01.ascx";
Control templateControl = LoadControl(templateFileName);
The application throws an error with the following message:
The virtual path '/ControlTemplates/Template01.ascx' maps to another
application, which is not allowed.
How can I load user controls that are physically stored in a subfolder under
the site root?
Thanks.
subfolder named \ControlTemplates that physically exists directly under the
site root.
Then, at runtime when these lines attempts to load a user control from that
subdirectory:
string templateFileName = @"/ControlTemplates/Template01.ascx";
Control templateControl = LoadControl(templateFileName);
The application throws an error with the following message:
The virtual path '/ControlTemplates/Template01.ascx' maps to another
application, which is not allowed.
How can I load user controls that are physically stored in a subfolder under
the site root?
Thanks.