SP1: OleDbConnection

T

Tim Heuer

Trying to use managed code in SP1 form.

When creating an System.Data.SqlClient.SqlConnection, there is no error
and the connection and subsequent command executes fine.

However, when trying to use an System.Data.SqlClient.OleDbConnection
(because then I can leverage the connection string from a DataAdapter),
it requires the form to be trusted?!?!!?!?

Can someone explain this anomalie?

-th
 
B

Brian Teutsch [MSFT]

Tim,

If you're trying to use these while you're Previewing a form, both should
work. It appears that OleDbConnection doesn't work during preview. which we
didn't know about before.

When you're using either of those connections after publishing a form, both
of them should require the form to be fully trusted. If you're not seeing
that, and haven't added trust levels to your form, let us know and we'll
look into it some more.

Thanks,
Brian
 
Top