Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
C# Community
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Visual Studio .NET
IDE
Web Application "Sub-Projects," VS 2005 External web.config reference?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BloodbathBenny" data-source="post: 81386" data-attributes="member: 17334"><p>Pardon if I'm a little vague here, but the programs I am developing are for internal use and I can't get into any specific detail about what they are or what they do.</p><p></p><p>First a little background:</p><p></p><p>We have a web project which is considered the "root" application, that is, it is deployed at the application root level under IIS. This web project has many "modules" which are deployed one level below this application root, but not in a separate IIS application root. There are at least 30 of these modules, and some modules are potentially very large. Because of this, it is not efficient for us to create a single VS "solution" containing the main project and all of its modules in a single project file. Doing that makes for a very, very, very slow VS.NET.</p><p></p><p>In order to deal with this, the main application, let's just call it "root", is contained in its own VS.NET project. Each of the modules are also contained in their own project, and when working on a single module, the "root" project and the module being worked upon are put together in a solution file, where the "root" project has a reference to the module so that its resulting .dll is published in the root project's "bin" directory.</p><p></p><p>Say I'm working on a module called "XReport". Then the published projects would be located at:</p><p></p><p>[CODE]http://localhost/ -- For the "root" project</p><p>http://localhost/XReport -- For the "X Report" module[/CODE]</p><p></p><p></p><p>Now I have a few User Controls defined whose .ascx files are contained in ~/Controls and whose ASP tags are defined in the web.config file for the root project. The backend code for those User Controls are contained in an external library (to which the "root" project also has a reference.) Since the "XReport" project is not a fully-fledged web application (I'd call it a "sub-project",) it does not have a web.config file of its own (and I'd rather use a single web.config file anyway, at the "root" project level.)</p><p></p><p>With all of that said, my problem is this:</p><p></p><p>Say ~/XReport/Report.aspx has a reference to a User Control:</p><p></p><p>[CODE] <uc1:ReportList runat="server" id="ucReportList" />[/CODE]</p><p></p><p>And ~/web.config (contained in the "root" project) contains</p><p></p><p>[CODE]</p><p> <pages></p><p> <controls></p><p> <add tagPrefix="uc1" tagName="ReportList" src="~/Controls/ReportList.ascx" /></p><p> </controls></p><p> </pages></p><p>[/CODE]</p><p></p><p>Is there ANY way to get VS 2005 to recognize that custom ASP tag via the web.config file which defines it in the root project? Right now, the process responsible for generating the designer file fails because it doesn't recognize the <uc1:ReportList> tag, but I'd like VS.NET to look at the web.config file in the root project so that it could resolve the reference.</p><p></p><p>Sorry for being so long-winded... And thanks in advance for any suggestions.</p></blockquote><p></p>
[QUOTE="BloodbathBenny, post: 81386, member: 17334"] Pardon if I'm a little vague here, but the programs I am developing are for internal use and I can't get into any specific detail about what they are or what they do. First a little background: We have a web project which is considered the "root" application, that is, it is deployed at the application root level under IIS. This web project has many "modules" which are deployed one level below this application root, but not in a separate IIS application root. There are at least 30 of these modules, and some modules are potentially very large. Because of this, it is not efficient for us to create a single VS "solution" containing the main project and all of its modules in a single project file. Doing that makes for a very, very, very slow VS.NET. In order to deal with this, the main application, let's just call it "root", is contained in its own VS.NET project. Each of the modules are also contained in their own project, and when working on a single module, the "root" project and the module being worked upon are put together in a solution file, where the "root" project has a reference to the module so that its resulting .dll is published in the root project's "bin" directory. Say I'm working on a module called "XReport". Then the published projects would be located at: [CODE]http://localhost/ -- For the "root" project http://localhost/XReport -- For the "X Report" module[/CODE] Now I have a few User Controls defined whose .ascx files are contained in ~/Controls and whose ASP tags are defined in the web.config file for the root project. The backend code for those User Controls are contained in an external library (to which the "root" project also has a reference.) Since the "XReport" project is not a fully-fledged web application (I'd call it a "sub-project",) it does not have a web.config file of its own (and I'd rather use a single web.config file anyway, at the "root" project level.) With all of that said, my problem is this: Say ~/XReport/Report.aspx has a reference to a User Control: [CODE] <uc1:ReportList runat="server" id="ucReportList" />[/CODE] And ~/web.config (contained in the "root" project) contains [CODE] <pages> <controls> <add tagPrefix="uc1" tagName="ReportList" src="~/Controls/ReportList.ascx" /> </controls> </pages> [/CODE] Is there ANY way to get VS 2005 to recognize that custom ASP tag via the web.config file which defines it in the root project? Right now, the process responsible for generating the designer file fails because it doesn't recognize the <uc1:ReportList> tag, but I'd like VS.NET to look at the web.config file in the root project so that it could resolve the reference. Sorry for being so long-winded... And thanks in advance for any suggestions. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
Visual Studio .NET
IDE
Web Application "Sub-Projects," VS 2005 External web.config reference?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top
Bottom