C#wanabe's Q&A profile
Software Development for Windows Vista re-deploy and conversion issue
Hi! I have question about a situation: suppose that you have in your production environment a version of your workflow. Some time after you discover a bug and you have to modify WF. If you replace the assembly all the instances that were persisted in the db will be impossible to load again. What's the recommended way to do the conversion of the old workflows instances to the new version of the assembly Please discuss the following scenarios: 1) Adding an activity 2) Removing an activity 3) Editing an activity Do I have to re-create all the instances and set the state programatically Thanks in advance for you ...Show All
Visual C++ IDE Generated Code Errors
I'm using the Visual Studio .net 2005 Beta 2 (C++) to create a program that uses multiple dialog windows to accesss diferent databases at different times. My question is that the code about the forms that gets automaticlly generated by the IDE keeps causing compiler errors imparticular at this moment their are two lines causesing multiple errors they are: this->fileToolStripMenuItem->Click += gcnew System::EventHandler(this, &Main::fileToolStripMenuItem_Click); which has the errors Error 1 error C2653: 'Main' : is not a class or namespace name c:\documents and settings\rob\my documents\visual studio 2005\projec ...Show All
Windows Forms Bad opinion about .NET framework
Dear Friends, I am using Visual Studio.NET 2005 (Whidbey) to do my developing and designing work. I have developed windows application.I copied the EXE which I have developed,to some other machine (Machine which doesn't has .NET framework 2.0). While running the EXE,I have an error that "you should have .NET framework version 2.0.5314.0 ..." This is really bad. How do they expect that all sys have the framework Then what is the purpose of EXE This is really bad.. Once again they have proved that they are "Microsoft (Not clear)". Any other comments.... Sorry to moan, I was reading this thread and had to comment. I find your ...Show All
SQL Server Receiving messages in a Message Queue
I am new to message queues, so please excuse my ignorance... but when I set a Message Queue as a receive queue... shouldn't it poll for each message in the queue It is running once and I am receiving the value within that queue, but then it just finishes with success. I have tried created a For Each container around it, but that just jumbles the whole mess of it. I have tried various options, but am currently using the "String message to variable" option. Any help would be greatly appreciated. I would really like to delve into transferring more interesting objects, but will settle for just strings at this point. If there ar ...Show All
Visual Basic VB 2005 references problems
Long time C# user and used 2005 since beta 1. Have done some VB class libraries with no problem but the Web IDE is telling me I have references I don't have in my project and don't show up on property pages...Is there a patch for VB 2005 Or am I missing something I think you need to explain further. The IDE says you have references - why And what makes you think that you don't have them if it says you do ...Show All
Windows Forms Directory Browsing in c#
Hi, I am new C# user. My question is is there a a class in C# which allows me to browse directories. All I can see is a file save as and file open dialoag box. Thanks FolderBrowserDialog is a generic Folder Browsing Dialog that is available in 2.0 and 1.1 It's not very intuitive and extremely difficult to Navigate. I wish they would have provided an OpenFolderDialog that lets you choose folders, like many of their applications do. Code samples on how to use it can be found here ...Show All
.NET Development How to using datatable to create a table in DBMS?
How to using datatable to create a table in DBMS there is a difference between datatables and tables in DBMS. Datatables are in memory representation of data, they contain columns & rows, while Tables in DBMS are in the DB. The typical way to use datatables is loading data from the database (table) to the datatable and manipultating the data the way you like, then apply the changes back to the database (table). ...Show All
Visual C# How important are Assert-statements in C# compared to C/C++?
Someone suggested that I should have Assert-statements at the very beginning of every method to check that the values of the in-parameters were in bounds (e.g. 0 <= x < 50) and not null if they shouldn't be. The suggestion were made mainly for C/C++. Is it relevant even for C# How important are Trace.Assert(), Debug.Assert() in C# compared to C/C++ Apparently Assert is one of those things that people either use, and suggest others use, or that people hate and often discourage others from using it... You should use Assert with code where you cant anticipate some breaking event. Validate the input th ...Show All
.NET Development Why is System.Net not available in my add reference list?
Subject pretty much says it all. I'm using Visual Studio 2005 C# Express. I went to add a reference to System.Net and System.Net.Sockets, but they simply aren't there. I tried reinstalling/repairing the SDK, but to no avail. I can't find any reference to this problem by googling it. I'm completely confused as to why this namespace isn't present. All work is halted until this issue is solved, so any help would be greatly appreciated! Thanks, Jason Catalyst OMG, I'm a retard. The example I was following said TCPClient, but it's TcpClient. Lesson learned... check spelling, then check case. :/ - Jason ...Show All
Visual Studio 2008 (Pre-release) Recursion Bug in ServiceBehaviorAttribute
We require implementing a predefined WSDL, and therefore must ensure the WCF generated WSDL is logically equivalent. The targetNamespace attribute of the wsdl:definitions element can only be set using ServiceBehaviorAttribute( Namespace = "myTargetNamespace" ). Unfortunately, the FebCTP has a bug in the Namespace property setter, where it recursively calls itself creating a stack overflow. Is there any workaround to this The RC0 of WCF will be released in a week or two. Check if the problem remains. Guy http://blogs.microsoft.co.il/blogs/bursteg/ ...Show All
Visual Studio Express Editions Datagridviewcomboboxcolumn
Need hlep for following problem!!!!!!! I have VB2005 Professional Edition. I have Two tables in my SQL2000 database. 1) Products Table contains fields --- Product ID, Product Code & Product Name 2) Orders Table Contains fields -- Product Code , Product Name (These 2 fields Stores Product ID instade of Code and name.) In my Orders Form, in datagridview I am showing actual Product Code and Product Name from Product Table using 2 datagridcomboboxcolumns by setting Display Member & Value Member Properties. But now I want to do 1) If I select any Product Code from first combobox in datagriadview the other should displ ...Show All
Visual Studio Team System How could I add a Setup or a TearDown procedure in the xxx.webtest?
How can I add a Setup or a Teardown procedure in the xxx.webtest, not in the xxxCoded.cs I want to prepare some test data for xxx.webtest before it is run and cleanup this test data after the test is done. But I don't want to do it in the xxxCoded.cs because it will be overwritten once the xxx.webtest is modified. This is correct. The namespace changed after beta2. If you are still using beta2, I suggest upgrading. We have made many fixes since beta2. ...Show All
Windows Forms tutorial on treeview
Hi can anyone direct me to a good site where i can learn how to use the treeview control I want to be able to covert this code With tvwMediaCategory .Nodes.Add , , "ROOT", "My Media", "CDMUSIC", "CDMUSIC" .Nodes.Add "ROOT", tvwChild, "ALL_MEDIA", "All Media", "CLOSEDFOLD ...Show All
Visual Studio Express Editions Not necessarily "Express" Related, but what about WinMX
With the cnahge from VB 6 to .NET 1, now .NET2, are we going to have to learn all over again to program under WinFX I'm just now getting my bearings in VB2005 (from VB5 Pro), will this be obsolete in a few months as well Am I misunderstanding the concept First of all, it's not VB.NET anymore it's just VB8 or VB2005. I think Microsoft is laying down a very solid foundation so that obsolescense will be OS related calls but not the structure of the language itself. On the other hand, I've seen previews of the functionality of the next version of Basic and if you think that is at all abs ...Show All
SQL Server ETL from multiple Access databases -SSIS?
Howdy Folks, I have an ETL project that I want to ask a question about. I want to loop through a folder containing several Access databases, and extract and load each one into a single SQL Server 2005 database. The table layout is the same for all the Access dbs, as well as the SQL db. The number of Access dbs in the folder, their records, and their names will change. Is there a way i can use the SSIS Foreach tool to move through the folder and set the connection string inside the loop Thanks for your reply, Chris Yes, you can do this. Use the ForEach File Enumerator to enumerate your list of files. you can use wildcards ...Show All
