WebDAV links open read only first time - webdav

I have integrated a WebDAV server into my website (using the product by IT Hit) to allow users to do "online editing" of Office documents without having to download and re-upload. It generally seems to work except for the first time a user tries to open a link, it is always read only. After they have opened any WebDAV link the first time, it seems to work fine after that. Looking at Fiddler, there are a different set of requests to open the file the first time compared to subsequent times.
First time (HTTP Method - URL - User Agent):
GET - Files/doc.docx - Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)
OPTIONS - Files/ - Microsoft Office Protocol Discovery
OPTIONS - Files/ - Microsoft Office Excel 2013
HEAD - Files/doc.docx - Microsoft Office Excel 2013
GET - Files/doc.docx - Microsoft Office Excel 2013
PROPFIND - Files/doc.docx - Microsoft Office Excel 2013
Subsequent times:
OPTIONS - Files/ - Microsoft Office Excel 2013
HEAD - Files/doc.docx - Microsoft Office Excel 2013
LOCK - Files/doc.docx - Microsoft Office Excel 2013
GET - Files/doc.docx - Microsoft Office Excel 2013
PROPFIND - Files/doc.docx - Microsoft Office Excel 2013
The browser treats the links differently when you click them in each case also. The first time, it opens the usual open/save as/cancel box but after that it gives you a Microsoft Office dialog asking if you want to open this file.
It does not seem to be just my implementation though, as the same behaviour happens when using this: http://ajaxbrowser.com/ (you need to be in IE).
I have tried intercepting the requests that are not going to work by checking the user agent but it seems that stops it working out how to open the links correctly in future.
Has anyone come across this before and found a way around it? It isn't great if the first time a user tries the new functionality, it doesn't work. It also isn't that obvious that it hasn't worked and I can easily see some users saving the read only file locally and expect that it has synced with the server. Any solution that would avoid that situation is welcome.

This turns out to be a bug relating to Office 2013. It seems to work fine for Office 2010.
I asked IT Hit to have a look at it and they found a work around if you open the link using the following javascript:
window.location('ms-word:ofe|u|' + documentLocation);
Where agent is ms-word can be replaced with ms-excel depending on the type of file.

Related

Gracefully migrate from SSRS2014/IE to SSRS2016/Edge

I have a chicken-egg-problem when upgrading from SSRS2014 to SSRS2016.
I cannot move to the new reportviewer because I still have users on
IE. The new report viewer cannot print nicely on Internet Explorer:
if you click print, you can download a pdf and THEN print it.
Due to the large amount of reports we print, this is no feasable option.
I cannot migrate away from Internet Explorer because of the old report
viewer: The ActiveX print control only works in Internet Explorer.
So I want to migrate to the new report server, yet show the reports through the old viewer for IE-users. So my test web server has both the new and the old reporting component. If the client uses Internet Explorer, I serve the old one. Otherwise, they get the new one.
In my test environment, reports from SSRS 2016 are rendered correctly by the old reporting control. (Microsoft.ReportViewer.WebForms version 11.0.0.0) However, when I try to print, the client displays a dialog box "Unable to load client print control"
On my server, an exception is thrown:
The report server could not find the internal resource '2015.130.1601.05rsclientprint.cab'. (rsInternalResourceNotFoundError)
[ReportServerException: The report server could not find the internal resource '2015.130.1601.05rsclientprint.cab'. (rsInternalResourceNotFoundError)]
Microsoft.Reporting.WebForms.SoapReportExecutionService.WritePrintCab(ClientArchitecture arch, Stream stream) +797
Microsoft.Reporting.WebForms.ServerReport.WritePrintCab(ClientArchitecture arch, Stream stream) +75
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +304
I know there is a new reporting control, making the ActiveX print control obsolete. However, I'd like to prevent a big bang implementation. Printing with the old control only works on Internet Explorer, so all users use IE. Printing with the new control DOESN'T work with IE.
(If 100+ users print 50+ reports a day, having to download a pdf and print that is a BIG difference.)
https://learn.microsoft.com/en-us/sql/reporting-services/report-server/enable-and-disable-client-side-printing-for-reporting-services says:
"Previous versions of Reporting Services used an ActiveX control that required downloading to the client computer from the report server. If you upgrade your report server to SQL Server 2016, the print control is not removed from the report server or client computers."
This suggests that ActiveX printing is also possible with the new server, probably through the old Report viewer control. If that works, I can put the new control next to the old one, and gradually migrate my users to a modern browser.
Did anybody get this to work without restarting and installing SQL Server 2014, and upgrading?
To migrate SSRS Reports from 2014 to 2016. Simply follow below steps:
Backup and restore original databases
Backup encryption key
Install Ssrs 2016 on new server with managed service account.
Restore databases and remove server key entry from key table in the report database.
Configure Ssrs 2016 to look at new restored databases on same new instance.
Restore keys from backup.
Or visit this link :https://www.mssqltips.com/sqlservertip/2692/migrating-sql-reporting-services-to-a-new-server-by-moving-the-reporting-services-databases/

