Invalid Template URL Bug in Office Web Apps
-
Donnerstag, 15. März 2012 18:47
I recently discovered that Office Web Apps would cause the following exception to be thrown if the extension of uploaded template is not all small letters:
Invalid template URL http://mysharepoint/Test/Forms/Word/WDTMPL.DOTX The template must exist in the Forms directory of this document library. Create the template in the Forms directory, and then re-type the Web address. Note that you cannot move or copy a template into the Forms directory.
I have written some more details about this problem in my blog:
There are two bugs that I see in this behavior:
1- The first bug is that checking the extension uses case sensitive comparison. So simple uploading the file as WDTMPL.dotx instead of WDTMPL.DOTX fixed the problem for me. File names in Windows and Microsoft products have never been case sensitive, so this is different from the expected behavior.
2- The second bug is the exception error message itself. Instead of telling me to "Create the template in the Forms directory", it should tell me that my template is using an unsupported extension. The exception only gets thrown when the template file is not having one of extensions (.dotx, .docx, .dotm, .docm, .odt, .pptx, .odp, .one, .onepkg and .ods). However the exception message had caused me to spend some time looking for a different solution.
http://sherifelmetainy.blogspot.com/
- Bearbeitet Sherif Elmetainy Freitag, 16. März 2012 22:34
Alle Antworten
-
Donnerstag, 15. März 2012 18:56Beantworter
Is this a question or just a rant? :-)
I trust that answers your question...
Thanks
C
http://www.cjvandyk.com/blog | LinkedIn | Facebook | Twitter | Quix Utilities for SharePoint | Codeplex -
Freitag, 16. März 2012 22:31
Lol, Just a rant :)
Seriously though, the reason I posted it is that when I encountered the bug, my search didn't yield any helpful results. So I thought may be someone will encounter the same problem and my post would save them few hours of search and troubleshooting.
http://sherifelmetainy.blogspot.com/
- Bearbeitet Sherif Elmetainy Freitag, 16. März 2012 22:34

