I have an issue trying to load and debug any kind of Outlook web add-in. I can reproduce with my own add-in (which is deployed to the Office store and used to work in debug mode perfectly!) as well as with the default add-in template in Visual Studio 2017. I create a default "OutlookWebAddin1" project, change nothing, hit F5 to deploy and run/debug, enter my credentials, and load the add-in in the Outlook client or browser (Chrome, IE and Edge) - all exhibit the error:
"Add-in Error: Something went wrong and we couldn't start this add-in.
Please try again later or contact your system administrator."
The F12 console in Chrome (to pick one of the three browsers I tested with), shows these errors:
GET https://localhost:44398/MessageRead.html?et=&_host_Info=
Outlook|Web|16.01|en-CA|11aa92ad-a510-ddb9-c441-529b1b374f16|
net::ERR_INSECURE_RESPONSE
GET https://localhost:44398/Images/icon64.png net::ERR_INSECURE_RESPONSE
Executing action: GetTaskStatusAction
GET https://outlook.office365.com/ows/outlookusersettings/api/v1/frepanel
/frepaneltaskstatus 401 (Unauthorized)
Here's a prettier look at the error:
https://www.screencast.com/t/elcbcUkdlkO
The cause is apparently a problem with the localhost certificate. The fix is to use the Certificates Snap-In in MS Management Console and copy the localhost certificate from "Personal-> Certificates" to "Trusted Root Certification Authorities -> Certificates". How this problem occurred on two very different PCs with different versions of Visual Studio is a mystery, but this does work.
Related
I’m trying to test a website in Visual Studio 2017. However, I get the following error message when I start debugging the website. I believe this has to do with Visual Studio’s SSL certificate. The error message says:
adding a certificate to the trusted root certificates store failed with the following error: access denied
And it causes issues downstream when I try to debug a https webpage. The webpage says:
this page can’t be displayed
Is there a way to fix this certificate issue with Visual Studio 2017 so that I can debug the https webpage in my website?
We've created an Outlook add-in which integrates our custom CRM with Outlook. A command button is added to messages in read and compose mode. A function file is called on the button click.
The add-in manifest passes validation and installs properly on all machines. However on Outlook 2016 desktop (only) we are seeing an error on some machines. The exact error message says: “We’re sorry, we couldn’t access [NCS Outlook Add-in]. Make sure you have a network connection. If the problem continues, please try again later.” ([NCS Outlook Add-In] is the name of our add-in.)
Note that this message appears IMMEDIATELY after clicking the add-in command button. It does not first say “[NCS Outlook Add-in] is working on your request” like it add-ins do when an error has occurred.
We have tried Outlook logging and haven't found anything useful in the logs. We've checked settings and disabled other add-ins. We have also tested across machines with user accounts. The same user will have the error on one machine and not the other. In short, it seems that the error is machine specific and not profile related.
Version of Office 365 installed: 1705 (Build 8201.2209).
We experienced this exact behavior in Outlook 2016, the solution was to enable protected mode for the restricted and internet zones.
The easiest way to change this is in IE.
In Internet Explorer, click the Tools button, and then click Internet Options.
Click the Security tab, and then select the Restricted Sites Zone.
Select the Enable Protected Mode check box, and then click OK.
Restart Internet Explorer.
Here is a little more information:
https://support.microsoft.com/en-us/help/2761180/apps-for-office-don-t-start-if-you-disable-protected-mode-for-the-rest
Try this:
1) Close Outlook
2) Rename the folder C:\Users\%USERNAME%\AppData\Local\Microsoft\Outlook
to C:\Users\%USERNAME%\AppData\Local\Microsoft\Outlook.OLD
(Where %USERNAME% is current User Name.)
3) Start Outlook, Setup User Profile
4) Add/Test Add-In.
If that works, then something broken on old Outlook profile. But if same problem: Exit Outlook, delete the Outlook folder and rename Outlook.OLD back to Outlook.
I ran into this exact same problem after uninstalling Visual Studio 2015 on my development machine. (I had been using Visual Studio 2017 for Outlook add-in development.)
The problem went away as soon as I reinstalled Visual Studio 2017. The Outlook 2016 installation had nothing to do with the problem, I never changed Outlook or its profile at all.
This would indicate that the problem is somehow related to the SDK tooling on the machine...perhaps something to do with the .Net framework?
If I ran into this problem on a customer machine I would try reinstalling or repairing the .Net framework, or perhaps reinstalling Outlook (assuming it contains some add-in tooling that is broken.)
Just passing this on in case it helps anyone else.
I have been using VS for working on a lot of my Azure hosted websites. Just recently I tried to open VS and open the website and was prompted to sign in.
Upon signing in I received this error:
An error occurred during the sign in process:
authentication_ui_failed: The browser based authentication dialog
failed to complete for an unknown reason
I have researched this issue, but have very limited results that don't pertain to my issue.
I have tried to reset IE back to it's original settings and tried adding another role onto my subscription but nothing seems to do anything different.
I confirgured my windows store DEV account couple of days ago. I have developed some store apps and I need to publish it in windows store. When I try to create the App packages using Visual studio 2012 Ultimate It gives me this error
Visual Studio encountered an unexpected network error and can’t contact the Microsoft account service
I followed the solution mentioned in this link http://blogs.msdn.com/b/wsdevsol/archive/2013/01/15/visual-studio-2012-throws-an-error-saying-visual-studio-encountered-an-unexpected-network-error-and-can-t-contact-the-microsoft-account-service-when-you-try-to-create-app-packages-for-the-windows-store.aspx. But it didn't work out, still getting the same error.
To solve this problem, you need to open the Internet Explorer (not others browsers) and access https://login.live.com/oauth20_desktop.srf. A popup will appear. Check the option "In the future, do not show this warning" and click OK. You should be able to complete you task. For more details, check this post
I'm having trouble connecting to the hosted Team Foundation Service using Visual Studio 2012 RC.
Upon my first connect, a window was opened prompting me for my username and password, however I was added to TFS with a different Live ID. I've re-registered a new Live ID and now I can't get access to TFS. When I try to do so, I get this error:
TF31003
If you log out from All Live accounts in your Browser's and then try logging into TFS again you should be prompted for the credentials and you can login with the account that has access to TFS Preview.
I got the tf31003 error while trying to connect to a hosted TFS at https://mycompanyname.visualstudio.com/
I could access the site using my Live Id through Firefox but when trying to connect using VS 2010 I was getting that error.
The issue with my case was that VS2010 was trying to login using Internet Explorer which I was signed in under a different account. To solve this I opened Internet Explorer and logout from Hotmail/Live and went to the about URL and connected to the TFS instance, which connected successfully.
After that I went back to VS 2010 and tried to connect to the server again, this time I was shown the Login window where I was able to enter my login details. Once done my server was successfully added to the 'Team Server Foundation list' and was able to get the list of all my projects.
I had the same problem, except I am running VS2012 Update 2. This is overboard, but this is a thorough list of everything I did that eventually fixed it.
Ensured Visual Studio was not running
I opened Internet Explorer, pressed CTRL+SHFT+DEL, selected everything and clicked "Delete"
I opened Fiddler and navigated to "Tools > Clear WinINET Cache" and "Tools > Clear WinINET Cookies"
I opened the windows Credential Manager and removed all entries (including all Web Credentials, Windows Credentials, and Generic Credentials)
I disconnected my Microsofot account from my Windows account
Opened Visual Studio and connected to TFS, and it finally prompted me to login
Again, this is overboard, and not very surgical, but as I was in a hurry, so I decided to take the shotgun run, and it worked.
I had the same issue, the simplest solution I got was to delete just three cookies.
I found this recommendation in other post. It worked for me.
cookie:*#login.live.com/
cookie:*#visualstudio.com/
cookie:*#tfs.app.visualstudio.com/
To see the cookie files directly so to "Internet Options -> In the Browsing History Section Click "Settings" -> Click "View Files" -> They are all text files.
I received this same error (TF31003 / TF30063) when setting up a new TFS Build Server on Windows Server 2012 because Active Scripting was not enabled in IE.
In order to login - you must enable active scripting to see the login prompt below...
I actually discovered this after installing Visual Studio where the popup dialog specifically informs you of this required setting. Hopefully this will save sometime hours of lost time...