M
Mythran
We have an application on one server and a web service on another server.
Our BLL and DAL layers are behind the web service. When a SqlException is
thrown, the application receives the following error:
System.Runtime.Serialization.SerializationException: Possible Version
mismatch. Type System.Data.SqlClient.SqlError has 8 members, number of
members deserialized is 7.
After reviewing SqlError, framework v1.1 contains the following fields:
private byte errorClass;
private int lineNumber;
private string message;
private int number;
private string procedure;
private string source = ".Net SqlClient Data Provider";
private byte state;
SqlError, framework v2.0 contains:
private byte errorClass;
private int lineNumber;
private string message;
private int number;
private string procedure;
[OptionalField(VersionAdded=2)]
private string server;
private string source = ".Net SqlClient Data Provider";
private byte state;
I'm assuming that the application itself is running on v2.0 somehow. I
checked the ASP.Net tab in IIS for the application and it is set to run
under .Net 1.1, not 2.0...anyone familiar with this and can shed some light
or any other types of tests I can run.
Thanks,
Mythran
Our BLL and DAL layers are behind the web service. When a SqlException is
thrown, the application receives the following error:
System.Runtime.Serialization.SerializationException: Possible Version
mismatch. Type System.Data.SqlClient.SqlError has 8 members, number of
members deserialized is 7.
After reviewing SqlError, framework v1.1 contains the following fields:
private byte errorClass;
private int lineNumber;
private string message;
private int number;
private string procedure;
private string source = ".Net SqlClient Data Provider";
private byte state;
SqlError, framework v2.0 contains:
private byte errorClass;
private int lineNumber;
private string message;
private int number;
private string procedure;
[OptionalField(VersionAdded=2)]
private string server;
private string source = ".Net SqlClient Data Provider";
private byte state;
I'm assuming that the application itself is running on v2.0 somehow. I
checked the ASP.Net tab in IIS for the application and it is set to run
under .Net 1.1, not 2.0...anyone familiar with this and can shed some light
or any other types of tests I can run.
Thanks,
Mythran