Answer Questions
Luap_25 Recommended books on WCF
I have recently read Microsoft Windows Communication Foundation Hands on (Sams) by Craig McMurtry, Marc Mercuri and Nigel Watling. Unfortunately, this book documents WCF as it is in the beta edition. Some of the examples in the book is therefore not working as they should, since .NET 3.0 now is released. I have found updates on the examples after the CTP update. But there are still differences. So what I am looking for now is good books, alternavly good resources on the Internet for studying WCF in .NET 3.0. Thank you. You can start reading some chapters of Michele's book at www.thatindigogirl.com I've read the available chapters and although I feel a bit weird about having the labs before you get explai ...Show All
spectrablue How to return a List<T> using WCF
I have an application that reads lots of small blocks of records from a data store primarily to supply the application's numerous lists (drop-down etc.) I have been returning DataSets using web services in .NET 2. Now I would like to implement the same functionallity in WCF. I have already got methods that return DataSets in WCF that duplicate the functionallity. However it occurs to me that I could make a list of the rows represented as class objects and return a list instead. The idea being that the server is doing some of the work for me and that I could more easily port a web version of the service if the result is in List<T> form from the service. At this point I take a DataSet and create the List<T> at the client which ...Show All
Banhnam Has anyone got the "TypeBrowser" working?
I've written a guidance automation package based on the WCF service package provided for download but I've got a real problem with the type browser picker gadget :( This being the "..." that you should be able to click on when setting up a data contract or fault contract in order to select a data type for you member rather than having to type in the full name. It doesn't matter what I do I just cannot get it to work. It throws an exception from the ReferencedAssemblies method as it is hard coded to do: /// <summary> /// Gets a collection of all assemblies referenced by the <see cref="T:System.Type"></see> . /// </summary> /// <value></value> /// <r ...Show All
helseruwu Programatically accessing "Add Service Reference"
To add a web reference i click on web reference manuall in the IDE. To do that using code i do the following ProjectItem webReferenceItem = (( VSProject2 )project.Object).AddWebReference(_webServiceUrl); How can i do the same thing for "Add Service Reference" This feature was added to my IDE as a part of the .NET 3.0 Visual Studio Extensions package. In other words i want to know the DLL and Class using which i can add a Service Reference Manually similar to the way i have add a web reference by code Thanks for ur time Hi Karol, Provided it is almost an year since your reply, can you pls. let us know if there is any update in the API I mean can I now add Service Ref programmatically Generating proxy c ...Show All
Lucian Wang Are MSBuild '/target' command line parameters exposed inside a build project?
Within a target I am using the MSBuild task and would like to pass the same information as were passed from the command line using the /t option but I can't find that information exposed anywhere. Is it possible to get at which targets were passed from the msbuild command line using the /t option Thanks, Henrik Hello, As far as I know this information is not exposed; you could create a property and update it in each task called and thus identify the order of tasks (roughly - as you need to take into account dependncies between tasks). I wonder, why would you want to do that Regards, Eugene ...Show All
David Inman How to bind smarttag-dll to Word document
Hi, I created an Office project in Visual Studio 2005. I wrote a SmartTag application and I saw that a dll-file was build. Now when I write some text at the automatically from Visual Studio created Word file the Smarttags are running wonderfull. But how I can implement the smarttags to a new Word file which I created in Word without Visual Studio Hi, thanks. Aha so it means when I want to create many Word documents with SmartTags and diffenrent contents I have to build a WordTemplate project Is it correct Hi M :-) I want to make sure I'm understanding you correctly: You used VSTO 2005 to create a project (Word document or Excel workbook) that implem ...Show All
The VB [Serious BUG] WPF doesn't paint anymore (lost DirectX ?)
I was upgrading my application to the latest bits (June CTP) when I encountered a very strange bug. My application first loads a NavigationWindow, and let the user toy around with some menus. Then, the window gets closed and a "regular" Window shows up. When the "regular" Windows gets closed, my application creates a new NavigationWindow and shows the same menus as before to the user (who has an option to quit). There's a huge bug in WPF with the third step (which was working in the previous build - beta 2 I think). The NavigationWindow shows up, but its contents don't paint. (more precisely: I get the "hall of mirror" effect, which you get when you forget to write your WM_PAINT handler in a non-WPF applicatio ...Show All
EisenB Help compiling
how do I compile/debug and run an application in visual J# 2005 Express edition Hi, 1. OPen J# express. 2. File > new > Project. 3. Create a new Console application. 4. OPen program.jsl. 5. Write following line of code in main method... System.Console.WriteLine("hello world"); 6. Place the cursor on any character of above line. 7. Press f9. It will put breakpoint on this line. 8. Press ctrl + Shift + B (or Build > Build Solution). It will compile your app. 9. Press f5 to debug or Ctrl + f5 to Run it. Hope it helps. Feel free to postback if you have any queries. Thanks. note that directly running or debugging (both options are on the menu and can also custo ...Show All
Jamie Thomson VSPackage VS Addin?
Just got the RTM and so far I'm loving it! The first thing I noticed was that it fixed a random error message I was getting related to some serviceprovider.cs file on an F drive or something.. I Don't even have an F drive.. :) ANYWAY... I've been writing wizards and addins for the past month or two and I'm just not seeing this VSPackage stuff for some reason.. What's the difference between an addin and a VSPackage I'm a little confused. Alex, You should check this link: http://msdn2.microsoft.com/en-us/library/bb330853(VS.80).aspx Pablo Cool. Pablo OMG, I feel dumb.. that's the FIRST link in that pops up when you install the RTM!!! That's EXACTLY what I was looking for too! :) Thanks! ...Show All
Jamie Thomson WCF for high troughput scenarios?
Hi, I was wondering if WCF is usable in scenarios where high throughput has to be achieved . For example a financial market data service that broadcasts market data via UDP (roughly 10k messages/sec). It's important that packets are as small as possible .. can this be achieved with WCF or is there always a high message size overhead Thanks, Tom I think that's not really what I was looking for. My question is targeted more on the message size and throughput efficiency. How much of an overhead in bytes does WPF add to messages in its most optimized way I need data broadcasted via UDP, reliablity is not really an issue, but it's a lot of data and minimizing the latency is essential. Thanks, Tom ...Show All
Lian6006 How do I get WSHttpBinding to work on a client
I can run a WCF client and WCF Service on the same machine using BasicHttpBinding, and I can get the cleint to run on a remote machine. I take the same code for both client and service and replace BasicHttpBinding with WSHttpBinding, and the Service and client will work on the same machine properly. However, when I take the cleint (Containing WSHttpBinding) and access the WCF Service (also containing WSHttpBinding) from a REMOTE client, the client fails with the following error: Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An u nsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.Fa ultException: An ...Show All
robinjam export to image with black block
My code is: RenderTargetBitmap rtb = new RenderTargetBitmap((int)canvas1.Width, (int)canvas1.Height, 96d, 96d, PixelFormats.Pbgra32); rtb.Render(sp); BmpBitmapEncoder encoder = new BmpBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(rtb)); FileStream file = new FileStream(Environment.CurrentDirectory + "\\temp.bmp", FileMode.Create); encoder.Save(file); it run without exception,but the image ' blank area was fill with black block,why Could you please show us the xaml you defined especially how you define the scene (TileBrush etc) to be rendered by RenderTargetBitmap so a better solution to your problem can be quickly constructed. Sheva This happens because the image format ...Show All
Robeen_S Hide Graph Series
Hi i've been trying for a while now to generate a graph in crystal from VB.net, I thought I'd finished too until I got the following error. You are attempting to use functionality that falls under the Business Objects Report Creation API license. This system does not have a valid license, or the evaluation copy of the license has expired. Please contact Business Objects to obtain a Report Creation API license. This was generated from the line crChart.SummaryFields.Delete(msChartFields.Length + 1) It doesn't like me calling the delete routine My question: Does anyone know how to hide a summaryfield on the graphs Because I cannot add them at run time i've designed my graph with 20 data values and trying to hide the ones i dont need ...Show All
ranger28 RichTextBox Blocks
Hi, I would like to know if it is possible to make an option that can maybe be exposed to alter the behaviour of the richtextbox. At the moment, when the richtextbox is empty, or if you are on an empty line, the default behaviour when adding InlineUIComponents is to create them as BlockUIContainers. This is very frustrating as I only want my "unique" object to stay a specific size, and to still add text after and before it (like having a small image that you can have in the same line as the text) What I would like to happen is when I create an InlinUIContainer on a blank line, is instead of making it a BlockUIContainer, create a paragraph and add it as an inline, so that I don't have to do post processing work to get it to ...Show All
daica_ok Back to back video playback: problems + inconsistent behavior
Hi, I'm trying to play video clips, back to back, inside a canvas. My first approach was to hold two mediaelements in the canvas, and switch their visibility, loading the data in each element while the other was playing. This turned out to be unusable, as for some strange reason, the second element would consistently drop a lot of frames. I got this behavior even when the project was reduced to the bare minimum. If anyone has any idea why this is so, please don't hesitate to share the knowledge (using June CTP). I then tried to switch from direct MediaElement manipulation (Source, Play, Stop etc.), to the mediatimeline/mediaclock approach. This turned out to be very tricky, but after a lot of voodoo work (e.g, explicitly assigning null to ...Show All
