Exception in javascript library when testing Mail app with IE9/ Safari

Hi,
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:
App
Error Something
went wrong and we couldn't start this app. Please try again later or contact your system administrator.
When
I then click "retry" I get:
App
Error This
app may not load properly, but you can still try to start it.
After
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:
* I have removed all other javascript libraries to make sure that there are no conflicts between them.
* I removed all javascript code except the Office.initialize= ...
code to be sure that there isn't a problem with my custom javascript code. 
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.
Best regards
Stefan

Hi,
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 api thinks of running as rich client becaus the XdmInfoValue does not exist in o15apptofilemappingtable.debug.js line 155 (it is undefined). I am not a javascript specialist and don't know what xdm stands for (cross domain? X-Document?) but however:
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
Regards
Stefan

Similar Messages

  • Multiple mailboxes when using mail.app with google in IMAP.

    Hello,
    I have just started using mail.app with IMAP and my google mail account appears to be in two place. The mail.app has the following interface in the left pane.
    MAILBOXES, REMINDERS, RSS and GMAIL all in grey. Below the MAILBOXES i have got the following folders, inbox, sent and trash and below the GMAIL, i have got a replication of the structure in my google account.
    which set of folders should i be using?
    when i deleet the mail in the MAILBOXES it does not seem to delete it in All Mail folder under GMAIL.
    IS the synchronisation between the mails in the mail.app and the google server on a periodic basis. can i force the synchronisation?

    Mail works fine with Exchange 2003. This is how our accounts are configured:
    Incoming Mail Server:your exchange server.domain.com.au
    eg. server2.bunnings.com.au
    Username: domain\User alias\Full username
    eg. bunnings\bobs\bob.smith
    SMTP: smtp.bunnings.com.au
    Web Access Server: webmail.bunnings.com.au
    You can then setup the LDAP options under the composing tab to get the email list from your Exchange server.
    And no i do not work for Bunnings!
    Good Luck!

  • Remove attachments from mail app with imap account

    Hi Folks,
    I am quite frustrated. I am using Apple's mail app with Gmail (IMAP) and I want to remove all of my attachments from Gmail. I am using the 'remove attachment' feature of mail app to do this. However, it removes the attachment, then uploads a copy of the original email without the attachment. Therefore, I end up with two emails: The original and a copy without an attachment.
    I don't get it. I just want to remove the attachments from my emails. I don't want to delete the original email.
    Any thoughts?

    I am not sure when I will get the chance to test this -- maybe this afternoon. But I had not understood that what you called original continued to have the attachments. If so, this strongly suggests to me that it indeed may be the way Gmail maintains the All Mail folder that is causing this. See:
    http://mail.google.com/support/bin/answer.py?hl=en&answer=6581
    If there is a setting to help this, it will have to be one that is selected in the Settings webpage of Gmail, I suspect.
    Ernie

  • Configuring mail account in Mail App with restriction account on

    Hi there,
    How is possible to create an account in Mail App with the restriction Accounts enable?
    I explain myself. I configure all the iPads of my business with the restrictions enabled and select "Don´t Allow Changes" on the Accounts tab.
    Settings > General > Restrictions> ( Enter Passcode ) >Enable Restrictions> Accounts > Don´t Allow Changes
    It suppouses to prevent any change or create an account on Mail App, but I´ve found a couple of iPads with a Yahoo and GMail account configured in the Mail App while the restrictions still enabled.
    Of course, users doesn´t know the Passcode and any of the general setting where modified.
    Is there any other way ( via web perhaps, no high tech at all ) to configure an account in a restricted iPad?
    I´m using iPad 2 ( iOS 5.0.1 )
    I can´t figure out how, and it´s driving me crazy.
    Thanks in advance.

    Thanks gyrhead for the answer.
    I do have Installing and Deleting Apps turned on so users can´t install or delete anything.
    Guessing a four digits passcode in 10 attemps is very dificult, I discard that option.
    There is somehow to add a Yahoo o Gmail account with account Restictions Enable.
    Safari has no restriction indeed, except "private brownsing", so it might come from that way, but I can´t figured out how you might configure a Gmail o Yahoo account straight to the Mail App using just Safari...

  • Terrance Devlin answered a question about iPhoto (4-2012) re:copying iPhoto Library to an ExHD, and losing all the albums. I can't locate the "Choose Library" when I open iPhoto with the opt button. Can anyone help?

    I tried to move my images (over 25,000) to an External Hard drive to open up some memory, hoping to make my computer run faster. It took three hours to move the images and I see them all in the mac's menus. However when I try to open them with iPhoto now, none appeared. and when I tried to import them back to the main HD they come in to iPhoto just fine, but not with the albums nor any of the massive organization i'd created in the original. this represents years of images, and I can't imagine that I'd have to recopy them into folders/albums again.
    Terrance Devlin answered a similar question back in April of last year. He said to make sure the ExHD is formatted to MAC OS Extended (Journaled) and to move the library to the ExHD and then open iPhoto with the option button and select "Choose Library" from the resulting menu.
    Command "I" tells me that the new drive is formatted correctly. I can't locate the "Choose Library" when I open iPhoto with the opt button.
    First, I wondered if the application needs to be on the same drive as the Library. I sure would like to know if I can find out how to restore all the folders I had them in. Terrance's advice helped the user that had asked the question.
    Here's the url for that archived discussion: https://discussions.apple.com/thread/3849933?start=0&tstart=0
    Can anyone help? I'm using iPhoto 5. My MAC is an OS X version 10.4.11.
    thanks, brokenlom

    Here are Apple's instructions:
    If you are using iPhoto ’06 or earlier, you will need to follow these steps to tell iPhoto where the Library is now located:
    Hold down the Option key on the keyboard and open iPhoto. Keep the Option key held down until you are prompted to create or choose an iPhoto Library.
    Click Choose Library.
    Locate and select the iPhoto Library in its new location.
    (from http://support.apple.com/kb/HT1229 )
    Below (in the link below) is what you should see when holding down the option key and opening iPhoto. Keep holding down the option key until this dialogue comes up. You want to select the Choose Library button.
    http://appleclinic.wordpress.com/2008/04/06/change-default-dir-iphoto/

  • Mail.app with gmail setup question

    hello,
    i have a large gmail account i have been using with mail.app for a long time and all works normally. however the "gmail style" is getting a bit out of control for me with the duplicates in sent/all mail. my processing is simple, after reading an email i archive it (so my inbox is always clean) so it means i move it to all mail. but since sent messages are also in all mail i'm pretty sure mail.app is storing these messages twice and whenever you search for messages you always have to filter through the duplicates. I think there are some newer ways to sync mail.app with gmail and i just wanted to ask what's the best solution to this common issue?
    thank you,
    rick

    thanks for the reply. yes that is what i do sorry if i wasn't clear enough. actually the messages coming in are not duplicated since once i move them to All Mail there is only one copy there in All Mail. it's the sent messages since they are saved once in Sent and once in All Mail. does that make sense and how do other deal with this?
    thanks again,
    rick

  • Sometimes my ipod does not down load my entire library when I sync up with itunes, even if I have items loaded in the play list and can see them in the play list in my itunes when I check my ipod play list some items are missing part 1 will be there but p

    Sometimes my ipod does not down load my entire library when I sync up with itunes, even if I have items loaded in the play list and can see them in the play list in my itunes when I check my ipod play list some items are missing part 1 will be there but part two is not. Why?????

    How is your iPod configured to sync music from your iTunes library?  In other words, what options and configurations do you have enabled from under the iPod's Summary and Music configuration panes in iTunes?
    B-rock

  • TS3899 Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Someone is probably sending spam with your address forged on the To: line.  Could be one of your old contacts with a Windows machine has a virus that's doing it.  It's also possible your e-mail account has been hacked, though I'd think such a hacker would be a bit more purposeful.
    For more information, see:
    http://www.reedcorner.net/guides/macvirus/is_it_malware.php#spam
    * Disclaimer: links to my pages may give me compensation, and should not be taken as endorsement of my services by Apple.

  • How configure mail.app with webmail, exchange 2003?

    Hi,
    I would like to configure mail.app with webmail, exchange 2003.
    I have certified file of this serverver, and the webmail used https and port 443,listener port.
    And webmail address is https://webmail.abc.com/exchange.
    How configure mail.app with webmail?
    Best regard and I'm pleased to thank you for you kind support in advance.
    nautiluzth

    For the best Mac compatibility with Exchange, I suggest you use Microsoft Entourage, part of Microsoft Office.

  • Mail.app with mountain lion

    Is somebody else having trouble with mail.app with mountain lion? I upgraded today and I got the Message:
    "Mail Stores Information in /mypathformail/  If this folder is in your computer, use the Get Info window and change permissions for folder to Read&Write"
    I already checked and it is like that.
    Ideas?
    TIA
    Jorge

    I know about the "get mail" button. This is what I am getting (the [!] icons next to each of the mailboxes)

  • How to default to "All Inboxes" when opening Mail app

    I just upgraded to a iPhone 5s, but I was having this issue also when I was using my 4s.  I never had problems until I upgraded to iOS7.  I routinely get mail to all my email accounts and would prefer that when I open the mail app, that it opens to "all inboxes" first rather than the inbox of the first account listed.  A little history....
    4s - my default email account was set to Gmail, but when launching the mail app, it ALWAYS opened to the inbox of my first account listed...Exchange.
    5s - I have deleted the Exchange account, but the mail app continues to open in the inbox of the first account listed, which happens to be my default account...Gmail.
    When I shut down the mail app, I ALWAYS go back to the "All Inboxes" screen, but when I relaunch mail, it continues to open in the inbox of the the first account listed. 
    I've read through other threads of people having this same issue, but any fixes mentioned seem to be 2011 or earlier.  So obviously, this has been happening for some time on other versions of iOS.  Is there a real, CURRENT, fix to this issue? 

    Allan,
    Yes, you are correct in everything you said.   I should have been more detailed.  My apologies. 
    I want my mail app to open to this screen, which it used to.  I was referring to it by the incorrect name.  Not all inboxes but to all my mailboxes screen (see image).  Leaving the app open on this screen, moving to another app, and then returning to the mail app is fine.  However, when I close mail and relaunch, it will open to the inbox of the first account listed, which is Gmail.
    I'd like to add, Allan, that you acutally made me away of a possible solution to this issue if no true fix isn't available.  I like this screen because I get to see how many messages are in which account and prioritize accordingly.  However, I could do as you suggested and keep my mail open to "all inboxes".  I see all my mail, but I can still decide which messages to prioritize without reading them.  It isn't THE solution I was looking for, but is  A solution until Apple fixes it.  Thanks!
    Message was edited by: cisquito

  • Odd gmail behaviour when using mail.app

    Hello there,
    Ever since upgrading to Mavericks, I've been experiencing odd behaviour when sending messages from my gmail account in mail.app. I send a message and up to ten copies of the message appear in mail.app's trash.
    Does anyone know what might be the cause of this?
    many thanks,
    Chidi

    this is a setting in gmail that interfer with mail.app
    the setting is that mail.app is that when you type a mail it will auto save it while you are typing. and gmail will delete the saved onece and the mail.app will create a new all the time
    duno how to turn this off, try by rebuilding the mailbox in mail.app

  • Blank Message Window when starting Mail.app

    Anyone experiencing this in Snow Leopard? Occasionally when I start up Mail.app there will be nothing in the message viewer, "Inbox" is selected still but no messages show and the top bar says Inbox where it usually says Inbox (No. of messages here).
    I have to select another folder and then select "Inbox" again before anything shows. I did a clean install + import of mboxes and I already did a rebuild. Just getting a bit irritating.

    same situation here. After installing SL on two other Macs the third one is having problems with the Mail app. It starts and is just showing the menubar; no window not even a blank one. After installing just the Mail app again from the DVD, Mail starts and I can get the main window from the menu (Fenster -> Hauptfenster) but I can only see the Mail folders in the left pane, *no message list*, *no preview content*
    Even worse, I can't quit the Mail app using the menu. I have to do a *force quit* within the Finder.
    I have searched this forum and tryed all the (good) suggestions without success.
    What's next?

  • Problem using Win 8.1 Mail app with corporate email account

    I have a client where most of the PCs are running Windows 8.1 with Office 2013 installed and an on-premise Exchange 2013 server.
    Even though they've been using Office 2013, now that they have Win 8.1 the staff now like to use the included Mail app for all their email as they say they get better notifications with it and some other "goodies" that Office 2013 doesn't provide.
    It's been working okay for them as I haven't heard of any problems. Until now. Their domain passwords are expiring and when they change the domain password they have no problem with the PC itself and domain access and Outlook 2013 still works fine.
    But now they're getting errors trying to continue to connect the Mail app to Exchange 2013. They keep getting a popup asking for credentials, their domain accounts get locked out (imagine that) after too many wrong logins I presume by the Windows 8.1 apps,
    and when they do get the Mail app connected they see an error in the lower right corner of the window about a problem with the certificate. It says something about the name of I think the server not matching the certificate.
    The cert is from GoDaddy and I know the names involved with the cert are correct. But that's the minor issue.
    The main issue is with getting the 8.1 apps, particularly the Mail app, to recognize the updated domain password.
    I have a Windows 8.1 VM setup and on the domain but when I try to configure it to connect to the Exchange server I get the error "Unable to connect. Ensure the information you've entered is correct."
    It's pretty obvious what is supposed to go in each field so I'm sure I'm filling it out correctly. But because of this I can't use this test VM to work on the problem.
    If anyone has an idea of how to deal with the Windows 8.1 Mail app and Exchange and changing the user domain password, I'd be appreciative of the help.
    Jonathan

    Hi,
    Thanks for your feedback.
    With 8.1, you can now use the Mail app without having to have a Microsoft account.
    A Microsoft account is an email address and password that you use to sign in to Windows. It's free and easy to set up, and you can do so with any email address you choose, or get a new email address. (For example, you can use an Outlook.com, Gmail, or Yahoo!
    address for your Microsoft account.)
    However, you must sign with an email address.
    Any way, if you have any other problem, welcome to contact us.
    Karen Hu
    TechNet Community Support
    That is one way you can sign into Windows but not required. As I stated earlier, these PCs are domain joined and that's how they login to them. As for the Mail app, 8.1 means an MS account isn't required anymore.
    Jonathan

  • Difficulty consistently syncing mail.app with gmail IMAP

    I've got my gmail account mapped to mail.app via IMAP. However, when I move a folder from inbox to a gmail folder (within mail.app) that gmail folder shows up as empty and only through gmail webmail does it show up!ail! I've got four emails in my @W-F folder on gmail, but while the @W-F imapped folder shows up in mail.app, the emails within it do not. Please help with this syncing problem. I sincerely appreciate it. Thanks.
    All the best,
    John

    Hi patrico.
    If I’ve understood it correctly, it’s as if Mail was simply not checking for mail on the server...
    Could it be that the account is in an “offline” state? Is the Mailbox > Go Online command enabled or disabled?
    What’s the time interval chosen in Preferences > General > Check for new mail?
    Go to Preferences > Accounts > Advanced. Is Include when automatically checking for new mail ON or OFF?
    <hr>
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    To make accurately reporting this information easier, open /Applications/Utilities/Terminal, type the following command (you may just copy it from this post and paste it in Terminal), and press <Return>. You may then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/InputManagers /Library/Mail/Bundles ~/Library/InputManagers ~/Library/Mail/Bundles
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

