Category: Web Dev
ASP .NET and .NET framework
When going through a test installation of MOSS 2007 I ran into a little bit of confusion when it came to the .NET requirements.
1) Need .NET framework 3.0
2) Need ASP .NET 2.0 enabled in IIS > Web Service Extensions
So I downloaded .NET Framework 3.0 from Microsoft's website and installed it. I started digging around for the ASP .NET and found the below:
If you installed IIS before .NET 3.0 (or any other version for that matter), you will need to register ASP.NET with IIS using the following command
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
At this point you can now go into IIS and enable ASP .NET web service extensions.
serving mdb files via IIS
On a default install of IIS you will receive the below error when trying to access hosted mdb files via a website:
Server Error in '/' Application.
--------------------------------------------------------------------------------This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.mdb' may be incorrect. Please review the URL below and make sure that it is spelled correctly.Requested Url: /directory/file_requested.mdb
So reading this error you can assume there is a place where you explicitly forbid different file extensions from being served from your IIS sites. So I started Googling this since I did not know where these settings were. 9 out of 10 results suggested zipping the mdb up and having the user download the zip. Of course that is always a work around, but not what I was looking for.
- Launch the IIS Management console
- Right click your application or the root of your website(s)
- Go to the Home Directory Tab and click "Configuration"
- Go to the Mapping tab and delete the association of the file type MDB
You do however need to keep the MDB extension as an allowable MIME type on win2003, so you do not need to make any setting changes there as this would result in a 404 error.
03/27/08 07:17:15 pm, 