I want to run my page on IIS , I used default template in VS 2010 (NET4) (with prebuild web forms for login and password). Authentication works fine and I get redirected to Default.aspx (which is displayed correctly). Problem is when I first go to the site I get this start login (accounts/login.aspx) screen (jpg in attach) which isn't rendered correctly. Why is that?
Once authenticated all forms are rendered fine (even accounts/login.aspx)
I don't get this problem when use classic web development server from VS2010
Thanks in advance
Loading

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 22, 2011, 8:17 AM EDT
Please check if your CSS is referenced properly in the Login.aspx page, or is there any dyamic code execution, try deleting cache. Can you also attach the page which you get after sucessful login.
Mata37 reputationPosted Oct 22, 2011, 9:55 AM EDT
I don't know why I get this wrong rendered start page, but once I autheticate all pages are "normal" (even login.aspx) page)
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 22, 2011, 6:04 PM EDT
Mata37 reputationPosted Oct 24, 2011, 9:58 AM EDT
pass:Mirkec!
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 24, 2011, 10:27 AM EDT
I have attached the screen shot from my machine,please check. Please try and recreate the app in IIS and select asp.net 4.0. Let us know how it goes
Mata37 reputationPosted Oct 24, 2011, 10:45 AM EDT
When I go to the default.aspx I get redirected to accounts/login.aspx web form, as it should, only problem is that my page isn't rendered right.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 24, 2011, 11:03 AM EDT
Mata37 reputationPosted Oct 24, 2011, 11:49 AM EDT
Mata37 reputationPosted Oct 24, 2011, 12:19 PM EDT
6252
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 24, 2011, 1:15 PM EDT
Please check the following to solve the issue:
1. click on start-> type in the search box "turn windows features on or off"
2. select the Turn Windows features on or off application.
3. Click on Internet Information Services --> World Wide Web Services --> Common HTTP features, and make sure that Static Content and WebDEV Publishing is checked mark.
4. Click ok, it will make the changes.
5. Clear cache, Close IIS and open again and navigate to your website and browse the default.aspx
Let me know how it goes.
Mata37 reputationPosted Oct 25, 2011, 5:42 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 25, 2011, 5:47 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 25, 2011, 5:51 AM EDT
http://ddkonline.blogspot.com/2010/08/fix-iis-7-not-rendering-css-files.html
http://forums.iis.net/t/1143592.aspx
http://gurustop.net/blog/2009/10/12/funny-problem-windows-7-iis-7-5-images-css-not-showing/
apparently i was able to replicate the issue on my machine with that settings turned off and then on. Also can you try changing the CSS path to relative path since it is in the folder like this:
Mata37 reputationPosted Oct 25, 2011, 6:25 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 25, 2011, 6:43 AM EDT
Mata37 reputationPosted Oct 25, 2011, 6:52 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 25, 2011, 6:56 AM EDT