Upgrades Questions on upgrading to version 7.x.
Version 7.x > Upgrades > HTTP Error 404.0 - Not Found View modes: 
User avatar
Member
Member
jeff.ishar-smsmt - 3/14/2013 10:26:17 PM
   
HTTP Error 404.0 - Not Found
Hi all
I am upgrading from kentico 6.0 to 7.0. The upgrade process really well without any errors. We are running IIS 7.5.

The main issue i am facing after upgrade is that when I try to access website using http://localhost, the iis informs me with HTTP Error 404.0 - Not Found. The default page is set to Home.aspx. The page does exist. I am just not sure about the security or permission I need to fix this issue.

Another thing is that when I enter URL: http://localhost/Default.aspx, iis gives me Access denied error.

Any help will be great.

Thanks
Jeff Ishar

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/15/2013 2:38:41 AM
   
RE:HTTP Error 404.0 - Not Found
Hello.

Did you try to google both error messages you are receiving from your IIS? Regrettably, 404 and Access denied are too general at the moment. Could you please post here whole errors including all details? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
jeff.ishar-smsmt - 3/17/2013 6:48:24 PM
   
RE:HTTP Error 404.0 - Not Found
Hi Radek,
Thanks for your response. I did google this error but not able to find any solution so far.
This morning I checked for error logs and whenever I try to access Home.aspx page, it just throws error in event log. The error is below
EventID: 484691

EventType: W

EventTime: 18/03/2013 10:39:32 AM

Source: Application_Error

EventCode: PAGENOTFOUND

UserID: 102

UserName: teststaff10

IPAddress: ::1

Site: Intranet

EventUrl: /Home.aspx

EventMachineName: ITS1

EventUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

thanks for your help.

Jeff

User avatar
Member
Member
jeff.ishar-smsmt - 3/17/2013 6:50:04 PM
   
RE:HTTP Error 404.0 - Not Found
I know its not an error but a warning but it is crucial for our custom application to access Home.aspx because of custom code in it.

User avatar
Member
Member
jeff.ishar-smsmt - 3/17/2013 8:16:46 PM
   
RE:HTTP Error 404.0 - Not Found
ModuleName
CMSApplicationModule

Notification
16

HttpStatus
404

HttpReason
Not Found

HttpSubStatus
0

ErrorCode
0

ConfigExceptionInfo


Notification

MAP_REQUEST_HANDLER


ErrorCode

The operation completed successfully. (0x0)

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/18/2013 1:53:25 AM
   
RE:HTTP Error 404.0 - Not Found
Hello.

What exact customization do you have, when speaking about "custom" application and "custom code" in your Home page? Is your page Portal engine based, so the custom logic is used in some custom user control, or ASPX template, so it is in the code-behind? When you install Corporate site sample web site into the same instance, does it work? This test could help us determine if we should focus on IIS, or application itself. Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
jeff.ishar-smsmt - 3/18/2013 7:20:46 PM
   
RE:HTTP Error 404.0 - Not Found
Hi Radek,

I manage to pin point little more details for us to analyze.

When I call this URL : localhost/Home.aspx, the IIS throws "Not found exception" (as mentioned earlier).

I removed this line from web.config
<add name="CMSApplicationModule" preCondition="managedHandler" type="CMS.CMSHelper.CMSApplicationModule, CMS.CMSHelper" />

and Home.aspx is being found by IIS. But this is not a solution as I get following error later on
"System events are not initialized. You must call CMSContext.Init() before running any of your methods. In web application, the web.config file must contain registration for the CMSApplicationModule: <add name="CMSApplicationModule" type="CMS.CMSHelper.CMSApplicationModule, CMS.CMSHelper"/>."

because our code is calling CMSContext class so many times in custom code.

Is this something to do with the above handler, do I need to register the custom aspx files with it ?

Thanks
Jeff

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/28/2013 5:13:05 AM
   
RE:HTTP Error 404.0 - Not Found
Hello.

I believe we solved this problem in e-mails. It has quite long history, so if you feel some certain points should be publish here for others, you can share what in particular helped you. Thank you.

Best Regards,
Radek Macalik

User avatar
Certified Developer 9
Certified Developer 9
thepixelshop - 9/12/2013 11:55:12 AM
   
RE:HTTP Error 404.0 - Not Found
Hi folks, we ran into the same problem after upgrading from Kentico 5.5 R2 to Kentico 7. I wanted to post the solution here in case anyone else runs into this.

We had a problem where we were getting 404.0 errors on static files (CSS, JS) that clearly existed. It was especially confusing because some CSS files in the App_Themes folder worked fine, whereas other static files in our project folder were returning 404.0 errors.

It was an issue with the web.config file. The upgrade did not update the modules and target frameworks, it seems like this was causing the error.

Our solution: do a fresh install of Kentico 7 in a different environment, take the new web.config file, and replace the file in your upgrade environment. It will need some minor tweaks (we had to remove a couple of modules) but it's pretty easy to debug and figure out. That solved it for us.