Maybe you are looking for

  • How do I get Streamclip AVI files that were saved without first installing Quicktime ALternative 1.81 to play in Premiere Elements 11?

    I had Hi-8 "home movie" tapes transferred to mp4 files. To pull many short clips from these long files, I used MPEG Streamclip 1.2. The default save for these short clips was mp4. Either they didn't work in Adobe Premiere Elements 11 or I thought the

  • N8 apps make unwanted internet connection automati...

    Dear users, I have had my N8 for a week now. It's beautiful, but there is only one issue I cannot resolve. With my other Nokia's (also Vodafone as provider) I was able to set any internet connection manually by selecting "Always ask" in the phone's c

  • How to deploy with Oracle 8i, Forms 6i and Reports 6i

    We are developing a number of application systems. We have 2 servers. Oracle 8i is installed on one server and other werver is used for network authentication. We have to now start deploying newly developed applications. We have around 200 users loca

  • CS5 Crash on Save

    Hi Eveyone, When i save some of my work photoshop crashes (not every time, around 1 in 10) and i look important time consuming work, Any ideas? It is a large file however my system is more than capable of handling this load. Thanks. James

  • Timeline doesn't work in Mozilla FireFox

    Hello all.   I have a website created in Dreamweaver MX (Education Version) version 6. My problem is that the timeline I installed works on Opera 9.5, IE 6, and AceExplorer, but not on Firefox 3. The timeline is actually just a slideshow for the pict