<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Web Developer 2005 Express</title><link>http://forums.asp.net/175.aspx</link><description>General discussions about Visual Web Developer 2005 Express Edition</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1130554.aspx</link><pubDate>Fri, 02 Dec 2005 19:02:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1130554</guid><dc:creator>BradleyB</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1130554.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1130554</wfw:commentRss><description>&lt;P&gt;I think the problem you're runing into is with the sub project.&amp;nbsp; Web Site projects in VS05 represent an entire site.&amp;nbsp; You can have sub-webs but they must really sub-webs in the IIS metabase not just a sub-projects.&amp;nbsp; The App_Code folder is a special ASP.Net 2.0 folder that can only exists at the root of a Web Site applicaiton.&amp;nbsp; It is similar to bin in that way.&amp;nbsp; The class form the sub projects App_Code folder is never being compiled by ASP.Net.&lt;/P&gt;
&lt;P&gt;To work around this you can either move the class from the sub-project App_Code folder to the root App_Code folder or setup the sub-project as sub-web in the IIS metabase.&lt;/P&gt;
&lt;P&gt;Hope this helps, Brad.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1129734.aspx</link><pubDate>Fri, 02 Dec 2005 00:34:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1129734</guid><dc:creator>ryan.reid</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1129734.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1129734</wfw:commentRss><description>&lt;P&gt;I've spent the last 3 days on this and I really don't see a workaround. Our architecture requires that you dynamically load UserControls. This seems to work only if the master page knows about the child control. &lt;BR&gt;&lt;BR&gt;I've got a simple set of projects that doesn't work that has me absolutely astounded: &lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;Here's the issue, takes me about 2 mins to reproduce:&lt;/P&gt;
&lt;P&gt;- I have a terribly simple project called Master that is a web project. &lt;/P&gt;
&lt;P&gt;- I have a subproject in a subfolder of Master called "subproject"&lt;/P&gt;
&lt;P&gt;- The subproject has a control named "ChildControl.ascx"&lt;/P&gt;
&lt;P&gt;In the master project's single page (Default) I have this code:&lt;/P&gt;
&lt;P&gt;public partial class _Default : System.Web.UI.Page {&lt;/P&gt;
&lt;P&gt;protected void Page_Load(object sender, EventArgs e)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;UserControl uc = (UserControl)LoadControl("subproject/ChildControl.ascx"); &lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;In the subproject's ChildControl.ascx I have this code:&lt;/P&gt;
&lt;P&gt;public partial class ChildControl : System.Web.UI.UserControl {&lt;/P&gt;
&lt;P&gt;protected void Page_Load(object sender, EventArgs e)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;string x = SharedCode.SayHello();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;In the subproject I also have a class with a single static method called SayHello(). This class is in the App_Code folder of subproject.&lt;/P&gt;
&lt;P&gt;When I run this project, I get this error:&lt;/P&gt;
&lt;P&gt;Compiler Error Message: CS0103: The name 'SharedCode' does not exist in the current context&lt;/P&gt;
&lt;P&gt;But of course it DOES EXIST. &lt;/P&gt;
&lt;P&gt;I can't believe that this isn't possible. All I want to do is to use code IN THE SAME PROJECT (ChildControl's App_Code folder) with a static method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1090964.aspx</link><pubDate>Sat, 22 Oct 2005 19:55:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1090964</guid><dc:creator>rstrahl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1090964.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1090964</wfw:commentRss><description>No offense Meson, but you're missing the point.&lt;BR&gt;&lt;BR&gt;This has nothing to do with what the user sees. This has to do with architectual issues of how an application is built - not an external way to redirect to other pages. Some applications, like portals and CRM systems specifically require that components are loaded dynamically, and this has nothing to do with how users navigate to a particular page or what the URL looks like. What it has to do with is how the content of that page is loaded and that's what this thread and the complaints are about... specifically since this behavior has changed and has broken a common usage pattern for many developers.&lt;BR&gt;&lt;BR&gt;+++ Rick ---&lt;BR&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1090718.aspx</link><pubDate>Sat, 22 Oct 2005 08:27:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1090718</guid><dc:creator>Meson</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1090718.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1090718</wfw:commentRss><description>I am one of those peopel that like how .net 2 works. &lt;BR&gt;&lt;BR&gt;Most of my web forms don't need to talk to each other. If they do, all they need to do is pass a number, which is easy to send on a query string and validate. This also makes the queries bookmarkable, which makes the application user friendly. &lt;BR&gt;&lt;BR&gt;The separate assembles method is similar to how the open source industry works: do one thing well and pass the result to next in line by script. This is the best way to look at web applications, since that is how the end user sees them. When a user ccomes to a 50 page site, he/she sees 50 different and separate applications, not one, and will treat the site as 50 applications. Writing web sites to conform to this mentality makes for faster applications.&lt;BR&gt;&lt;BR&gt;Some of the applicaiton I read from posts on thsi site sound like they are in serious need of redesign. They seem to designed as Windows programs, which doesn't cut it a cross-platform environment such as the internet.</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1085344.aspx</link><pubDate>Mon, 17 Oct 2005 17:28:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1085344</guid><dc:creator>mbund</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1085344.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1085344</wfw:commentRss><description>I just re-read what I posted and I should have been more clear. AFAIK, there is no way to maintain a single assembly compilation model with VS05 and ASP.NET 2.0 that I know of.</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1085343.aspx</link><pubDate>Mon, 17 Oct 2005 17:27:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1085343</guid><dc:creator>mbund</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1085343.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1085343</wfw:commentRss><description>&lt;P&gt;AFAIK, there is no way to do this with VS05 or ASP.NET 2.0. &lt;/P&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1084775.aspx</link><pubDate>Mon, 17 Oct 2005 08:05:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1084775</guid><dc:creator>barwickl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1084775.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1084775</wfw:commentRss><description>Yeah, in my case adding a reference to each page would solve the problem but it doesn't feel like the right thing to do.&amp;nbsp; This is not an application I'm migrating either but it's a model which I found worked in NET 1.x.&amp;nbsp; It feels awkward to insert and maintain a list of references in every page.&amp;nbsp; As you'll appreciate, if I need to generate links to 10 different pages using my technique, I will be required to reference each of the 10 pages.&amp;nbsp; This just worked in NET 1.x.&lt;BR&gt;&lt;BR&gt;This is a breaking change between framework versions and I'd hope there was some way to maintain the previous (single assembly) behaviour.&amp;nbsp; Can anyone tell me if there is a way to do this?&amp;nbsp; I suspect not as we no longer have web project files and several other people seem to have ran into problems setting default namespaces, etc.</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1083348.aspx</link><pubDate>Fri, 14 Oct 2005 18:41:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1083348</guid><dc:creator>mbund</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1083348.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1083348</wfw:commentRss><description>Just checking, but wouldn't adding a Reference directive to your aspx page allow your static method to work (I assume this is a code-behind to code-behind reference)? If so, it seems like a simple fix (and one that is usually caught and fixed by the latest web project migration wizard).</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1078079.aspx</link><pubDate>Mon, 10 Oct 2005 11:57:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1078079</guid><dc:creator>barwickl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1078079.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1078079</wfw:commentRss><description>&lt;P&gt;To avoid hardcoding URL's and querystring parameters in my pages I would often add static methods with parameters to a page.&amp;nbsp; For example, ShowCustomerDetails(customerID As Integet) which returned a Url with query string parameters ("/CustomerDetails.aspx?customerID=123").&amp;nbsp; This allowed standard interfaces to be developed between pages.&amp;nbsp; I'd use the static method to set the NavigateUrl of hyperlinks, etc.&amp;nbsp; I was quite pleased with this solution as it allowed type safety of parameters and allowed parameter names, default values, etc to change without touching any referencing pages.&lt;BR&gt;&lt;BR&gt;As 2 pages can no longer 'see' each other this is now broken in Net 2.0.&amp;nbsp; This is just another example of the pain which is the new compilation model.&lt;BR&gt;&lt;BR&gt;The ASP team can give us any number of workarounds to the new problems introduced but the fact is they are problems which should have never been created.&amp;nbsp; I've read ScottGu's justification of the changes and the removal of the web project file but the fact is I'm not seeing any of the perceived benefits, just being frustrated at the things which no longer work in 2.0.&lt;BR&gt;&lt;BR&gt;Time and time again, we're seeing MVPs and other experts&amp;nbsp;in the community criticse the new model but the ASP team don't seem to want to listen.&amp;nbsp; Where are all the advocates of the new model?&amp;nbsp; I certainly don't see any outise the ASP team.&lt;BR&gt;&lt;BR&gt;The new features in Whidbey bring a huge amount to the ASP web platform but the changes to the compilation model/lack of a project file seem to be a huge step backwards.&lt;/P&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1065162.aspx</link><pubDate>Tue, 27 Sep 2005 23:51:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1065162</guid><dc:creator>Kressilac</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1065162.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1065162</wfw:commentRss><description>I'm currently developing a large site and I can tell you that the "performance gains" of multiple assemblies is not as great as advertised.&amp;nbsp; We currently have about twenty directories and some of them have upwards of 50 aspx pages.&amp;nbsp; Each page typically has a databound grid view, two databound edit views and at times 1 - 10 child grid views on a detail view.&amp;nbsp; With the amount of data that we display on the application, a CRM application for Auto Dealerships, compile times have become a problem even with the new enhancements.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Our experience has shown that the compiler is very picky about which files have been touched and how they affect other files.&amp;nbsp; This is perhaps a result of all the app_Code classes that make up our business layer being compiled into one assembly.&amp;nbsp; Touch the a single file in that directory and the entire application recompiles.&amp;nbsp; &lt;BR&gt;&lt;BR&gt;Our editing has show sporadic support for editing on the fly.&amp;nbsp; Often times a single attribute change to the markup of an aspx page causes the entire application to recompile which at this point forces the rerun of the application to timeout.&amp;nbsp; It would be nice if the built-in web server preserved sessions state and httpcontext while the compiler was working its magic.&amp;nbsp; As of now we end up recompiling about once every three changes to a page.&amp;nbsp; Code behind changes increase the rate of site recompile and touching anything common invalidates the entire common layer.(i.e. app_Code, app_Themes, master pages, bin dlls)&lt;BR&gt;&lt;BR&gt;At this time, I'm not convinced there is a big performance improvement over the old 1.1 way of doing things.&amp;nbsp; On paper, sure and in marketing yes it is there but in the real world its just not as visible.&amp;nbsp; A small upgrade in developer ease really.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Derek Licciardi&lt;BR&gt;&lt;BR&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1063890.aspx</link><pubDate>Mon, 26 Sep 2005 22:05:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1063890</guid><dc:creator>swildermuth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1063890.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1063890</wfw:commentRss><description>I agree with Rick.&amp;nbsp; My problem with it is *not* a migration issue...&amp;nbsp; I am working on a new site and the &amp;lt;% VirtualReference %&amp;gt; idea seems to be hacky, and the idea of a post-build step to build into a single assembly is a hack.&amp;nbsp; I understand the motivation for this *feature* but it should be an option, not the default (IMHO).</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1063871.aspx</link><pubDate>Mon, 26 Sep 2005 21:51:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1063871</guid><dc:creator>mbund</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1063871.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1063871</wfw:commentRss><description>&lt;P&gt;My apologies for not being clear. I meant the set of VS05 web project changes (not just the use of multiple assemblies) allow easier web development as well as performance improvements. The URL I posted was for Scott's justification of that statement.&lt;BR&gt;&lt;BR&gt;Thanks,&lt;/P&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1063862.aspx</link><pubDate>Mon, 26 Sep 2005 21:42:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1063862</guid><dc:creator>rstrahl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1063862.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1063862</wfw:commentRss><description>&lt;P&gt;Michael,&lt;/P&gt;
&lt;P&gt;With all due respect to Scott, but what Scott describes in that post&amp;nbsp;is a hack! It's a workaround for a design problem that many people have pointed out very early on in the product cycle and have been ignored by the ASP.NET team.What's interesting to me is that the people that are complaining about this most are many of the gurus who supposedly know how to take best advantage of the tool - that's always a bad sign when your most loyal supporters end up being the loudest for criticizing a feature.&lt;BR&gt;&lt;BR&gt;This isn't the last you're going to hear about this problem either - once ASP.NET ships and more developers will actually build real applications with it you will see many more developers run into this issue.&lt;BR&gt;&lt;BR&gt;Part of the problem too is that even for new development this will be a huge issue, because once you get to the point where you need to dynamically drop controls there aren't a whole lot of workable options to do it and you're stuck.&lt;BR&gt;&lt;BR&gt;+++ Rick ---&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1063717.aspx</link><pubDate>Mon, 26 Sep 2005 19:59:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1063717</guid><dc:creator>swildermuth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1063717.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1063717</wfw:commentRss><description>I've been told the "performance improvement", but since no compilation is happening at runtime in most large sites, I don't see multiple assemblies as being a performance improvement.&amp;nbsp; Perhaps at development time.&amp;nbsp; (I have read on Scotts blog about a new tool to allow compilation to a single assembly for deployment.)&lt;BR&gt;&lt;BR&gt;But to understand what you said, how does multiple assemblies help "make it easier to develop web apps"?&amp;nbsp; Easier for the ASP set who want do drop their code on a server and have it auto-compile, sure.&amp;nbsp; But again, for most enterprise-sized applications this is a security risk and encourages the black days of developers having access to the web servers to fix issues.&amp;nbsp; This certainly feels like a step backwards, not forwards.&lt;BR&gt;</description></item><item><title>Re: Pre-compilation anywhere</title><link>http://forums.asp.net/thread/1063435.aspx</link><pubDate>Mon, 26 Sep 2005 15:54:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1063435</guid><dc:creator>mbund</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1063435.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=175&amp;PostID=1063435</wfw:commentRss><description>&lt;P&gt;The change to use multiple assemblies is just one of many changes in the web project system to improve performance and make it easier to develop web apps. If you have not done so already, you should check out ScottGu's blog post on the subject at &lt;A href="http://weblogs.asp.net/scottgu/archive/2005/08/21/423201.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2005/08/21/423201.aspx&lt;/A&gt;&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Thanks,&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description></item></channel></rss>