J
Jim Christiano
Everyone,
In order to promote code reuse, I've setup a web control (.ascx) in a
standalone vs.net project. I can then reference this project in any web
application. The trick is to setup a virtual directory that points to the
location of the web control in each parent application.
The issue is that IIS doesn't seem to like this. The error I receive is:
It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
The only way I've found around this is to modify the machine.config file and
remove attributes from sections.
Has anyone ever solved this issue? I have checked and re-checked that all
folders are correctly registered as IIS applications.
Thanks,
Jim Christiano
In order to promote code reuse, I've setup a web control (.ascx) in a
standalone vs.net project. I can then reference this project in any web
application. The trick is to setup a virtual directory that points to the
location of the web control in each parent application.
The issue is that IIS doesn't seem to like this. The error I receive is:
It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
The only way I've found around this is to modify the machine.config file and
remove attributes from sections.
Has anyone ever solved this issue? I have checked and re-checked that all
folders are correctly registered as IIS applications.
Thanks,
Jim Christiano