I have a custom configuration I use in my ASP .Net programs that I wanted to use in some client programs. However, when I tried to use it, I would get an error "Could not load configuration". I found I needed to add one thing to my SectionGroup/Section Name entry:
[code]
<sectionGroup name="ReportEmails" >
<section name="ReportTest" type="SICommon.rptEmailConf,SICommon" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
[/code]
The key piece is on the type definition. I needed to add the SICommon after SICommon.rptEmailConf. This specifies the assembly name containing the custom configuration. Without it specified, the system looked in the System.Configuration assembly and could not find it.
Projects utilizing SISendMail as desktop apps: MySQLMonitor and WarrantyPeriodClose.
ReplyDelete