Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have deployed my website but when i pull the page it only seems to show the html. It doesn't show any of the asp controls that are on the page. Any help is greatly appreciated.
Posted

1 solution

If things are working fine in your development environment and the issue happens only post deploying, you might have missed something during deployment.

Follow this and see if it still happens: Deploying ASP.NET Websites on IIS 7.0 [^]

If you still see the issue, look at the logs and eventviewer to get any direction on what is causing it.
 
Share this answer
 
Comments
Dustin Prevatt 8-Mar-13 14:05pm    
Thanks for the reply I followed the instructions from the link and now I have 500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.
Sandeep Mewara 8-Mar-13 14:16pm    
Sounds like there was some issue with your deployment.

Try following this and see if helps: http://www.codeproject.com/Articles/545054/HTTPplus500plus-e2-80-93plusInternalplusserverplus

Assumptions: Your .NET framework used for development and hosting are same. .NET framework is registered. If not, use aspnet_regiis -i to register it as installed.
Dustin Prevatt 8-Mar-13 15:07pm    
Thanks! My issue now appears to be something to do with iis recognizing the aspx pages. I have the following error.

Active Server Pages error 'ASP 0221'

Invalid @ Command directive

/default.aspx, line 1

The specified 'page language="C#" autoeventwireup="true" inherits="default, App_Web_wrygfud4" enableviewstatemac="false" enableEventValidation="false" ' option is unknown or invalid.
Sandeep Mewara 8-Mar-13 15:10pm    
http://support.microsoft.com/kb/246828
Dustin Prevatt 8-Mar-13 15:22pm    
I think this is for .asp pages and all of mine are .aspx pages. Could this be a handler issue or something like that? sorry this is my first time doing this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900