Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I just read the code refered to above while searching for a solution. It turns out the project I am having a problem with used the exact same code. This project reads from an ini file and it was working perfectly. All of a sudden one of the sections(the one that has the connection string to the database) is returning a blank string. What could be the problem?

VB
5/2010[Properties]
;Standard=601
Standard=1045
TS_PID=4132
AutoStart=0

LocalIP=2.2.2.59
DataBaseUpdateInterval=0
SendGUIDWithData=True
SQL=Data Source=Carlos\SQL2K8;Initial Catalog=VideobankMaster_Directstream;User ID=sa;Password=sa;
Posted
Updated 16-Nov-10 6:45am
v5

1 solution

Probably because your [Properties] section name starts with 5/2010. Depending on the code you're using for parse INI files (the .NET Framework doesn't have one!) if the square bracket doesn't appear in column 1, it may not see this section of the INI, or it'll show up under a different section.
 
Share this answer
 
v2
Comments
ochang 16-Nov-10 12:36pm    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900