I have just upgraded a previous .NET 2.0 application to enable AJAX. I followed the instructions of modifying the web.config. Everything works fine on the local host. No errors and the AJAX components work as they should. However, when I publish the web site to the production server I am getting the following error:
The file '/order/orderheader.aspx' has not been pre-compiled, and cannot be requested.
I use the "Publish Website" option in the build menu with none of the check boxes checked. This is how I've published since day 1 and have had no errors up until the addition of AJAX. Also, the error only happens on the one page where the AJAX is located. All other non AJAX pages work properly. Anyone have any ideas? Thanks.
If you go to the Properties of that aspx (right-click -> Properties in Solution Explorer), what does the "Advanced/Build Action" say? It should say "Content".I have figured it out. I read where I needed to install the AJAX Extensions on the server as well, which I had not done, and I was missing a declaration in the web.config for one of the modules. Now everything works. Thanks though for the help.
No comments:
Post a Comment