Bruce Chapman wrote
cebe : I'm not sure why you'd get a change like that after going from 4.9 to 5.1, but perhaps there has been a difference in the caching code. I would check to see if that missing directory exists on your server, and perhaps try creating it if it doesn't, or, try checking the permissions for that directory and see if your asp.net worker process ID has read/write permission.
Also, did you upgrade your Url Master install to 1.14.09 before you upgraded DNN? This is important - see blog post http://www.ifinity.com.au/Blog/Technical_Blog/EntryId/70/DotNetNuke-5-1-1-Released-iFinity-Url-Master-Compatibility if you haven't already.
Ah, sorry, I should give more information on the current setup:
- DNN 5.1.1 Community Edition
- IIS 6.0 / ASP.NET 3.5
- Url Master 1.14.09
- Host Settings / Disk cache is disabled. Memory cache is used, Heavy mode. However, setting Disk cache in the Host doesn't solve the problem.
I did create a Cache folder at C:\WINDOWS\system32\inetsrv\Cache, although this location is clearly wrong (C:\..\inetsrv looks like a default value to me). DNN creates a resources file there, which just contains the text DNN_HostSettings. It doesn't solve the problem either; DNN doesn't crash, but URL rewriting doesn't work as if it was disabled.
Given the stack trace I see and debugging a bit, I assume you use something like HostSettings.GetHostSetting("UseFriendlyUrls") in UrlRewriteModule.System.Web.IHttpModule.Init ; I guess DNN returns a wrong or a null value.
When I take a look at the DNN 5.1.1 source code, in DotNetNuke.Library Entities/Host/HostSettings.vb, I see the class HostSettings has been deprecated. I suspect DNN developers introduced a regression in that now obsolete code that might trigger only in some DNN configurations. Just a hint though... Any idea how I could workaround this?
Thanks a lot!
*EDIT* In fact, there were two issues hidden into one. Rewriting does work if I create this Cache folder (which is a hack from my standpoint, not a viable solution on the long term). For some reason, I lost a setting (Replace Spaces in Page Titles) which was preventing the URL Rewriting from working. Seems to have vanished during the upgrade. Anyway... I hope a further release of either DNN or URL Master will propose a solution to the Cache folder issue.