Grant ActiveX Permission

M

Mishma

Hi there,

I'm using XmlHTTP (ActiveX) object to post a document but it doen't work.

Someone told me that by default we don’t grant ComInterop permission to the
business logic code and If I want to use XmlHTTP I need to make the solution
fully trusted or grant COMInterop permission by using InfoPath Form Templates
code group.

How can I do that things ?

Thank u
 
M

Matthew Blain \(Serriform\)

Why are you using XmlHttp with the .NET framework? Either use the InfoPath
DAVAdapter (in the UI, set a data connection to submit to a SharePoint form
library, in the object model see the developer documentation/sdk).
Or use the .NET classes, System.Net.HttpWebRequest and
System.Net.WebClient. These don't have the same interface as XMLHTTP, but do
have the same functionality. (WebClient is a wrapper on WebRequest, it is
simpler but can't do everything WebRequest can.)

(Both of these will be covered in _Developing Solutions with Microsoft
InfoPath_)

--Matthew Blain
http://tips.serriform.com/
 

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