harmon.ie error with attachments "Failed to replace one or more"

We have a user running Outlook 2013 with Harmon.IE version 4.1.1.3322
When they try to forward an email with multiple attachments (one each of .doc, .pdf and .ics) they get an error message stating,
Failed to replace one more more attachments with links. If you try to send the message again the remaining attachments will not be replaced with links.
Is there any known issues with Harmon.ie and Outlook 2013? Or is that a problem with the file type? (That said I am running the same setup and it worked fine for me)
Please download and install our latest version 4.6 from our web site then check again.
---- Jean

Visio 2010 opens web link read only on some PCs...other open Read Write

We are using the itHit Server and Ajax WebDAV Library to edit documents with our web application. We have two client PCs. Both have the same OS (W7 sp1 64bit) and Visio 2010 (14.0.7145.5000 32-bit). One has IE9 and the other has IE11. The IE9 PC opens the Visio document read-only after prompting for user credentials. The IE11 PC open the Visio document read-write after prompting for the user credentials. We noticed in Fiddler that the IE9 log never gets to the Lock command but the IE11 does. The IE11 log shows a number of commands (options/propfind/head) that are not in the IE9 log.
What could be causing this? Since Visio has started (and prompts for the user credentials), IE should not be involved but that is a difference in the two PCs
I set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters\BasicAuthLevel=dword:00000002 and both PCs that did not work now opened the document RW and allowed to save back to the server…
see: https://support.microsoft.com/en-us/kb/2123563?wa=wsignin1.0
Possibly MS Visio has cached information about the previous unsuccessful WebDAV connection somewhere. Please try the following on the computer where you have this issue:
Unmount WebDAV connections executing following console command:
net use * /DELETE
This will unmount all network connections including WebDAV. With 'net use' command you can also list connections first and unmount only specific WebDAV connections if you do not want to unmount all connections.
Delete cached credentials if any. You can do this executing the following command:
rundll32.exe keymgr.dll, KRShowKeyMgr
Clear MS Office WebDAV connections cache. It is stored under the key: HKEY_CURRENT_USER\Software\Microsoft\Office\\Common\Internet\Server Cache\
To clear cache just delete all keys under this key.
Also make sure you have all Windows and Visio updates installed.

Where to find pdb/symbol files for old OS (like Windows 2000)

I am looking for symbol files for Windows server 2000 but does not seem like its any more available to download on microsoft web site
Have you tried using their symbol server? I don't know if that [still?] has symbols for 2000 or not, but it's worth a shot.

Mysterious process - RunSilent - error on Windows Server 2003

We are setting up production servers (Windows Server 2003 R2 64-bit) for a web application that uses the Dundas Maps for ASP.Net component.
After installation we receive the following error:
"RunSilent has encountered a problem and needs to close."
The question is, what on earth is RunSilent? A google search gets nothing of interest back. It appears to have nothing to do with Dundas. My guess is it has something to do with the graphic drivers.
Cheers - Chris
I found this which led me to this. Could it be some sort of timer running in the background?

Resources