Click here to Skip to main content
11,934,389 members (64,901 online)
Rate this:
Please Sign up or sign in to vote.
See more: IIS7 ASP.NET IIS
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 8-Mar-13 8:34am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
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:

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
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100