Link to home
Start Free TrialLog in
Avatar of timothymo
timothymo

asked on

invalid file dsn problem

hi ppl, i need help in the following issue.

we have a web application KService running on our w2k web
server SVR21. in KService we use a file DSN to connect to
database, and the file is here: "C:\Program Files\Common
Files\ODBC\Data Sources\KCONN.DSN". not frequently, one
per month, we will encounter the "invalid file dsn
problem", which said that "KCONN.DSN" was an invalid file
dsn. if we restart IIS service, the problem goes away. we
can also wait for hrs, the problem goes itself.

can any1 advise me on this issue? any wrong doing i may
have done to the server or to the application?

Thanks very much!
Avatar of AndresM
AndresM

Instead of using a dsn, have you tried an explicit connection string ?
Avatar of timothymo

ASKER

as we have other concerns, file dsn is the only way we could accept.

definitely, connect string or system dsn will work.
ASKER CERTIFIED SOLUTION
Avatar of hakyemez
hakyemez
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i checked the registry in the server, it does have this registry entry, with the value you mentioned above.

Now what i suspect is that at the time the problem came, the server had problem to get this value. i cant verify this until it happens again. also, the server registry may somehow got problem.

Thanks for the information!!