Property Page is not loaded on Vista

0 views
Skip to first unread message

Dhananjay

unread,
Dec 5, 2007, 6:53:04 AM12/5/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi All,
I have developed one COM-Addin in vb 2005 / VSTO / Office 2007. I have
added one property page to the options page. My addin loads perfectly
with the correct option page, on any platform for many machines. i.e.
my addin works for Vista, xP, 2003 server etc. with office 2007
installed on it. My property page is also loading perfectly. But on
some machine with Office 2007 / Vista, I can not click on my property
page. I get error - "Cannot display "Custom" page. This page will
remain visible, but is not available".
To display property page I have included one form which Inherits from
System.Windows.Forms.UserControl & Implements
Microsoft.Office.Interop.Outlook.PropertyPage. & in my
Application_OptionPagesAdd event, I added the line
Pages.Add("Custom.PropPage", "Custom Title"). Also in my trace file I
can see the trace before & after "Pages.add ..." line & also
proppage_load event's trace. But when someone clicks on the tab, he is
greeted with this error & also my trace file contains
Application_optionPagesAdd trace & doesn't contain PropPage_Load
events trace statements at all.
As I mentioned before, my addin is working fine on all machines with
platforms XP, 2k3 , Vista etc, but on some machines (Office 2007 with
Vista), only I am getting this error.

So what should I check on those machines specifically?

Thanks in advance,
Dhananjay

Andrew Badera

unread,
Dec 5, 2007, 7:19:06 AM12/5/07
to DotNetDe...@googlegroups.com
Do some Vista machines work, or all Vista machines fail?

What context are those users running in?

Is there any privilege escalation requirement here? Do you need a UAC manifest?

--Andrew Badera



On 12/5/07, Dhananjay <pandit.d...@gmail.com> wrote:

Hi All,
I have developed one COM-Addin in vb 2005 / VSTO / Office 2007. I have
added one property page to the options page. My addin loads perfectly
with the correct option page, on any platform for many machines. i.e.
my addin works for Vista, xP, 2003 server etc. with office 2007
installed on it. My property page is also loading perfectly. But on
some machine with Office 2007 / Vista, I can not click on my property
page. I get error - "Cannot display "Custom" page. This page will
remain visible, but is not available".
To display property page I have included one form which Inherits from
System.Windows.Forms.UserControl & Implements
Microsoft.Office.Interop.Outlook.PropertyPage . & in my

Dhananjay

unread,
Dec 6, 2007, 8:13:02 AM12/6/07
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi Andrew,
Thanks for your response. Please go through whole response.
> Do some Vista machines work, or all Vista machines fail?
> Yes my addin works on all vista / 2k3 / XP machines, but it fails on some VISTA machines only.
> What context are those users running in?
> I have to check out this stuff (But may be they are admin with UAC enabled) <-- Let me check this out
> Is there any privilege escalation requirement here? Do you need a UAC
> manifest?
> I have developed this addin in VSTO, so I am having my manifest file with my dll. Let me put my manifest file over here. These are my maniferst file contents

<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" manifestVersion="1.0">
<assemblyIdentity name="Custom.dll" version="1.0.0.0" />
<asmv2:entryPoint name="Startup" dependencyName="dependency0">
<asmv2:clrClassInvocation class="Custom.ThisAddIn" />
</asmv2:entryPoint>
<asmv2:dependency asmv2:name="dependency0">
<asmv2:dependentAssembly>
<assemblyIdentity name="Custom" version="1.0.0.0"
publicKeyToken="cd5b25a4f36183a2" />
</asmv2:dependentAssembly>
<asmv2:installFrom codebase="Custom.dll" />
</asmv2:dependency>
<------ I have added following lines by getting the help from
http://msdn2.microsoft.com/en-us/library/aa905330.aspx to make my
addin as Invoker ---- >
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-
com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="asInvoker">
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
</assembly>

Now if I load my addin it won't load on any Vista machine. I am
totally new bie for uac manifest stuff. Please can you help me to sort
out this stuff.
I would be very thankful to you, if you can give me correct manifest
file for above stuff.

Thanks again,
Dhananjay
Reply all
Reply to author
Forward
0 new messages