I had website runing in .net 2.0, When i change the Framework in IIS 6.0 to 4.0 then it could not load the webiste root page and gives the error below:
Server Error in '/' Application.
The resource cannot be found.
Description:
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
If i type the page name with domain name then it works.
Please remember to click "Mark as Answer" on the post that helps you. It can be beneficial to other community members reading the thread.
Site was written in ASP.NET 2.0, i just changed the Framework in IIS 6.0 and also i have updated the web.config file according to 4.0. I hav also created a sepreate App Pool. but nothing worked.
I can access any page with domain name/pagename but it does not pick root page if i only see with domain name.
Please remember to click "Mark as Answer" on the post that helps you. It can be beneficial to other community members reading the thread.
I believe you need to write your code to .net 4.0 as you have changed your app pool to .net 4 version. If you want to use .net 2, then you need to revert it back to .net 2.0.
ashwanisaini
Member
731 Points
164 Posts
Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 06, 2012 11:31 AM|LINK
Hi
I had website runing in .net 2.0, When i change the Framework in IIS 6.0 to 4.0 then it could not load the webiste root page and gives the error below:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
If i type the page name with domain name then it works.
necro_mancer
Star
8169 Points
1595 Posts
Re: Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 06, 2012 12:15 PM|LINK
have you made sure that your site is written in ASP.NET 4.0? Otherwise, you will see this error message
Professional SQL 2008 R2 Service
ashwanisaini
Member
731 Points
164 Posts
Re: Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 06, 2012 12:41 PM|LINK
Site was written in ASP.NET 2.0, i just changed the Framework in IIS 6.0 and also i have updated the web.config file according to 4.0. I hav also created a sepreate App Pool. but nothing worked.
I can access any page with domain name/pagename but it does not pick root page if i only see with domain name.
ashwanisaini
Member
731 Points
164 Posts
Re: Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 07, 2012 01:33 PM|LINK
I could not finf a soltuion of this problem, please help. If you need further details i can provide you.
Thansk in Advance.
carl.steinha...
Participant
922 Points
247 Posts
Re: Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 08, 2012 04:54 AM|LINK
Hi,
I believe you need to write your code to .net 4.0 as you have changed your app pool to .net 4 version. If you want to use .net 2, then you need to revert it back to .net 2.0.
Carl Steinhart
ashwanisaini
Member
731 Points
164 Posts
Re: Root page not found, .net 2.0 to 4.0 conversion IIS 6.0
Jun 12, 2012 08:39 AM|LINK
Thanks for your Update,
Writing the whole code again in .net 4.0 is not a solution, as it is big project. There must be an alternate solution to this problem.