M
Michelle
X-No-archive: yes
I am trying to copy the context sensitive help example described at
http://blogs.msdn.com/philoj/archive/2004/04/25/119926.aspx
The Infopath form uses SP1 and C# and is published to a Sharepoint
Form Library. It runs fine on my computer. However, as soon as I try
to open the Infopath form from a colleague's computer I get the
following error:
Security Error
at mySolution.OnContextChange(DocContextChangeEvent e)
at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2
_SinkHelper.OnContextChange(DocContextChangeEvent pEvent)
Needless to say this error is not very helpful.
What I have found is that when you look at the properties available
for thisXDocument.View.Window.TaskPanes you get Visible and
TaskPaneType. What the example does is cast the TaskPanes item
(TaskPanes[0]) to HTMLTaskPaneObject which should make properties like
HTMLDocument and readyState available. As soon as I try to access
these properties that are not available without the cast I get the
security error.
At this point I'm thinking the problem lies with something not being
installed on my colleague's computer. He has InfoPath SP1 and Visual
Studio .NET installed.
Any help would truly be appreciated.
Assuming this can be resolved, the next step would be to figure out
what needs to be installed on client machines at a minimum in order to
get the InfoPath forms to work without these security errors being
bubbled up. If someone could clearly specify those minimum
requirements that too would be appreciated.
Many thanks!
I am trying to copy the context sensitive help example described at
http://blogs.msdn.com/philoj/archive/2004/04/25/119926.aspx
The Infopath form uses SP1 and C# and is published to a Sharepoint
Form Library. It runs fine on my computer. However, as soon as I try
to open the Infopath form from a colleague's computer I get the
following error:
Security Error
at mySolution.OnContextChange(DocContextChangeEvent e)
at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2
_SinkHelper.OnContextChange(DocContextChangeEvent pEvent)
Needless to say this error is not very helpful.
What I have found is that when you look at the properties available
for thisXDocument.View.Window.TaskPanes you get Visible and
TaskPaneType. What the example does is cast the TaskPanes item
(TaskPanes[0]) to HTMLTaskPaneObject which should make properties like
HTMLDocument and readyState available. As soon as I try to access
these properties that are not available without the cast I get the
security error.
At this point I'm thinking the problem lies with something not being
installed on my colleague's computer. He has InfoPath SP1 and Visual
Studio .NET installed.
Any help would truly be appreciated.
Assuming this can be resolved, the next step would be to figure out
what needs to be installed on client machines at a minimum in order to
get the InfoPath forms to work without these security errors being
bubbled up. If someone could clearly specify those minimum
requirements that too would be appreciated.
Many thanks!