Click here to Skip to main content
Rate this: bad
good
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
good
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.
  Permalink  
Comments
Dustin Prevatt at 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 at 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 at 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 at 8-Mar-13 15:10pm
   
http://support.microsoft.com/kb/246828
Dustin Prevatt at 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
0 Sergey Alexandrovich Kryukov 535
1 OriginalGriff 275
2 BillWoodruff 260
3 Shweta N Mishra 244
4 Deepu S Nair 230
0 OriginalGriff 6,168
1 Sergey Alexandrovich Kryukov 5,818
2 DamithSL 4,958
3 Manas Bhardwaj 4,539
4 Maciej Los 3,755


Advertise | Privacy | Mobile
Web04 | 2.8.1411019.1 | Last Updated 8 Mar 2013
Copyright © CodeProject, 1999-2014
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