J
Jeremy Sage
We are getting occasional errors in our application being reported by users.
Unfortunately the information is very limited and usually the report just
consists of a ".Net framework error".
The application is a front end for a SQL Server 2005 Express database,
written in VB in VS 2008 but targetting the .Net framework version 2.0. We
had a previous version using a standard setup program installation but now
have a later version using Click Once. Clients mainly running Vista.
There are only two instances that we have detailed error information on and
these show the following:
"System.Configuration.ConfigurationErrorsException: Configuration system
failed to initialize ---> System.Configuration.ConfigurationErrorsException:
Root element is missing." (and refers to the user.config file)
and
"System.Data.SqlClient.SqlException: An error has occurred while
establishing a connection to the server. When connecting to SQL Server 2005,
this failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network Interfaces,
error: 26 - Error Locating Server/Instance Specified)"
In the second instance, the user could connect to the database using sqlcmd
so as SQL is running and the user can connect I thought it may be the
connection string in the app config file. As the first error message implies
a problem with the user config file I wondered if the two problems were
connected.
We do not have any more detail to indicate how many errors there are, the
frequency of them, or how many of the errors are either of the above or
whether there are other errors. However, there are a few workarounds that
users have developed that may shed some light:
- perform a system restore (presumably to before a Windows update but no
info on which one)
- run as a different user (though this may only provide a temporary
solution before the error appears again)
- run the older 'non-ClickOnce' application (again, this may only be a
temporary solution)
Unfortunately, I have not managed to reproduce the error and the information
coming back from users is limited so it has been difficult to fault find. I
am hoping that the above information will be sufficient for someone to help
identify the problems or at least help in some more fault-finding.
Thanks in advance,
Jeremy
Unfortunately the information is very limited and usually the report just
consists of a ".Net framework error".
The application is a front end for a SQL Server 2005 Express database,
written in VB in VS 2008 but targetting the .Net framework version 2.0. We
had a previous version using a standard setup program installation but now
have a later version using Click Once. Clients mainly running Vista.
There are only two instances that we have detailed error information on and
these show the following:
"System.Configuration.ConfigurationErrorsException: Configuration system
failed to initialize ---> System.Configuration.ConfigurationErrorsException:
Root element is missing." (and refers to the user.config file)
and
"System.Data.SqlClient.SqlException: An error has occurred while
establishing a connection to the server. When connecting to SQL Server 2005,
this failure may be caused by the fact that under the default settings SQL
Server does not allow remote connections. (provider: SQL Network Interfaces,
error: 26 - Error Locating Server/Instance Specified)"
In the second instance, the user could connect to the database using sqlcmd
so as SQL is running and the user can connect I thought it may be the
connection string in the app config file. As the first error message implies
a problem with the user config file I wondered if the two problems were
connected.
We do not have any more detail to indicate how many errors there are, the
frequency of them, or how many of the errors are either of the above or
whether there are other errors. However, there are a few workarounds that
users have developed that may shed some light:
- perform a system restore (presumably to before a Windows update but no
info on which one)
- run as a different user (though this may only provide a temporary
solution before the error appears again)
- run the older 'non-ClickOnce' application (again, this may only be a
temporary solution)
Unfortunately, I have not managed to reproduce the error and the information
coming back from users is limited so it has been difficult to fault find. I
am hoping that the above information will be sufficient for someone to help
identify the problems or at least help in some more fault-finding.
Thanks in advance,
Jeremy