I have almost finished my mail app, but a strange issue that only appears with IE9 prevents me from successfully completing the verification process and therefore I can not publish my app.
The issue is very similar to this post, which could unfortunately not have been answered so far:
'OSF is undefined' script error in o15apptofilemappingtable.js
file when Mail App launched
I have tested the app successfully with the following browsers: Chrome (40.0.2214.111 m), Firefox (35.0.1), IE 11 and IE 10.
In IE9 I first get:
went wrong and we couldn't start this app. Please try again later or contact your system administrator.
I then click "retry" I get:
app may not load properly, but you can still try to start it.
I click start the app works. The debug console of IE indicates that there is a problem in the o15apptofilemappingtable.js file:
SCRIPT438: Object doesn't support property or method 'GetContext' o15apptofilemappingtable.js, line 11 character 110934
The problem should be the call to: "window.external.GetContext()" in the file mentioned above.
Important to mention is, that when I build and deploy the sample mail project that ships with Visual Studio it just works fine (this is a difference to the other thread from above). There must be something special with my code but even after days of research
I can absolutely not figure out what it is. In contrast to the sample mail app, my project is an ASP.NET MVC application by the way (if that is important).
To isolate the problem I tried several things:
But whatever I tried it doesn't help and basically I am fishing in troubled waters as I do not have an idea what the real problem is and why it is only happening on IE9.
in the meantime I noticed that I also get this problem with Safari.
I started to debug the office api and could isolate the problem further.
Please forward the following information to the responsible microsoft engineer as it contains valuable information to fix the problem.
The Exception I get happens becaus of a call to window.external.GetContext() in in the o15apptofilemappingtable.js. The calls happens because in the function OSF.InitializationHelper.prototype.getAppContext, the value of this._hostInfo.isRichClient
is true. Looks like in IE9 and Safari the api thinks it is running in the desktop version of outlook (but of course it is not and therefore the call to window.external fails -> I guess only available/set in desktop environment).
the xdm part which should be passed in the window.location as a hash value is not set in IE9/ Safari.
At this position I lose the scent and don't know where the xdm part is passed/added to the url. Perhaps in the osfruntime.js? Unfortunately I couldn't find a debug version of this file.
Please do not hesitate to contact me if you have further questions
- 1How do I send an email to a group? 10-11
- 2TS1398 My iPhone 5s can no longer use Internet on a wifi network. I've reset everything, how can I roll back to iOS 7? 10-11
- 3Media Encoder Dynamic Link error 5027 :: 12 ???? 10-11
- 4Subscription to call Montenegro is not working. 10-11
- 5Acrobat 3D and Spaceball 5000 10-11
- 6Changing web server refresh to less than one second 11-30
- 7Adobe forms Issue 11-30
- 8HOW TO: Install East Asian Language Pack on Blackberry 9780 11-30
- IPod's Software v1.2 VS iTunes's Software v188.8.131.520/11
- Templates with rollovers10/11
- HDMI/DVI video noise when running with 9400M10/11
- ADF Faces: Differring text sizes for AFFieldText and AFFieldTextDisabled11/30
- Function Module to get the TIMESTAMP11/30
- Only photo "frames" appear11/30
- Why does updating my itunes always make me lose playlists created on my ipad when i plug it in!!? so annoying.11/30
- Could someone explain this to me.11/30
- Raw material Inspection using STO11/30
- Mavericks cs6 multiple monitors11/30