Sign in
Windows Forms Documentation Updates
We're the Windows Forms User Education team at Microsoft. We use this space to update folks on developments with Windows Forms docs, publishing doc updates before they're published. Feel free to ask us questions about WinForms, and we'll do our best to an
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Blog Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Search
Tags
Application Settings
ClickOnce
Container Controls and Layout
Crossbow
Data Binding
DataGridView
ElementHost
Form and Application Classes
Pages
ToolStrip Control
WebBrowser, HTML, Networking
Windows Forms Globalization and Localization
WindowsFormsHost
WPF
XML, XSL & RSS
Archive
Archives
May 2008
(1)
January 2008
(1)
December 2007
(5)
September 2007
(1)
June 2007
(1)
May 2007
(4)
April 2007
(3)
February 2007
(1)
November 2006
(1)
October 2006
(2)
August 2006
(3)
July 2006
(5)
June 2006
(7)
May 2006
(4)
April 2006
(10)
March 2006
(10)
February 2006
(6)
January 2006
(5)
InPlaceHostingManager: Why Does AssertApplicationRequirements() Throw a TrustNotGrantedException?
MSDN Blogs
>
Windows Forms Documentation Updates
>
InPlaceHostingManager: Why Does AssertApplicationRequirements() Throw a TrustNotGrantedException?
InPlaceHostingManager: Why Does AssertApplicationRequirements() Throw a TrustNotGrantedException?
Jay A. Allen
25 Jul 2006 2:25 PM
Comments
1
As you may remember
, InPlaceHostingManager is a part of the ClickOnce API that enables a .NET application to download and install other ClickOnce applications. It's pretty straightforward to use - but there may be one area that trips you up.
I was chatting in email with an MVP about why his InPlaceHostingManager application was throwing a TrustNotGrantedException from AssertApplicationRequirements(). As it turns out, he had missed one of the requirements for using InPlaceHostingManager: all applications you install must be signed using a certificate that is installed on the local machine as a trusted publisher.
This requirement is discussed in
the main doc page for InPlaceHostingManager
. However, I currently do not doc this exception as being generated by AssertApplicationRequirements(). So it's no wonder that people aren't picking up on this. This doc error will be fixed in the next doc build. Until then, consider yourself advised.
For more about trusted publishers,
check out Brian Noyes' excellent article on the subject
. (Yes, his article is better than my docs. I'll be correcting this soon.)
1 Comments
ClickOnce
Blog - Comment List MSDN TechNet
Comments
Loading...