Infopath and VS.NET security

P

Pradeep

Hi,
I have just installed Infopath 2003 on a windows 2003 system. And, I am
pretty new to Infopath.

I have security issues during the development of Infopath through VS.net.
I figured it that there is some permission setting I need to set but don't
exactly know where.

If I publish and register the infopath form then I am able to access all the
system related files but when I try to run the infopath form from the VS.NET
it always throws me some Security Exception.

I want to set the permission during development for VS.net and Infopath such
that it should able to read and write from files from Infopath events when I
run it from VS.NET. Can you please help me with the same.

Thanks,
Pradeep.
 
M

Mattia Saccotelli

you have to register the form by removing the publishUrl attribute in
the manifest and then run a vbs like this:

Dim objIP
Dim strPath

' Create a reference to the Application object.
Set objIP = CreateObject("InfoPath.Application")

' Register the InfoPath form template.
strPath = "C:\\projects\\infopath\\MBO\\manifest.xsf"
objIP.RegisterSolution (strPath)
MsgBox ("The InfoPath form template has been registered.")

Set objIP = Nothing
 
P

Pradeep

thank you Mattia Saccotelli
Can you tell me the significance of the publishUrl attribute?



Mattia Saccotelli" <"m.saccotelli [AT] g said:
you have to register the form by removing the publishUrl attribute in
the manifest and then run a vbs like this:

Dim objIP
Dim strPath

' Create a reference to the Application object.
Set objIP = CreateObject("InfoPath.Application")

' Register the InfoPath form template.
strPath = "C:\\projects\\infopath\\MBO\\manifest.xsf"
objIP.RegisterSolution (strPath)
MsgBox ("The InfoPath form template has been registered.")

Set objIP = Nothing
Hi,
I have just installed Infopath 2003 on a windows 2003 system. And, I am
pretty new to Infopath.

I have security issues during the development of Infopath through VS.net.
I figured it that there is some permission setting I need to set but don't
exactly know where.

If I publish and register the infopath form then I am able to access all the
system related files but when I try to run the infopath form from the VS.NET
it always throws me some Security Exception.

I want to set the permission during development for VS.net and Infopath such
that it should able to read and write from files from Infopath events when I
run it from VS.NET. Can you please help me with the same.

Thanks,
Pradeep.
 

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