Sunday, March 6, 2011

The page cannot be found: Install .Net framework 4.0 and deploy ASP.Net 4.0 application in IIS 6.0

You have an IIS 6.0 web server with .net framework 2.0 installed. You want to deploy ASP.Net 4.0 application in this web server. In order to this, you will install .net framework 4.0 and deploy your asp.net 4.0 application. When you access your newly deployed application, you will get “The page cannot be found”.

A lot of headless running around ensued after this, trying to figure out why 404 is occurring. It is difficult to trace this error. Since the web application is deployed accurately, there is no reason of this error.

The problem is in the following image:

clip_image002

When you install the .net framework 4.0, by default it’s not allowed. You have to allow it to run the asp.net 4.0 application.

Hope this helps!

5 comments:

SSKarp said...
This comment has been removed by the author.
SSKarp said...

Thank you very much. It was extremely helpful.

Mujeeb Rahman .PT said...

Thank you a lot.. sir
you save me some days effort

Mujeeb Rahman .PT said...

thanks lot.. sir
greatly helping me.

Fish said...

Thank you sir! You saved me from myself!