MS Project VSTO 2010 and Windows 8 - visual-studio-2010

I have written a MS Project addin using Visual Studio 2010 and the VSTO that ships with it. I am testing this with Project 2013.
The addin seems to work fine with Windows 7 and Windows Server 2008 R2.
However, under Windows 8 and 8.1, the addin behaves oddly. Specifically:
1) The addin crashes randomly. The solution I found was to run Project 2013 as Administrator (by right-clicking and selecting "Run as Administrator"). This is strange, since I am already logged into Window as an admin!
2) It looks as though some features in the addin is disabled?
Is this something that people have seen before, and if yes, what is the solution>

I figured out the problem. When I don't "Run as Admin", the application is running with reduced privilege. I was under the wrong impression that running apps, while logged in as admin, would make the app run with full privilege.
As far as why "Run as Admin" is needed in Windows 8 and not before, I am guessing that the reduced privilege mode in Win 8 is more restrictive than in previous versions.

Related

Visual Studio 2015 Windows Phone Emulator not deploying 6

I have been facing the same issue as asked in this other post
Visual Studio 2015 Windows Phone Emulator not deploying
but the solution worked here is not working for me.
Windows 10 pro upgraded from home version
Visual Studio 2015
Apache Cordova "Sample" app.
In Emulator it is showing as "Starting
in the behind "Hyper-V" "Summary" it is visible but if double click the the Hyper-V "instance" it is not visible there but only in "Summary"
What am I missing here?
For the developer sake and investment, MS must make sure that the solutions are tested everywhere before releasing them.
This link will direct you to print screen of the error. https://prnt.sc/cykrgg
in the VS output we get the following last message.
My OS is 64 bit.
2>The build configuration was changed to x86 for x86-based emulator deployment.
could this be impact of 64 to 86 bit version difference or anything else?
I have Norton antivirus
I am getting
Hyper-v administrator pop up every time I try to run the app.
This case is resolved by Microsoft Support Team over a Ticket and Rohit, support engg from MS did really helped me a lot.
The reason why it was not coming up.....
My machine has a AdWareAntiVirus from Lavasoft by Name WebCompanion that was not allowing it work.
I removed it then it started working.
if any body have any problem with VS 2015 Emulator definitely focus on the Antivirus and include the Emulator XDE into exception list and also include in Firewall.
Thanks,
Ekambar

vsto 2010 outlook addin installed but not visible

I am developing a VSTO 2010 Office 2007 Outlook Add-In deployed from Click-Once. On the computer I developed it, running Visual Studio, everything works just fine, but when trying to install it on another computer, the addin is installed, and during the startup screen, It comes under Inactive Applications Add-in.
In Load Behavior, It shows Not Loaded.A Runtime error Occured during the loading of the COM-Add-in.I have changed the Load behavior from 2 to 3 in HKCU under Registry Editor.But it is again reverted back to 2.Not sure how to find the specific error so I can fix it.
Does anyone have any ideas on what might be causing this?
Any ideas anyone might have would be greatly appreciated.
Finally I have found a solution by myself.What I have done is Before I published a solution I was checked .Net Framework 3.5 SP1 Client Profile in prerequisites under Install settings and it works for me now.

Web Setup Project not working

