An annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6<p>Hi,</p> <p>This is really frustrating. I have a working site when run through VS2005. All previous versions of the site worked. </p> <p>So I publish the site with &quot;Allow this precompiled site to be updatable&quot; unticked.</p> <p>I remove the old site versions files and Copy the new version of the site upto the server. Lots of stuff works , new pages work, however some old unchanged pages no longer work and the error message is:</p> <p><em>The file '/App_Forms/Reporting.aspx' has not been pre-compiled, and cannot be requested.</em></p> <p><em>Now I see the stub file and the file in the bin dir, this is an old file that used to work fine and has had no changes, also it works when compiled up in vs2005.</em></p> <p><em>Based on some other posts out there I already reinstalled ASP.net 2.0, no luck.</em></p> <p>So I'm scratching my head and totally frustrated any one got any ideas?</p> <p>Thanks</p>© 2009 Microsoft Corporation. All rights reserved.Mon, 28 Jul 2008 20:09:02 Z70a7842b-222d-43f8-a8ea-6f28aa9d026ahttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#70a7842b-222d-43f8-a8ea-6f28aa9d026ahttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#70a7842b-222d-43f8-a8ea-6f28aa9d026aTikolahttp://social.msdn.microsoft.com/Profile/en-US/?user=TikolaAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6<p>Hi,</p> <p>This is really frustrating. I have a working site when run through VS2005. All previous versions of the site worked. </p> <p>So I publish the site with &quot;Allow this precompiled site to be updatable&quot; unticked.</p> <p>I remove the old site versions files and Copy the new version of the site upto the server. Lots of stuff works , new pages work, however some old unchanged pages no longer work and the error message is:</p> <p><em>The file '/App_Forms/Reporting.aspx' has not been pre-compiled, and cannot be requested.</em></p> <p><em>Now I see the stub file and the file in the bin dir, this is an old file that used to work fine and has had no changes, also it works when compiled up in vs2005.</em></p> <p><em>Based on some other posts out there I already reinstalled ASP.net 2.0, no luck.</em></p> <p>So I'm scratching my head and totally frustrated any one got any ideas?</p> <p>Thanks</p>Thu, 16 Mar 2006 01:57:02 Z2006-09-01T03:41:12Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#653d3031-b5ab-4aa5-98cc-1603ce28acb2http://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#653d3031-b5ab-4aa5-98cc-1603ce28acb2Neil Enns MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Neil%20Enns%20MSFTAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6<p>Tikola,</p> <p>For issues regarding ASP.NET and website deployment you should post in the ASP.NET forums at <a title="http://forums.asp.net/" href="http://forums.asp.net/">http://forums.asp.net/</a>. Someone there will be able to assist you.</p> <p>Neil</p>Fri, 17 Mar 2006 13:27:57 Z2006-03-17T13:27:59Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#55ade27c-5c1a-4036-917b-efd7a3e85b9chttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#55ade27c-5c1a-4036-917b-efd7a3e85b9cFaisal Mohamood MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Faisal%20Mohamood%20MSFTAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6<p>Hi Tikola,</p> <p>A precompiled web cannot dynamically compile other pages in the site. The precompiled image itself is assumed to be the whole site.</p> <p>Also, what you are trying to do is better achieved by using Web Application Projects: </p> <p><a title="http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx" href="http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx"><u><font color="#800080" size=2>http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx</font></u></a></p> <p>This allows you to compile in a way that is similar to Visual Studio 2003 - Visual Studio only compiles the code behind models - but the pages are compiled on the fly during first access.</p> <p>Hope this helps.</p> <p>Faisal Mohamood | Program Manager | Visual Studio - MSBuild</p>Sat, 18 Mar 2006 00:38:54 Z2006-03-18T00:38:57Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#4ec5a860-de36-4428-a118-897754900640http://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#4ec5a860-de36-4428-a118-897754900640Vornhttp://social.msdn.microsoft.com/Profile/en-US/?user=VornAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6I had this annoying bug and my problem was that I was using an assembly that was not installed on the production server (Microsoft.ReportingViewer.WebForms.dll)  The solution was simple, add the assembly as a dependency in the setup project and set the target to the bin folder.Thu, 31 Aug 2006 19:30:31 Z2006-09-27T09:39:50Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#8b64e284-6f1f-4c73-90e3-edd999963f44http://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#8b64e284-6f1f-4c73-90e3-edd999963f44David Hernández Díezhttp://social.msdn.microsoft.com/Profile/en-US/?user=David%20Hern%u00e1ndez%20D%u00edezAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6<p>How did you reach that conclusion?</p> <p>I have seen this error in many posts and every time is a different dll (of course, since every project references the dlls that it needs). </p> <p>But how did you do it? Did you check all your references one by one or there was some error in the Event log or somewhere that pinpointed that missing assembly??</p> <p> </p> <p>Thanks,<br>David</p>Wed, 17 Jan 2007 18:50:03 Z2007-01-17T18:50:03Zhttp://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#db1c3a86-649d-4a5b-af8f-0817fdee0373http://social.msdn.microsoft.com/Forums/en/msbuild/thread/70a7842b-222d-43f8-a8ea-6f28aa9d026a#db1c3a86-649d-4a5b-af8f-0817fdee0373Mario Moorehttp://social.msdn.microsoft.com/Profile/en-US/?user=Mario%20MooreAn annoying problem - A site that works locally in VS2005 - doesn't work when copied to the web & IIS 6Yes, the reference issue is what got me.  The rule it seems to me is that every reference in the web.config must be &quot;found&quot; by ASP.NET or you will get this error.  For me it was the MySql dll.<br><br>Hope this helps.<br>Thu, 26 Jul 2007 19:05:56 Z2007-07-26T19:05:56Z