-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Jeena
Message 1 in Discussion

Hi,   I am using the Microsoft ExceptionManagement Application Block. I want to deploy 
this as a separate .dll.   The problem i am facing is I try to read the config file 
setting from one of the classes in the ExceptionManagement Block   Please Note I have 
added my own section in the MyAppln.exe.config file  
<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
<!-- Register the "settings" section group and it's "font" and "database" sections.--> 
<configSections> 
<sectionGroup name="ExceptionHandler"> 
<section name="exceptionManagemet" 
type="System.Configuration.NameValueSectionHandler,System"/> 
<section name="ErrorType" type="System.Configuration.NameValueSectionHandler, 
System"/> 
</sectionGroup> 
</configSections> 
<exceptionManagemet mode="on"> 
<publisher mode="on" assembly="CustomPublisher"  
type="CustomPublisher.ExceptionXMLPublisher" 
exceptionFormat="xml" fileName="c:\CustomPub.xml" 
exclude="*" include="CustomPublisher.CustomAppException" /> 
</exceptionManagemet> 
<ErrorType> 
<add key="Severe" value=""></add> 
<add key="Moderate" value=""></add> 
<add key="Minor" value=""></add> 
</ErrorType> 
</configuration> 
  
and in the .cs file i try to read it using the line mentioned below 
NameValueCollection fontConfig = 
(NameValueCollection)ConfigurationSettings.GetConfig("settings/font"); It throws me an 
error saying "Object reference not set to an instance of an object" when i try to 
access "fontConfig" object.   Do i have to do any setting for the aspnet user to read 
the .config file.. Is there a limitation for reading the .config file.   Has anyone 
any solution to this?   Regards, Jeena

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to