ASP.NET and fully trusted form

I

IVE

I try to use custom task pane as follows:

gobjTaskPane = XDocument.View.Window.TaskPanes.Item(0);
gobjTaskPane.Navigate("http://cch.pmc.ru/ASP2InfPath/default.aspx");

ASP.Net page ASP2InfPath allows to enter text field and to copy it into
InfoPath form as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript">
function doclick()
{

window.external.Window.XDocument.Extension.setField(document.all.txtFld.value);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="txtFld" type="text" />
<input id="Button1" type="button" value="Copy text into InfoPath
form" onclick="doclick()" /></div>
</form>
</body>
</html>


It works fine while the form is not fully trusted. If I publish this form as
fully trusted then I receive a message "Access denied". This takes place both
in InfoPath 2003 SP2 and InfoPath 2007.

How this problem may be solved?

Ivan
 

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