Wednesday, December 29, 2010

Site on IIS 7 gave me error 500

After setup .NET Framework 1.0 on windows 2008. When tring to browse any site, gave me error 500. Unable to load C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll.

After investigation I found solution to register Framework 4.0 again using command aspnet_regiis /i

Thursday, March 11, 2010

Fixing File Upload Size Limit in IIS 7

In the older IIS (IIS 6 or lower), adding the following code to in the web.config file in the web application’s folder Tallows a file upload of 2,000,000 kilobytes and it will time out after 100,000 seconds, or 27.8 hours.:

<httpruntime executiontimeout="100000" maxrequestlength="2000000">

To do this in IIS 7 on Windows 2008 Server add the following code to in the web.config file:

<security>
<requestfiltering>
<requestlimits maxallowedcontentlength="2000000000″>
</requestfiltering>
</security>