FYI - as a temporary workaround I have written a new sub that strips out the
original message from the exception and throws a new exception with only the
Msg. So try calling a function like this where u would normally throw your
exceptio (sorry about the bad formatting) :
Public Sub ThrowBaseException(ByVal ex As Exception)
Dim oBaseException As Exception = ex.GetBaseException
Dim sMsg As String
If Not IsNothing(oBaseException) Then
If TypeOf oBaseException Is System.Data.SqlClient.SqlException Then
Dim n As Integer
For n = 0 To CType(oBaseException, SqlClient.SqlException).Errors.Count
- 1
Select Case CType(oBaseException,
SqlClient.SqlException).Errors.Item(n).Number
Case 266
Case Else
sMsg += CType(oBaseException,
SqlClient.SqlException).Errors.Item(n).Message + vbCrLf
End Select
Next
Else
sMsg = oBaseException.Message
End If
Else
sMsg = ex.Message
End If
Throw New Exception(sMsg)
End Sub
[quoted text, click to view] "dave_wurtz@asdsoftware.com" wrote:
> Microsoft, are you out there? I'm not really sure how to report this
> as a bug?
>
I use this little code to throw the original message as a workaround until I
find a permanent solution to the problem (sorry about the formatting). The
client will get the proper message now, but not the tracestack...:
Public Sub ThrowBaseException(ByVal ex As Exception)
Dim oBaseException As Exception = ex.GetBaseException
Dim sMsg As String
If Not IsNothing(oBaseException) Then
If TypeOf oBaseException Is System.Data.SqlClient.SqlException Then
Dim n As Integer
For n = 0 To CType(oBaseException, SqlClient.SqlException).Errors.Count
- 1
Select Case CType(oBaseException,
SqlClient.SqlException).Errors.Item(n).Number
Case 266
Case Else
sMsg += CType(oBaseException, SqlClient.SqlException).Errors.Item(n).Message
+ vbCrLf
End Select
Next
Else
sMsg = oBaseException.Message
End If
Else
sMsg = ex.Message
End If
Throw New Exception(sMsg)
End Sub
[quoted text, click to view] "dave_wurtz@asdsoftware.com" wrote:
> Microsoft, are you out there? I'm not really sure how to report this
> as a bug?
>
Thx for the link, but it has absolutely nothing at all to do with our problem.
Our remoting configuration was working splendidly until we installed SP1 of
Windows Server 2003 or our remoting server machine.
To me it seems like MS has mucked around with the interface for SQLError,
and it makes the client unable to receive errors including SQLError....
/Tommy
[quoted text, click to view] "dotnetfan" wrote:
> HTH
>
http://dotnetjunkies.com/WebLog/chris.taylor/articles/5566.aspx
>
Thx a lot. Getting the hotfix (article 887549) solved the problem!
[quoted text, click to view] "Ramon de Klein" wrote:
> See my post on
What exactly did you apply and to what. The hotfix 887549 is a hotfix for
Windows 2003 is it not?
[quoted text, click to view] "Tommy" wrote:
> Thx a lot. Getting the hotfix (article 887549) solved the problem!
>
>
>
> "Ramon de Klein" wrote:
>
> > See my post on
What exactly did you apply and to what. The hotfix 887549 is a hotfix for
Windows 2003 is it not?
[quoted text, click to view] "Ramon de Klein" wrote:
> See my post on
Which system did you apply the fix to? When I apply it to the server I get
the message: Setup has detected that the Service Pack version of this system
is newer than the update you are applying.
There is no need to install this update.
When I try to apply it to my XP machine I get the message:The version of
Windows you have installed does not match the update you are trying to
install.
The dates of my System.data.dll files matched those in the original post.
Thanks,
I didn't apply the fix to either system, though the hotfix is, I believe,
for Server 2003. Since the KB article didn't actually mention the problem
I'm having, I was reluctant to apply it.
[quoted text, click to view] "Kathleen Braun" <kbraun@xxx.com> wrote in message
news:93569df81b8f499aa3ac10e0c189b709@ureader.com...
> Which system did you apply the fix to? When I apply it to the server I
> get
> the message: Setup has detected that the Service Pack version of this
> system
> is newer than the update you are applying.
>
> There is no need to install this update.
>
> When I try to apply it to my XP machine I get the message:The version of
> Windows you have installed does not match the update you are trying to
> install.
>
> The dates of my System.data.dll files matched those in the original post.
>
> Thanks,
> Kathleen
Hi,
I too am experiencing the same problem as Kathleen. It seems I can't
install the hotfix that apparently fixes the problem.
Does anyone have a solution to this problem?
Thanks.
Gary.
This post does not exist, Ramon! Please update or reply with some new info,
I'm desperate to resolve this problem.
[quoted text, click to view] "Ramon de Klein" wrote:
> See my post on
I'm not able to find the hot fix also...
Hi,
Im facing the similar problem in one of our Project. Not able to find that
HOTFIX on specified link. I hope there is some other solution except change
Don't see what you're looking for? Try a search.