Outlook Add-In loads but is not showing - outlook

My solution consists of 2 add-ins: 1 for Outlook and one for Word. They load and work perfectly in Debug mode. Both based on Add-In Express library. Both are registered correctly during install, for example: adxregistrator.exe /install=MyOutlookAddIn.dll /privileges=admin
The installer works fine and everything completes successfully. When I open Outlook I can see the MyOutlookAddIn is in the list of Active Add-Ins. However, my custom Ribbon Tab is not showing at all.
When I run Fusion Log Viewer I see the following message. It is very strange because I do not have any assemblies with the name MyOutlookAddIn.resources.DLL and none either generated automatically...I googled all day long but at no avail. I can't find any reason for these error messages (assuming that the problem come out from it). Any clues of pointers are greatly appreciated.
===============
*** Assembly Binder Log Entry (7/17/2013 # 7:54:46 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\Microsoft Office\Office14\OUTLOOK.EXE
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = ZZZ-PC\ZZZ
LOG: DisplayName = MyOutlookAddIn.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=62b2da92ff61da99
(Fully-specified)
LOG: Appbase = file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : MyOutlookAddIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=62b2da92ff61da99.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: MyOutlookAddIn.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=62b2da92ff61da99
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources.DLL.
LOG: Attempting download of new URL file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources/MyOutlookAddIn.resources.DLL.
LOG: Attempting download of new URL file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources.EXE.
LOG: Attempting download of new URL file:///C:/Users/Leon/AppData/Roaming/My/MyOfficeAddIn/en/MyOutlookAddIn.resources/MyOutlookAddIn.resources.EXE.
LOG: All probing URLs attempted and failed.
=============================
Apparently I resolved the error messages in the Fusion Log by using solution proposed here:
AppDomain.CurrentDomain.AssemblyResolve asking for a <AppName>.resources assembly?
However it did not resolve my main problem that my Outlook Add-In does not show in Outlook despite that it is shown as loaded...Any other tools I can use to find where the problem is?

I suppose the installer doesn't include the Localized Resources project output. And check if there're problem in the adxloader.log file.

What version of Add-in Express do you use? Please check if the 'Show add-in user interface errors' option is enabled in Outlook. If not, try to enable it and restart Outlook. Probably you will get any ribbon UI errors. You can also send a sample project to the support e-mail. I will test it on my PC.
Sergey Grischenko
Add-in Express team

Related

The operation could not be completed. Error loading type library/dll .Net

I have a xaml C# project which is a windows .exe application. I want to create a setup file for the same so that I can install it on other machine. I have followed this link to create MSI setup. Creating installer setup
From the above link when I am on Step 4 under (Procedure to create Setup file:) it throws error "The operation could not be completed. Error loading type library/dll". Infact if I try to add or delete any thing from section File System on Target machine, it throws same error. I am using VS 2015
if anybody faced same error Please help.
Deployment Tools: Quick review of MSI tools (free and commercial) - see if there is one to better match your needs and requirements.
Deployment: To solve the application problem, please find some links below. IT might be something as simple as an error in your configuration file or a lacking runtime.
Tools for dependency scan / deployment debugging (find what files should be deployed)
Application launch debugging
Further Links:
Deployment link collection

Error VSP1737: File could not be opened due to sharing violation

I am getting below error in the Visual Studio 2013 Ultimate when running performance and diagnostics session with Team Foundation Server (TFS). Below are the steps to reproduce:
Get latest from Team Foundation Server.
Create new Performance Session of "CPU Sampling" method.
Launch the newly created Performance Session.
After exiting the session by closing internet explorer or clicking
on "Stop Profiling".
Then I would get below error in the Output Window.
Preparing web server for profiling.
Profiling started.
Launching web server with profiling.
Launching profilable project.
Profiling process ID 9460 (iisexpress).
Profiling process ID 7008 (iexplore).
Process ID 7008 has exited.
Process ID 9460 has exited.
Error VSP1737: File could not be opened due to sharing violation: C:\Users\%hiddenuserprofile%\Documents\Projects\%HiddenPathWithFilename%.vsp
PRF0025: No data was collected.
Profiling complete.
In order to get rid of this error, I would have to clear the read-only attribute of my solution folder which TFS has set. If I clear the read-only attribute then the TFS cannot detect changes in my local workspace with the TFS server. Then I would have to manually check for changes with compare option in TFS and then merge.
Why does this error shows up? Am I doing it the right way?
This error occurs because you have added files to source control that should not be in there. Therefore it is downloaded from TFS and marked as read only.
You should use a .tfignore file. You will have to manually remove all of the files that have already been added. You should not have any /bin/* or /obj/* files for a start...
Then check for *.dll and other binaries, including *.vsp files and remove them from source control.
There are two types of binaries:
References - these should be done using Nuget and never included in source control or added manually.
output/generated - No generated files should be added to source control.

"Cannot start process because a file name has not been provided" in Visual Studio 2015 Load Testing

Whenever I was trying to capture a scenario, I kept getting this error message:
Cannot start process because a file name has not been provided.
I will answer my own question so that people can benefit from my findings.I googled for an hour but with no luck. So I decided to debug this issue on my own, and used ProcMon.exe from SysInternals.
The problem, after using ProcMon.exe to find out, was really a missing entry in the Registry. Visual Studio 2015 was looking at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE this entry to look up where Internet Explorer is located. But for some reason, this entry was missing in my registry. Since it could not find the location of IE, it failed at opening the IE to capture a web testing scenario. The message really tells us that fact.
This is how it should look like after you added the registry entry, but you don't have to have Path key. The (Default) is enough.:

Failed to translate aspx files into analysis model.

I am seeing an issue while scanning the Visual Studio code through fortify.
" Failed to translate the following 21 aspx files into analysis model. Please see the log file for any errors from the aspx precompiler and the user manual for hints on fixing those. "
All the aspx files are getting skipped. I see no precompilation errors while running.
VS version is 2010.
Please suggest what could be the issue.
Thanks!!
you have to give precompiled out in scan for that follow the below steps:
go to fortify.properties and uncomment this and set to false com.fortify.VS.SkipASPPrecompilation=false (by default it is true)
in compilation element in web.config file set the debug="true"
and then create a virtual directory of the web application and add it is as website to the solution. build the website once it successful then try the fortify scan again , it should work

When running under IIS Express I must recompile each time I change something in a .cshtml file?

We've recently changed from the built-in VS.NET Development Webserver to IIS Express, but now we are experiencing a wierd issue where, every time we change a .cshtml file, the webserver complains about not being able to read resources files:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Error reading resource file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f8182027\1ae20e7e\ResX\resources.resetpassword.nb-no.resources' -- 'The system cannot find the file specified.'
A recompile solves the issue, but it's annoying as heck.
Anyone have any clues as how to resolve this?

Resources