html taskpane permissions with fully trusted forms

B

Bolek Wisniewski

Hello all,

Really, the only thing I want to do is get rid of that annoying 'you are
about to run an activeX script' message. I accomplished this by registering
my form and setting the fully trusted security level under -form options-.
The problem I am having now is that after distributing the .xsn file along
with the register script...The html taskpane script does not have permissions
to run any of my form script functions. That is, it works on the computer
that has had the original document...there are no permission errors. As soon
as I send it to someone else on the network and run the register script on
that machine...then try running the .xsn file...there is a permission denied
error. I have tried setting the security levels for IE in the intranet,
internet, and trusted catagories, but so far to no avail. Will this problem
go away if I use certificates instead of fully trusted forms...am I doing
something wrong? Any help will be appreciated. - bolek
 
M

Manuel González

I meet the same problem. If you resolve that, please send me asap.
My code faults at send method of xmlhttp object.

thank´s
 
B

Bolek Wisniewski

I have a feeling that we are going to have to set fully trusted form AND get
trusted certificates - I stopped worrying about it until the time comes...if
you find more info let me know too - thanks bolek
 
J

Josh Bertsch [MSFT]

What calls are you making to and from your task pane? Are you using
MSHTML.dll? If so, it will have to be registered on every users machine.
If this is the case, I can take you through the steps necessary to fix the
problem.

--josh bertsch
 
B

Bolek Wisniewski

Hi josh,

sorry for the delay...i wasnt checking posts for a while. Hope your still
around.

I think I was mistaken on my previous post...the taskpane doesnt work with
installed Fully Trust Form either. I am in the process of registering the dll
now...

The calls I make seem standard to me:

gobjXDocument = window.external.Window.XDocument;
// Set the initial state of the task pane contents.
gobjXDocument.Extension.SetTaskPaneState();

where SetTaskPaneState() is a function in the InfoPath script:

function SetTaskPaneState()
{
// Ensure View has loaded before trying to access the task pane
if (XDocument.View)
{
if (gobjTaskPane == null)
gobjTaskPane = XDocument.View.Window.TaskPanes.Item(0);

// Ensure that the task pane is completely loaded
if (gobjTaskPane.HTMLDocument.readyState == "complete")
{
var strTaskPaneViewId = "TP_" + XDocument.View.Name.replace(/\W+/g, "");
if (InitGetAuthorData()){
TemplatesArray () ;
}


}
}
}


from InfoPath script I call the taskpane like so
gobjTaskPane.HTMLDocument.parentWindow.SelectDrop(TemplatesTypes,
Topics,Authors, TemplatesTypesIds, TopicsIds, AuthorsIds, Industries,
IndustriesIds, IndustryCompanyIds);

As I said before all this works fine if form is not Fully Trust...but gives
permission denied when on the line where I call
gobjXDocument.Extension.SetTaskPaneState(); from taskpane html when the form
is Fully Trusted...I have given all sorts of ridiculous permissions in the
intranet and internet internet explorer security options. (btw...does
infopath use these permisions?) thanx for any and all help - bolek
 
K

KWenstrup

Josh:

Could you please send me these steps? My form is running fine on mine or
other developer's machines with VS.NET, but our users are getting an error
that Microsoft.mshtml or one of its dependencies is not registered.

Thanks:
- Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top