app.config?

F

FrankS

How can I set up app.config for Infopath app using vb.net? Web.config works
fine for web service but can't get app.config to work for local attachment to
SQL server.

Thanks,
Frank
 
H

Henning Krause [MVP - Exchange]

Hello Frank,

if I understand you correctly, you have an InfoPath Form with managed code
and want to use an app.config file. Is that correct?

If yes.... since InfoPath forms are run within the InfoPath process, the
app.config file being used by all forms is InfoPath.exe.config from the
InfoPath directory.

I would sugest using a secondary datasource bound to an XML file somewhere
on your network.

Greetings
Henning Krause
MVP - Exchange
http://www.infinitec.de
 
F

FrankS

Thanks Henning. You stated exactly what I am trying to do. I have managed
code with lots of templates tied to SQL DB. I guess I do not understand why I
would code this out of the "standard" use of config tables. I am very
surprised there is not more people objecting to this "work-a-round". But
thanks for the feedback.

Frank
 
J

jgmeyer

Then what becomes of the app.config that is automatically created when a new
infopath managed code application is created? I'm trying to store
configuration data for my infopath application, and also reference the
Enterprise library created config files used for database connection info and
exception handling policy info. Can I make this work? thanks!

josh
--
Josh Meyer
Senior Systems Analyst
The Trident Group, Inc.
 
H

Henning Krause [MVP - Exchange]

Hello,

as I said in my previous post, all InfoPath solutions are executed within
the InfoPath Process. So, all managed InfoPath solutions use the same
app.config, namely the C:\Program Files\Microsoft
Office\OFFICE11\INFOPATH.EXE.config.

I haven't used the Enterprise library yet... can you force the library to
read its configuration from somewhere else?

Greetings,
Henning Krause
MVP - Exchange
http://www.infinitec.de
 

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