'The installer was interrupted before [project name] could be installed. You need to restart the installer to try again.'
I just moved to Win7, and I cannot get the .msi files to install from my Web Setup Projects that are built on that machine. The same projects build and work fine on my other Windows XP, IIS6, VS 2008 SP1 machine. I'm not sure if this is a IIS7 or Win7 issue, but I've done the following:
I have all the IIS/ASP.net compatibility settings checked.
I am an administrator, and I have UAC turned off.
I get the following error when I even try install the .msi file on the Win7 machine and on our existing development server (windows 2003 with IIS6).
I've restarted the windows installer service, and I've added logging for the installer but there is nothing that is showing me what the problem is. Any help would be MUCH appreciated.
I'm running Visual Studio 2005 and had the same problem as you described when moving to Windows 7.
After trying my Web Setup Project .msi file on another computer also running Windows 7 I found that it worked.
When I looked in the "Windows Features" dialog on the working computer I noticed that the IIS had IIS 6 compatibility features turned on. I enabled the same feature on my computer and after that I could install my setup project.
Open up "Control Panel > Programs > Turn Windows features on or off" in Windows 7 and in the "Windows Features" dialog go to "Internet Information Services > Web Management Tools > IIS 6 Management Compatibility" and check the feature "IIS Metabase and IIS 6 configuration compatibility".
Run the installer with full verbose logging:
msiexec /i /lv installLog.txt
Then search the installLog.txt file for "Return Value 3"
This will indicate the exact problem.
Additionally this may help:
http://blog.dragonsoft.us/2009/01/02/visual-studio-2008-and-iis-7/
I solved this by running 'regsvr32.exe actxprxy.dll'
It resolved the following:
Not able to create valid .msi web project in VS 2008.
Start Page in VS2008 was not displaying rss feed in the main window.
IE was not opening up shorted url links to a new tab (in twitter for example).
I suspect this was because of redirects, but I'm not sure. I'm guessing this was a bug in the install process, so I hope this helps others.

VSTO Outlook AddIn disabled in Vista

We have an issue with an Outlook 2007 AddIn (created on a Windows 7 development machine with Visual Studio 2008/VSTO).
It installs with the MSI installer on these machines:
- the development machine
- a Windows XP machine
Install initially succeeded on a Vista machine, but after installing an updated version of the AddIn, it gets disabled when starting Outlook. We suspect it might be related to how Vista handles security.
Have anyone encountered issues specific to installing VSTO AddIn on a Vista machine?
(Please note that the AddIn in our case gets installed alright, but is 'just' disabled when starting Outlook.)
The add in might be throwing an exception.
An unhandled exception causes the add in to be disabled.
We hit this issue on some random machines and after much head scratching, it turned out that Office.Interop was not installed on the client. We had assumed it would be installed with Office 2007 - which it appears to be in many cases.

Office XP Shared Addin VS 2008

I'm trying to create a Shared Addin using VS 2008 for Office XP (Excel to be precise). However, after creating the project in Visual studio and changing the references to Office XP (apart from Extensibility which I don't seem to be able to find a copy for office xp) and adding excel.exe to the references as well. I now don't seem to be able to get the addin to install on any computers.
Does anyone have any guides on writing Office XP addins using VS 2008 (Com Addins I might add)?
Does anyone know the reference that I'm meant to have or things prior that I'm meant to have installed on the pc?
I have three test pcs, this one has office xp, 2003 and 2007 on it and I can write an addin using 2003 references that runs on this but no other box. One with just office xp on it but also office xp PIAs installed and .NET and another one just with office xp on.
Any help would be very much appriciated.
I found the problem with this in the end.
The problem came from a KB entry 908002. Unfortunatley, to run the fix you need Visual Studio 2005 and Office 2003 installed otherwise it won't deploy the fix and so I had glossed over this quite a few times. In the end I found an old copy of VS2005 and Office 2003 on a spare machine, installed the fix, created an installer and tried it on a machine with Office XP and everything worked fine.
There are two fixes that are needed for this to work on any machine with Office XP:
extensibilityMSM.msi - installs the extensibility.dll
lockbagRegKey.msi - adds a fix to a registry key
I couldn't find these to be downloaded seperately from the KB908002 fix but I have copies locally.
After applying these fixes it was easy to use COM Addins like using VSTO and it took me less than an hour to write the actual code. I'm not looking for a way to include these in my MSI installer as prerequesites.
Any questions chuck them in a comment and I'll try and update asap.
You need the PIAs installed as a prerequisite. Does the addin install at all, or fail at installation? An add-in misbehaving at startup may be banned by the host application (Excel). You can reneable it in the Add-in settings dialog in Excel.
#PintSizedCat - Here is a link to a msdn blog that shows how to extract the msi's without having VS2005 installed.
See the section "Building the Shared COM add-in setup project" - use the command line:
vs2005-kb908002-enu-x85.exe /T:”C:\Test” /C
For us it was Excel 2003 with .Net 2.0 and the extensibility.dll was missing. I don't think VS2008 / VS2010 have this as a prerequisite. The dll is not redistributable (According to this blog - see the "The Answer" section) - you must use the msi to redistribute it.

Resources