On a site upgraded to DNN 7.2.2, the SharePoint sync with Outlook stopped working after switching the web.config to "advanced" urfFormat instead of "humanfriendly". The Outlook message during Send/Receive is " Task 'SharePoint' reported error (0x8004010F): 'The SharePoint List (Server...List) cannot be fount. If the problem continues, contact the SharePoint site administrator. HTTP 404.' " Strangely, it works properly on my localhost.
Advanced format, introduced in DNN 7.1, strips out the .aspx and other things to make the URL look better for SEO and people. I found a handy module that configures it on codeplex: https://dnnurlmanagement.codeplex.com/
That module allows you to enter regex expressions to exclude URLs from this 'advanced' processing, and leave them as they were.
The problem I am having is that I don't know exactly what URL Outlook is looking for. Clearly, it is an http URL, since it gets a 404. I tried deleting the server list from Outlook, and then add it back. It showed it was accessing something like this:
So I tried excluding AllItems.aspx from 'advanced' URL processing, but that didn't help. So I'm thinking that URL is just for the initial handshake. Is anyone else having this problem and do you know what URL characteristics to exclude in order to get this to work?
Opened a ticket as requested, including access info.
Meanwhile, I have fixed the problem, but am wondering if it is the right way.
I noticed 404 errors in the event log every time Outlook Sync was accessed by an Outlook program. The errors said the url was:
and the User Agent was Microsoft Office Outlook 2010. So I added /_vti_bin to the RegEx expression list for "Do Not Rewrite", recycled the App Pool and cleared Cache, and everything worked swell!
But now that I am thinking about it, shouldn't all .asmx files be excluded from 'advanced' URL Management? If so, that would be done in the "Ignore URL Regular Expressions:" field of the X3.DnnUrlManagement module (first field of Regular Expressions tab). Any clue what the Regex would be to add on to the end?
Here's the default Regex for that field which causes .pdf, .gif and so on to be ignored:
After doing a search for .asmx files, I noticed that Outlook Sync has an .asmx file: \DesktopModules\OutlookSync\OutlookContacts.asmx
It seems to be a code behind file. Anyone know if the URL rewriter would cause problems if it rewrote that URL?
It seems that .asmx files cannot be safely excluded "so DNN does not interpret requests to them as requests that may change the current portalid - and expire the users auth cookie". Thanks to DNN's Cathal Connolly for that explanation. See the full post at http://www.dnnsoftware.com/answers/ci...
However, he thinks that adding _vti_bin as an excluded directory is a good idea, since SharePoint request services use it, and DNN may add that exclusion by default in the future. Until then, if your are trying to run Outlook Sync in DNN 7.1 or later with advanced URL management turned on, you will have to add that directory to the excluded list in order to get things to work properly.
BTW, using X3.DnnUrlManagement to manage Advanced URL Mgt. It's a brilliant solution. http://dnnurlmanagement.codeplex.com/