InfoPath & Visual Studio

L

LSA_Wlainc

I have developed a data entry form using InfoPath version 2003. I have
merged business logic using Visual Studio 6.0 with the form that pulls data
from our SQL server. When I am on my development server the application runs
fine; however, when I open the form from a workstation and attempt to
retrieve or send data to my SQL server, I receive the following error:

System.Security.Permissions.SecurityPermission
at App2565.App2565.GetAccntVal(String var) in
\\Lsasgm01\goldmine\BaseInfoPathCode\2565\App2565\App2565\FormCode.vb:line 114
at App2565.App2565.CTRL156_4_OnClick(DocActionEvent e) in
\\Lsasgm01\goldmine\BaseInfoPathCode\2565\App2565\App2565\FormCode.vb:line 190
at
Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)

When I open the form on the workstation, which does have InfoPath & the VB
6.0 runtime files installed, I receive the following message:

"Visual Studio must be used to add business logic to this form. "

Can anyone help me understand what I need to install or do to resolve this
issue. I am majorily under the gun to get a solution rolled out by close of
business tomorrow.

Thanks!!
 
F

Franck Dauché

Hi,

See answer below for the VS part of your question. On the security issue,
try to make your form Full Trust for now and it should solve that issue.

Regards,

Franck Dauché
 

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