System.configuration web.config and app.config

When using a third-party dll, I received the following exception:

exePath must be specified if it does not work inside a standalone exe

with the next trace

System.Configuration.ConfigurationManager.OpenExeConfigurationImpl (ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath).

I found that it was looking for app.config, and I provided the details in web.config. My question is: why does the .configuration system distinguish between web.config and app.config? Any thoughts?

+5
source share
2 answers

Executable:

.NET . , . applicationName.exe.config .

-/:

. NET- .NET DLL, - . , " ". -, . ? ?

, - , . , web.config.

+7

web.config - -. , .. ; web.config.

app.config -- - Winforms, WPF, NT Services .. YourApplicationName.exe.config . app.config (, , ).

Microsoft - - Microsoft.

, , , .

+6

All Articles