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
- 1Audio preview in Finder not working 10-11
- 2No sound on my home audio system with universal dock 10-11
- 3Does Reader IOS have native external display support? 10-11
- 49iAS Rel2 OID starts but stops automatically seconds later 11-30
- 5Truncate table lock issue 11-30
- 6Cannot submit iPhone repair request online 11-30
- 7Would like to know if mobileme will support .ASP or .PHP anytime soon? 11-30
- 8Can't open file saved in newer version 11-30
- Error while creating a business process :10/11
- Adobe Media Encoder CC 2014 not recognising opacity/alpha values from After Effects10/11
- Reset Printing System does not exist on my computer!!!10/11
- WEB SMS receiving problem. Please, give me some help.11/30
- What is the use of an outbound Select in DB adapter11/30
- Disable updating of the menu widget when working with Muse file?11/30
- Delivery acknowledgement using javamail11/30
- Is ios 8 suitable for iphone 511/30
- Privacy settings does not include Motion Activity11/30
- Compile error : "unable to find javac compiler"11/30