SSL Redirection
Have a website that you want to force everyone to use SSL to reach? Well there is a checkbox in IIS that allows just that. Website > Properties > Directory Security > Secure Communications > Edit > Require secure channel (SSL).
Well that’s all good, but now if they try to access this site using the default http:// they will receive an error page. I didn’t want this, but here is an easy solution. Locate the 403-4.htm file in C:\Windows\Help\iisHelp\common\ and replace all of the code with the following:
<html> |
Now if someone tries to go to any page on your website without using SSL they will automatically be redirected and forced to use this. This also includes anything in the query string.
Very surprised by this bug
I am working with converting a VS.Net 2003 Web Project to VS.Net 2005. In the process I setup a new Virtual Directory and Application for the 2005 project. It seemed like everything should work fine, but I was getting a weird error:
The path ‘/(Application_Name)/App_GlobalResources’ maps to a directory outside this application, which is not supported
What really surprised me was the fix that I found. It’s very simple, I went into the Virtual Directory I had defined under IIS for my new VS.Net 2005 project and took that trailing\ off of the Local Path. This fixed the problem easily, but was very surprising to me. This is the type of error I expect to see in Third Party software, not something straight from Microsoft. Oh well, at least it works now.
Problem loading an ASP.Net Website from VSS
Ran into a problem today trying to load an existing website from Visual SourceSafe to my local machine for development. I manually setup the IIS Virtual Directories/Applications since I knew that VS.Net and VSS don’t work very well together. After getting all of the files out of VSS I was able to run the website by browsing to it using IE, but I kept getting the message “Unable to get the project file from the Web Server” when trying to load the Solution in VS.Net 2003. I was researching potential problems in the Website files themselves until I found out that a co-worker had the exact same code functioning perfectly on his machine. At that point I did a little googling and found the following solution that worked great.
On the machine where the project loaded fine, copy the following directory and all contents to the machine having a problem: C:\Documents and Settings\(User)\VsWebCache\(IISServer)\(ProjectName)
Presto, the project loaded instantly and compiled fine.
Now this is cool…..
If anyone has seen the movie Minority Report, this is similar to the computer screen he used to move stuff around, about the only difference that I can see is that it’s not displayed as a holograph in front of you…hehe
Anyways, check this movie out, stick with it, it gets much better towards the middle and end.
Welcome to my blog
Ok, looks like this is finally up and running. Still messing with the theme and stuff, but I now officially have a blog. Thanks to Catalyst Web Solutions for hosting it.