A first chance exception of type 'System.InvalidOperationException' occurred in System.dll ??

Posts   
 
    
silat
User
Posts: 57
Joined: 24-Mar-2006
# Posted on: 12-Jul-2006 16:40:00   

Hello,

while my prgm is working fine, I am having the following line in my output window: A first chance exception of type 'System.InvalidOperationException' occurred in System.dll

This one happens when I only do:


            DataAccessAdapter adapter = new DataAccessAdapter();

By debugging, the error occurs in DataAccessAdapter.cs, in the function ReadHandleCatalogNameSettingFromConfig

at the line: CatalogNameUsage catalogNameUsageSetting = (CatalogNameUsage)(int)configReader.GetValue("CatalogNameUsageSetting", typeof(int));

Is it normal? do I miss anything?

Thanks,

Silat

btw below is my config file:


<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="Main.ConnectionString" value="data source=XXX;initial catalog=XXX;integrated security=SSPI;persist security info=False;packet size=4096"/>
</appSettings>
</configuration>

Walaa avatar
Walaa
Support Team
Posts: 14951
Joined: 21-Aug-2005
# Posted on: 12-Jul-2006 17:07:16   

Would you please check the following threaad: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5383

silat
User
Posts: 57
Joined: 24-Mar-2006
# Posted on: 12-Jul-2006 17:12:29   

Cool !

Thanks,

Silat