This project has moved and is read-only. For the latest updates, please go here.

Does not post messages

Nov 15, 2013 at 12:46 AM
Hello, it worked fine until today when now sending messages failed with the Debug window showing:

Error in DataProvider.PostArticle: Exception:
Type System.ServiceModel.FaultException1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
Source: mscorlib
Message: could not load an entity: [Microsoft.Forums.Data.Models.DiscussionGroup#805bdc3f-bf13-4784-9e81-548b5030302b][SQL: SELECT discussion0_.DiscussionGroupID as Discussi1_9_0_, discussion0_.Name as Name9_0_, discussion0_.DiscussionGroupTypeID as Discussi3_9_0_, discussion0_.Archived as Archived9_0_, discussion0_.DisplayName as DisplayN5_9_0_, discussion0_.Description as Descript6_9_0_, discussion0_.Private as Private9_0_, discussion0_.lcid as lcid9_0_, discussion0_.IsLocked as IsLocked9_0_, discussion0_.SearchDefaultBrandId as SearchD10_9_0_, discussion0_.IsOwnerEmailEnabled as IsOwner11_9_0_, discussion0_.LastUpdatedDate as LastUpd12_9_0_, discussion0_.HostId as HostId9_0_, discussion0_.EscalationsEnabled as Escalat14_9_0_, discussion0_.OnlyQuestions as OnlyQue15_9_0_ FROM DiscussionGroup discussion0_ WHERE discussion0_.DiscussionGroupID=?]
Stack-Trace:

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at CommunityForumsNNTPServer.WebServiceDataSource.Forums.IForumsService.CreateReply(Guid forumId, Guid threadId, Guid postId, String body)
at CommunityForumsNNTPServer.WebServiceDataSource.Forums.ForumsServiceClient.CreateReply(Guid forumId, Guid threadId, Guid postId, String body)
at CommunityForumsNNTPServer.WebServiceDataSource.MicrosoftForumsServiceProvider.<>c__DisplayClass2c.<CreateReply>b__2a()
at CommunityForumsNNTPServer.WebServiceDataSource.MicrosoftForumsServiceProvider.RetryCall[TResult](Func
1 func, UInt32 retryCount)
at CommunityForumsNNTPServer.WebServiceDataSource.MicrosoftForumsServiceProvider.CreateReply(Guid forumId, Guid threadId, Guid postId, String body)
at CommunityForumsNNTPServer.ForumDataSource.SaveArticles(String clientUsername, List`1 articles)
at CommunityForumsNNTPServer.NNTPServer.DataProvider.PostArticle(String clientUsername, String data)
[Client 1] ClientConnected
[Client: 1] ClassifyCommand: MODE READER
[Client: 1] Received: Command: MODE, Parameters: READER
[Client: 1] Received: Response: 200 Community Forums NNTP Server 1.1.55.0 Ready - posting allowed

[Client: 1] ClassifyCommand: POST
[Client: 1] Received: Command: POST, Parameters:
[Client: 1] Received: Response: 340 send article to be transferred. End with <CR-LF>.<CR-LF>

[Client: 1] DataReceived: Client is posting data
[Client: 1] DataReceived: Client is posting data
[Client: 1] DataReceived: Client is posting data
[Client: 1] DataReceived: Client is posting data
[Client: 1] Received: POSTDATA: From: "David Ching" dc@remove-this.dcsoft.com
Newsgroups: Msdn.en-US.vcgeneral
References: 447215db-ab5b-4ddc-a830-dcaceb794bec@communitybridge.codeplex.com
In-Reply-To: 447215db-ab5b-4ddc-a830-dcaceb794bec@communitybridge.codeplex.com
Subject: Re: Catch ENTER key on CBitmapButton
Date: Thu, 14 Nov 2013 16:42:58 -0800
Lines: 12
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_026D_01CEE158.93446DB0"
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 16.4.3505.912
X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3505.912

This is a multi-part message in MIME format.

------=_NextPart_000_026D_01CEE158.93446DB0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

The Enter key is supposed to press the default button in a dialog. The =
space key is supposed to press the focused button, if one exists. But =
the dialog bar itself needs to have focus for all this to work, and =
probably the main client area in your window has the focus. So Enter =
doesn=92t work here.

I think you can intercept CWnd::PreTranslateMessage() and look for the =
WM_KEYDOWN of the Enter key and react accordingly, as a workaround.

Thanks,
David
------=_NextPart_000_026D_01CEE158.93446DB0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD></HEAD>
<BODY dir=3Dltr>
<DIV dir=3Dltr> <DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV=20 style=3D"FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; = COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: = inline"> <DIV dir=3Dltr> <DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV=20 style=3D"FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; = COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: = inline"> <DIV dir=3Dltr> <DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV=20 style=3D"FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; = COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: = inline"> <DIV dir=3Dltr> <DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV>The Enter key is supposed to press the default button in a = dialog.&nbsp;=20 The space key is supposed to press the focused button, if one = exists.&nbsp; But=20 the dialog bar itself needs to have focus for all this to work, and = probably the=20 main client area in your window has the focus.&nbsp; So Enter doesn=92t = work=20 here.</DIV> <DIV>&nbsp;</DIV> <DIV>I think you can intercept CWnd::PreTranslateMessage() and look for = the=20 WM_KEYDOWN of the Enter key and react accordingly, as a = workaround.</DIV> <DIV>&nbsp;</DIV> <DIV>Thanks,</DIV> <DIV>David=20 <DIV=20 style=3D"FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; = COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: = inline"></DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV=
</DIV></DIV></DIV></BODY></HTML>
------=_NextPart_000_026D_01CEE158.93446DB0--

MIME-Part: HTML selected
Invalid article number (0) for article 447215db-ab5b-4ddc-a830-dcaceb794bec in group vcgeneral
CreateReply: ForumId: 805bdc3f-bf13-4784-9e81-548b5030302b, DiscussionId: 447215db-ab5b-4ddc-a830-dcaceb794bec, ThreadId: 447215db-ab5b-4ddc-a830-dcaceb794bec, Content: <DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline"> <DIV dir=ltr> <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline"> <DIV dir=ltr> <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline"> <DIV dir=ltr> <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000"> <DIV>The Enter key is supposed to press the default button in a dialog.&nbsp; The space key is supposed to press the focused button, if one exists.&nbsp; But the dialog bar itself needs to have focus for all this to work, and probably the main client area in your window has the focus.&nbsp; So Enter doesn’t work here.</DIV> <DIV>&nbsp;</DIV> <DIV>I think you can intercept CWnd::PreTranslateMessage() and look for the WM_KEYDOWN of the Enter key and react accordingly, as a workaround.</DIV> <DIV>&nbsp;</DIV> <DIV>Thanks,</DIV> <DIV>David <DIV style="FONT-SIZE: small; FONT-FAMILY: 'Calibri'; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; TEXT-DECORATION: none; DISPLAY: inline"></DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV><a name="d75ffdc3-92e8-47c3-8b9b-f331f0b64ce2_CommunityBridge" title="Microsoft Windows Live Mail 16.4.3505.912 via Community Forums NNTP Server 1.1.55.0" />
[Client: 1] Response: 441 posting failed System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: could not load an entity: [Microsoft.Forums.Data.Models.DiscussionGroup#805bdc3f-bf13-4784-9e81-548b5030302b][SQL: SELECT discussion0_.DiscussionGroupID as Discussi1_9_0_, discussion0_.Name as Name9_0_, discussion0_.DiscussionGroupTypeID as Discussi3

[Client 1] ClientDisconnected


Thanks,
David
Nov 15, 2013 at 6:23 AM
This is a server-side error. I have forwarded it to microsoft.
Nov 15, 2013 at 6:23 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Nov 15, 2013 at 2:59 PM

Thank you Jochen!

Nov 19, 2013 at 7:13 AM
Now the problem should be solved!
Nov 19, 2013 at 5:21 PM

It does work, thank you!