Advanced Forum Search Results
-
I mean in code snippet:
<AssemblyPart x:Name="linlib_xx" Source="ClientBin/linlib_xx.dll" />
So, if x:Name is not equal Source's file name you'll get "manifest malformed" exception.Something like following is not working anymore:
<AssemblyPart x:Name="linlib_xx1" ...
-
Was:
AssemblyPart name is not related to correponding ".dll" name.
2.0 final:
"x:Name" of AssemblyPart MUST be equal to ".dll" name otherwise you'll get init error:
Code: 2103
Message: Invalid or malformed application: Check manifest
Regards.
-
Thanks a lot,I see:-)
-
I'm talking about BeginGetResponse not EndGetResponse,why code above does not work? BeginGetResponse not have a chance to execute re.Set() in delegate.Why similar combination BeginGetRequestStream(x=>re.Set());re.WaitOne() work just fine and free UI thread for EndGetRequestStream(),but BeginGetResponse(x=>re.Set());re.WaitOne(); just ...
-
When HttpWebResponse.StatusCode!=HttpStatusCode.OK then GetResponseStream() is null, but how I can get response in case of http status code is 500 or something like that? Server trying to say something to me,but I can't read.
Thanks.
-
What goes after
XDocument doc = XDocument.Load(new StreamReader(response.GetResponseStream()));
What do you mean by "Event Calendar"?
Regards.
-
Please,clarify a little what does it means EndGetRequestStream()-«something needs to be done on the UI thread.»
[CODE]
using (var rs = r.EndGetRequestStream(a_r))
{
rs.Write(...);
a_r= r.BeginGetResponse(x => re.Set(), null);
}
re.WaitOne();//hangs forever
[/CODE]
So,you say particularly that ...
-
Following code:
var r = WebRequest.Create(uri);
ManualResetEvent re = new ManualResetEvent(false);
r.BeginGetRequestStream(x =>
{
re.Set();
rs = r.EndGetRequestStream(a_r);
}, null);
re.WaitOne();
run OK.But this:
var r = ...
-
Following code hangs forever,without visible reason,docs says HttpWebRequest utilize "worker thread" to do it's work,but it seems block UI thread anyway:
AutoResetEvent re = new AutoResetEvent(false);
IAsyncResult a_r= null;
a_r = r.BeginGetRequestStream(x => re.Set(), null);
re.WaitOne();//OK
using (var rs = ...
-
OK,BeginGetRequest(Stream) is working but how about BeginGetResponse?Is it "returns in background thread"?I can't get it to work,thread just hangs forever,if I do re.WaitOne(),re.Reset() beforehand ManualResetEvent I've used for BeginGetRequest.
Is there some difference in handling threads for BeginGetRequest and ...