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
- 1I Need some standard report 10-11
- 2IPod Touch 4gen not seen in las test iTunes. Also will not accept my Apple ID pw 10-11
- 3Acro Reader hallucinates signature fields 10-11
- 4I can't turn off wifi with Control Center 11-30
- 5Help, my daughter changed her passcode and has now forgotten it!! 11-30
- 6Manipulation with String - EBCIDIC 11-30
- 7Is there older software for OSX10.4? 11-30
- 8LR 5.3 on Win 8.1 export freezes 11-30
- Account Assignment Group for Customer........10/11
- Exit code 6: Premiere Pro CS6 [was: Error re]10/11
- TS3212 I can't open my iTunes because it says MSVCR80.dll was not found. What can I do? Have I lost my entire library?10/11
- After Archive and Install, my Home folder is not quite right....10/11
- Installing Photoshop CS6 and then changing computers11/30
- Importing .XML into apps11/30
- Broadband Internet Security issues11/30
- Error assigned the Data and Safety Hygiene11/30
- Sync won't synchronize my bookmarks.11/30
- LAN-based Failover & intermittent drop issues11/30