Coder Social home page Coder Social logo

Comments (10)

AlexJerabek avatar AlexJerabek commented on August 17, 2024

Hi @davidhjones,

Sorry you're encountering issues. Quick question: are you starting with the Begin or Complete version of this sample?

from office-add-in-samples.

davidhjones avatar davidhjones commented on August 17, 2024

I am starting with the Complete version of this sample.

from office-add-in-samples.

AlexJerabek avatar AlexJerabek commented on August 17, 2024

Hi @davidhjones,

The behavior from the browser pop-up is expected. The add-in has to be run from the task pane in Excel. I see from your video that the task pane pops up with an error. Does that consistently happen? What happens when you click "Restart" in the task pane?

from office-add-in-samples.

AlexJerabek avatar AlexJerabek commented on August 17, 2024

One thing that may help an add-in in a bad state is clearing the cache: https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache. Let us know if that gets your task pane in a workable state.

from office-add-in-samples.

davidhjones avatar davidhjones commented on August 17, 2024

Interestingly enough, when I loaded it up this morning, the Add-in does load in the task pane. Unfortunately, now I'm getting a different error. Oddly enough, following the code I would expect that my breakpoint in FilesController would get triggered to execute the code below, but it isn't.

let accessToken = await Office.auth.getAccessToken(options);
fileNameList = await callRESTApi("/api/files", accessToken);
MSAL.authentication.required.mp4

from office-add-in-samples.

davidhjones avatar davidhjones commented on August 17, 2024

I have confirmed that the exception is thrown from await Office.auth.getAccessToken(options);, which explains why my breakpoint is never triggered (on the server).

from office-add-in-samples.

davidhjones avatar davidhjones commented on August 17, 2024

One thing to note, I have been able to make progress by switching to the Outlook add-in SSO sample. I did have issues testing with a client outside of my account’s tenant, but I believe that’s due to me not having administrative privileges to approve the Application.

from office-add-in-samples.

AlexJerabek avatar AlexJerabek commented on August 17, 2024

Hi @davidhjones,

Sorry for the delayed response; I've been out. Since the MSAL fallback path is triggering, I'm guessing there's some piece of setup that's incorrect in Azure. Double-check the Redirect URL, authorized client applications, and scopes. A setup error would explain why the Outlook sample is working and the Excel one is not.

from office-add-in-samples.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 17, 2024

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

from office-add-in-samples.

microsoft-github-policy-service avatar microsoft-github-policy-service commented on August 17, 2024

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

from office-add-in-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.