Answer Questions
Arty Saravana Crash of visual studio when model is incorrect
We use team foundation server as a version tool for our DSL projects. However, since the debugging project runs only in the hive mode and the tfs-plugin is not available in the hive, it is clumbersome to keep the debugging project up to date. If the DSL is changed and you do not have the latest debugging project, then visual studio crashes during start-up if an old model was open the previous time the debugging project was used. The work around is to remode the model(s) from the debugging project, and to recreate them or to obtain their corresponding versions. I think the editor should give an error in the format of a message but a crash is rather drastic. My question is if you can also add some clue about what is wrong. This improve ...Show All
KonRi Stateful Operation Selection (No OperationContext in IDispatchOperationSelector)
Hi, You can implement the IDispatchOperationSelector interface to customize the way operations are selected to which incoming messages are dispatched. In my implementation, the selection of the operation depends on the session and is thus for each client different (depending on their respective session state). Unfortunately, the session does not yet seem to exist at the time the SelectOperation() method is called by WCF, i.e. OperationContext.Current is null. However, I need to access the OperationContext because I've stored my stateful information in there on which my operation selection depends. Anybody an idea, how I can access the session state anyway at this point Cheers, patric Hi Patric, Is th ...Show All
cnceric Image resources, databound
Hi, If I set the application icon in the project properties, How can I load it to the WPF window icon Can I store the graphics in XAML How can I set the graphics in databound control item, eg. in treeview/listbox etc (both one for all or different in correspondence with data item) Thanks, Jan Store the images in your application as resources. In the DataTemplate used by the ListBoxItems, include an Image element to display the gender-specific image. Bind the Source of the Image to the <Person> element and create a custom value converter which returns a BitmapImage from the Convert() method. If the <Person> is a male, the converter returns one icon, else the other icon. For loading ...Show All
Guy Burstein Access to Source Code?
Where can I get access to the ReportViewer source code I can get the .NET Framework source, I can get ASP.NET AJAX source, it stands to reason I should be able to get access to ReportViewer as well. ReportViewer source code is not publicly available. Why not I don't intend to attack the developers, but it's obvious not many resources are attached to this project from the number of issues in the forums, and how "quickly" they are addressed. Microsoft has "Shared Source" licenses already and we are talking about a .NET user control, not an end user product like Word. ...Show All
Jason Kossowan ping client before sending message
In the publish subscribe scenario, is there a way for the host to ping the client before sending out a message Specifically, if the host is trying to invoke a method that resides in the client's service, is there a way to find out that the client's service is actually running before invoking that method Nothing deep, they are just C# events you can hook with +=. Something like ((IChannel)subscriber).Faulted += ... // method or delegate that will do _subscribers.Remove(subscriber) in the lock when called I understand, but what is the problem in catching the error and continuing the execution with #8,9 & 10 I also would point out that all the services that you mentioned, work in a p ...Show All
breceivemail How to make Accounts Receivable Reports
Can anyone help me know how to make an accounts receivable reports It was definitely about aging and if anyone had a sort of tutorial or any input about this, please let me know.Thanks... anyone please bump Anyone guys What are you using for your data If it's SQL Server you could create a stored procedure that would summarize your data into columns of date ranges then design your report off of this. If it is SQL server that you are using, and if your data is based on dates and amounts, I can send you a sample stored procedure that might help you. ...Show All
kapeed doing a search in MSDN techinal articles, columns and msdn magazine
Pls, How can I do a search in msdn or msdn2 that returns results only from technical articles, columns, periodicals and msdn magazine withount including the regular .Net help documents. Thank you For my previous question: returns results only from technical articles, columns, periodicals and msdn magazine withount including the regular .Net help documents I just discovered that doing a search for: My word 1 My word 2 Article Returns mostly articles (from MSDN magazine, columns, technical articales...) instead of regular help documents any other suggestions (I find that articles are very efficient for people who re beginners like myself to dig into a technology and understand its practical aspect) Thanks. ...Show All
sxf Create a Template
Hi, Is it possible to create a Item / Project Template using GAT If yes, could anyone please throw some light on how to go about achieving the same. Thanks, Lahiri Not sure on the item template, but project for sure. However, GAT is much more than just create templates for you. It allows you to prompt the user for information as they go through the process of creating the new project. If all you want is a basic template, I would suggest sticking with what is provided in VS for you already. However, for a tutorial on GAT I would suggest the following: http://jelle.druyts.net/2006/06/26/GAS01IntroductionToTheGuidanceAutomationJune2006CTP.aspx http://jelle.druyts.net/2006/06/26/GAS ...Show All
Tyrone Fay What is most efficient way to create the list of image thumbnails?
Hi! I have a "little" question... ;) I would need to have (kind of) photo-album functionality in my application - it should display thumbnails of images from certain folder (and entering a folder with 2000 images should not bring the system to its knees!), and user should be able to move in that thumbnail view (using keyboard!) and perform some actions. Problem is, that there are so many options in all respects (what should be the container, how to get thumbnail of the images, how to do it asynchronous - so that folder with 2000 images would not block whole machine, etc.), that it is difficult to choose something In your opinion, what would be the most efficient way to do this Thank you very muc ...Show All
Jessica Alba How to get the SQL Query from a Crytsal Report in .Net
Hi, I am developing a .NET application where in I try to get the matadat from a Crystal Report. So in the .NET application i create a Crystal Report Object and try to get the various details of the Crystal Report. I am able to get the Database, dataconnection, the Db Server Name, the UID, PWD for the DB, BUT NOT ABLE TO GET THE QUERY ASSOCIATED WITH THE CRYTSAL REPORT, How can i get the query associated with a Crystal Report in the .NEt code. Thanks AviRup. You can't do it unless you have access to the RAS SDK. This only comes with Crystal Reports Server, Crysal Enterprise, or Business Objects Enterprise. If you have one of them, you can find the method GetSQLState ...Show All
OOC&#35; Debugger 'corrupts' program flow
I am new to C# and VS2005 - please excuse if this is covered elsewhere. I am developing a system modelling programme that uses a windows gui to build and manipulate a hierarchical class structure. Constructing instances of objects works fine but editing existing instances does not. Program flow based on main form - edit requested via main form function. - edit form constructed and shown from within overriden class method. Forms work fine until edit process is debugged. Setting breakpoints before form constructed and within edit form work. Setting breakpoint after form causes form to show as blank or not at all. Programme will jump to breakpoint without allowing interaction with form. Its as if the compiler has optimised form out of ...Show All
Hamed JI WSDL has wrong soap:address??
I have been just learning WCF and I have a virtual machine running Windows Server 2003. I develop my hello world WCF Service and the Hosting website locally on my own PC, and if I browse to http://localhost/MyHost/HelloWorldService.svc wsdl I get a WDSL that has all the correct information in it. But when I deploy this Web Host app to my Windows Server 2003 machine, and I go to the address http://servername/MyHost/HelloWorldService.svc wsdl the soap:address property of the WSDL file is incorrect and I cant load any Service References, I get the following output: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - There was an error downloading 'http://markv.kram/Hel ...Show All
Jim Tomasko Generating C# Code Help in Viusal Studio 2005
Dear ppl, I have a solution in visual studio 2005 with a couple of projects in it and lots of source code files. All C# code. I heard that there is a way you can generate help for your code (classes, properties, methods etc.) you have to specify comments like e.g. /// <summary> /// Retrieves data from database by filling object arrays /// with rows of data and adding those objects to an ArrayList /// </summary> /// <param name="command"></param> /// <param name="rowLimit"></param> /// <returns></returns> public static ArrayList ReadValues( SqlCeCommand command, int rowLimit) { } Can any on ...Show All
dakerson How does one hook custom events into Xaml?
I'm trying to implement a Data Binding layer to protect my UI from business logic dependencies. I'm using XAML to bind a control (TextBox in this case) to a datasource, which works just fine so far. However, the underlying datasource fires a custom event. The UI needs to catch this event and act on it (enable some controls). If I use code behind to register for the event and catch it, then I'm breaking the markup/code separation. How can I register for and catch a custom event strictly in XAML code Note1: Just to make it intgeresting, the event is a generic that derives from AsyncCompletedEventArgs Note2: The event will be coming in on a separate thread. I don't suppose there is any infrastructure in place to take ...Show All
igor_22 "DLL version not correct" when loading an image from the assembly
This is referencing the May CTP (beta 2): Some users of my application are getting crashes: Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : '/DefaultUI;;;component/Images/icon.ico' string is not a valid value for 'Icon' property of type 'ImageSource'. Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : '/DefaultUI;;;component/Images/icon.ico' string is not a valid value for 'Icon' property of type 'ImageSource'. Error at element 'BuddyList' in markup file 'DefaultUI;component/contactlist/contactlist.xaml' : Cannot convert the string '/DefaultUI;;;component/Images/icon.ico' in attribute 'Icon' into an object of type 'System.Windows.Media.ImageSou ...Show All
