Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Friday, 21 February 2014

IIS7 not serving pages (ASPX) but just displays a blank page

I created a new IIS website with ApplicationPoolIdentity as the identity and .NET framework set to v4.0. In my hosts file I set my localhost to point to my test.dev domain (127.0.0.1 test.dev). When I tried viewing the site all I got back as a blank page.

What I tried: 

1. Installing all IIS components as I thought I might have missed some - this didn't help
2. Add full control permissions to my web folder for the ApplicationPoolIdentity (http://stackoverflow.com/questions/7334216/iis7-permissions-overview-applicationpoolidentity) - this didn't help
3. Registered .NET 4 with this command: C:\Windows\Microsoft.NET\Framework\v4.0.30319 C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis.exe -i - This WORKED!!!

Thursday, 28 March 2013

Safari error not showing CSS and images

The Problem

I was getting strange rendering behaviour on Safari 5.1.7 for Windows 7 when viewing my website. The page basically looked like it was not showing CSS or the images. The website rendered fine in all other browsers on Windows 7 like Chrome, IE and Firefox.


Troubleshooting

So what was the problem with Safari? Initially I thought it was due to the Safari browser on Windows, and the fact that Safari was no longer being supported on Windows, but this was not that case as the error was also occurring on OSX Safari 6.0.3.

Then I tried viewing my local development site in Safari on Windows and the site rendered correctly. So the difference between my development site and the staging environment as our staging environment required a IIS username and password to view the site. Hence something was going wrong with the authentication in Safari and this caused the CSS and images to not download correctly.

The developer web inspector network tab showed 302 status codes and undefined types which in turn caused the JavaScript to break and throw console errors.

The Solution

Changing IIS fixed this issue for me.

1. Open IIS
2. Select your web site
3. Open Authentication under the IIS section
4. Make sure you only have Basic Authentication enabled and everything else is disabled

The error was due to a conflict with my Authentication settings:

Challenge-based and login redirect-based authentication cannot be used simultaneously

Hope this helps someone out there!

Monday, 14 January 2013

Umbraco "Oops...the installer can't connect to the repository!"

I was getting this error on a new Umbraco 4.11.1 installation but only when viewing the site from IIS7 and not when running the site from VS 2010. This also made my packages folder in Umbraco developer tab empty.

I had all the correct permissions on my website folder but it was still failing to display when visiting my dev URL setup in IIS.

The solution was to add the same user/group for the website folder to the C:\Windows\Temp folder. Umbraco was failing permissions trying to access this folder.

Hope this helps someone.

Thursday, 26 March 2009

BareTail

BareTail is a very useful log file viewer. All you need to do is point it to the latest log file i.e.

C:\WINDOWS\system32\Logfiles\W3SVC1\ex080512.log

You can download it from: BareTail