<?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>VS 2005 Web Application Projects</title><link>http://forums.asp.net/1019.aspx</link><description>General discussions of VS 2005 Web Application Projects</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/3192260.aspx</link><pubDate>Thu, 28 May 2009 04:42:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3192260</guid><dc:creator>neha_flower_2003</dc:creator><author>neha_flower_2003</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3192260.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=3192260</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dear sir, I dont want to add refrence of user controls neighter in aspx page nor web.congf file, then how can&amp;nbsp; I load user control dynamically.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;plz sir replying me ASAP (very urgent)&lt;/p&gt;
&lt;p&gt;thanks with regards&lt;/p&gt;</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1420005.aspx</link><pubDate>Fri, 06 Oct 2006 00:40:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1420005</guid><dc:creator>chadly</dc:creator><author>chadly</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1420005.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1420005</wfw:commentRss><description>Ah, nevermind.&amp;nbsp; When I opened my previously created WAP, the old control declarations were still declared as UserControl, but when I add a new one to the page, it fixes all the declarations.&amp;nbsp; Its all gravy now.&lt;br /&gt;</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1418405.aspx</link><pubDate>Wed, 04 Oct 2006 17:50:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418405</guid><dc:creator>timmcb</dc:creator><author>timmcb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418405.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1418405</wfw:commentRss><description>&lt;p&gt;The scenario as originally described was fixed and verified in the SP1 beta.&amp;nbsp; I just reverified it as well.&amp;nbsp; Your scenario must be different somehow.&amp;nbsp; Where is your .ascx on disk relative to your page?&amp;nbsp; What does your config registration look like for the user control?&amp;nbsp; Are you using IIS or the VS Web Server?&lt;/p&gt;</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1418323.aspx</link><pubDate>Wed, 04 Oct 2006 16:40:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418323</guid><dc:creator>chadly</dc:creator><author>chadly</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418323.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1418323</wfw:commentRss><description>&lt;p&gt;Tim,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I just downloaded the VS 2005 SP1 Beta and it appears this problem is still happening in WAP.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1398554.aspx</link><pubDate>Thu, 14 Sep 2006 00:41:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1398554</guid><dc:creator>timmcb</dc:creator><author>timmcb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1398554.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1398554</wfw:commentRss><description>Sorry, we have not been good at updating the FAQ.&amp;nbsp; I&amp;#39;ll forward the request to the program manager in charge of web application projects.&amp;nbsp; The only way to get the fix before SP1 is to contact Microsoft product support and request a hot fix for the problem.</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1391662.aspx</link><pubDate>Wed, 06 Sep 2006 23:30:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1391662</guid><dc:creator>SelfishGene</dc:creator><author>SelfishGene</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1391662.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1391662</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s been many months and still no fix to this problem. I was wondering why hasn&amp;#39;t this been added to the &amp;quot;FAQ and Known Issues&amp;quot; list?&lt;/p&gt;</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1334707.aspx</link><pubDate>Fri, 07 Jul 2006 03:27:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1334707</guid><dc:creator>SelfishGene</dc:creator><author>SelfishGene</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1334707.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1334707</wfw:commentRss><description>Is there anyway to get a fix for this earlier? We have a large site that is painfully slow without WAP but uses a lot of controls... we really need to move to WAP but register user controls in web.config.</description></item><item><title>Re: Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1282536.aspx</link><pubDate>Wed, 10 May 2006 23:59:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1282536</guid><dc:creator>timmcb</dc:creator><author>timmcb</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1282536.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1282536</wfw:commentRss><description>Thanks for the bug report.&amp;nbsp; I can see the problem in the code.&amp;nbsp; We are reading the register directives out of config but not converting the type when it is a user control.&amp;nbsp; I'll try to fix it for the VS 2005 service pack.</description></item><item><title>Incorrect type  generated with User Controls registered in web.config</title><link>http://forums.asp.net/thread/1281809.aspx</link><pubDate>Wed, 10 May 2006 14:40:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1281809</guid><dc:creator>SelfishGene</dc:creator><author>SelfishGene</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1281809.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1019&amp;PostID=1281809</wfw:commentRss><description>&lt;font face=Arial size=2&gt;When we register our User Controls in web.config instead of on the page, we found the type is generated as &lt;font color=#0000ff&gt;System.Web.UI.UserControl&lt;/font&gt; instead of the type of the actual user control. Here are the steps to reproduce this problem:&lt;/font&gt; 
&lt;p&gt;&lt;font face=Arial size=2&gt;1) Create a new Web Site&lt;br /&gt;2) Create a folder called Controls and add a user control to this folder (e.g., WebUserControl.ascx)&lt;br /&gt;3) Add a web.config to the site&lt;br /&gt;4) Add the control registration to the web.config. E.g.:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New" color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;lt;pages&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;controls&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;add tagPrefix="test" tagName="WebUserControl" src="~/Controls/WebUserControl.ascx"/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/controls&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/pages&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;5) Add an instance of the user control to default.aspx:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font face="Courier New" color=#0000ff&gt;&amp;lt;test:WebUserControl runat="server" ID="test" /&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;6) Add a Web Application Project to the solution. Delete default.aspx and web.config from the new project. Copy the Controls folder, Default.aspx, and web.config to the new project.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;7) Right click on the new Web Application project and select "Convert To Web Application"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;8) Take a look at Default.aspx.designer.cs. We expect to see:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&lt;font face="Courier New" color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected Controls_WebUserControl test;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&amp;nbsp;&amp;nbsp;But instead we get:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&lt;font face="Courier New" color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected System.Web.UI.UserControl test;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;Let's try moving the control registration to the page itself.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;9) Remove the "pages" section from the web.config&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;10) Add the control registration to default.aspx:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&lt;font face="Courier New" color=#000000&gt;&amp;lt;%@&lt;font color=#ff0000&gt; Register TagPrefix="test" TagName="WebUserControl" Src="~/Controls/WebUserControl.ascx"&lt;/font&gt; %&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;11) Delete Default.aspx.designer.cs. Right click Default.aspx and select "Convert to Web Application"&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;12) Take a look at Default.aspx.designer.cs. We get what we expected:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font face="Courier New" color=#0000ff&gt;protected Controls_WebUserControl test123;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;So basically whenever we register controls in our web.config, we get the wrong type in the .designer.cs file. In our project we have a number of commonly used controls registered in web.config so unless there is a workaround or fix, we cannot use WAP. I should mention that I tried many different variations on the path for the src attribute ("/", "~/", "./", etc).&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;Please let me know if there is a solution for this. Thanks.&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>