LeoFromCanada's Q&A profile
.NET Development ForeignKeyConstraint exception (IDE: VS2005 Beta2 June CTP )
Hi, Using the DataSet below to test ForeignKeyConstraint I get an exception "Invalid 'Key' node inside constraint named: FK_CatId." when read from xml file. IDE: VS2005 Beta2 June CTP Any help Thanks Roberto Juca robjuca@pobox.com /* create parent table TB1*/ DataTable tb1 = new DataTable ("TB1"); tb1.Columns.Add ( new DataColumn ("CatId", typeof (Int32))); tb1.Columns.Add ( new DataColumn ("Name", typeof (String))); tb1.Constraints.Add ( new UniqueConstraint ("PK_tb1", tb1.Columns ["CatId"])); tb1.PrimaryKey = new DataColumn [] { tb1.Columns ["CatId"] }; /* create child table TB2*/ DataTable tb2 = new ...Show All
Windows Forms can no longer open forms in the designer
hi. when i try to open a form in the designer, the ide will at first begin some hefty hard disk activity. after 30 seconds, sometimes later, i receive the following error message: 'could no load file or assembly (NameOfAssemblyHere) or one of its dependencies.' no further information is given. all i can do is press 'ok'. i'm not getting into the designer. (this is an even _worse_ behaviour than in 2003, and 2003 was a pita.) the project with the forms is dependent on another project (several, to be prcise). one of these other projects builds the assembly the forms editor can not 'load'. this also happens with new forms that have been added t ...Show All
Visual Basic It's slow!!!
Hello After I turn on my computer and when I launch first program (which programed by VB2005), it's take a long time to show main form. VB6 was faster. CPU speed: 2600 MHz Memory: 1024 MB Is there a solution for that Thanks & Regards What do you mean by 'long time' It's possible that, even though windows appears to have finished booting up, it hasn't - it's still loading and starting various services (e.g.SQLServer). Additionally, it may be that the .NET framework needs to load prior to your application loading. Did you try using a splash screen to see if t ...Show All
.NET Development Ending windows Application
Hi all, I bult an application that use Background worker for communication task with the COM port. When I exit the application I still see the application process instance in the Task manager. It seems like the application didn't terminated. I'm worry that the background worker still work. The code I wrote is the following: Public Sub FormDisablingProcess() BackgroundWorker1.CancelAsync() readingTimer.Stop() readingTimer.Enabled = False BackgroundWorker1.Dispose() End Sub Private Sub btnExit_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click ...Show All
.NET Development Using System.Net.Mail class to send mail.
Hi, I was coding a class to send mail via SMTP, but I found that in Framework 2.0 you have System.Net.Mail to do that task. The classes works fine to send mail on a server that does not require authentication. Unfortunatelly, I can't get it to work on a base64 encrypted server. The process of logging in that type of server is easy, so I expect an bool attribute, let's say, "IsAuthRequired", but it does not exists. From what I've read on MSDN documentation, the way to do that is to have UseDefaultCredentials to false, and Credentials must not be null. The problem is that my code do have both these requeriments, but I still can ...Show All
Visual C# Windows Forms application works fine on XP; falls over on Windows 2000
We have a C# Windows Forms application using the December 2005 CAB that I can't get to run on some of our customers Windows 2000 machines. The error is 'Exception has been thrown by the target of an invocation' falling over at the System.RutimeTypeHandle.CreateInstance method call. On the xp machines when we are running the Client we only install the Dot Net framework 2.0 and the client runs with no problems. Any ideas where we should start looking Due to security issues, its impossible for us to debug the Client on the customers mahines. We are using stongly named assemblies Thanks We ...Show All
.NET Development Garbage Collector and Memory Release
When the garbage collector determines that an object is no longer required, does it actually release memory from the application or not I have noticed personally that starting another application leads to a drastic drop in memory held by managed applications. Does this mean that 1) garbage collection only takes place when there is memory pressure or 2) that garbage collection is internal to the application(only releases memory inside the memory already held by the application), and that memory release from the application back to the OS only takes place when there is memory pressure. NB: I think Microsoft need to come up with ...Show All
Visual Studio Build is being skipped
So I got my copy of VS 2005 Standard at the rollout event and installed it. I took a compact framework project produced in VS 2003 and copied it to a new directory and converted it to VS 2005. When I attempt to "Clean", "Build", or "Rebuild" the project I keep getting the message " ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ========== ". I tried deleting the exe's and the object files manually to no avail. I tried turning off edit and continue assuming that it could be making decisions about when to build and when to skip but it still just keeps skipping. Any ideas Bill Yes.. This was ...Show All
SQL Server Selecting multiple values for a parameter
I am using SQL Server 2005 Reporting Services. From what I understand, I should be able to create a dropdown list, populate it from a query and have a user be able to select multiple values from the dropdown. If this is possible, I have yet to find out how in the documentation. Does anyone know how to accomplish this Thanks in advance for any help. Wayne E. Pfeffer Software Developer Hi there, I am also searching for how to create dropdown list on reports I am not sure where to see "checkbox in the parameters dialog box". Are you talking about filter . At present, I am not able to create a d ...Show All
Visual Studio Can't debug ASP in VS2005
VS2005 doesn't seem to support debugging ASP pages. Is this really so That's a serious problem if it is. Thanks Jeremy No, she meant IE. Can you clarify what you mean by 'refuse to debug them'. Do you see your ASP documents in the Script Explorer window As for the many requests to bring back auto-attach support for ASP debugging, what are people looking for: Debug classic ASP code locally Debug ASP code + .NET code (either a .NET COM object or ASP.NET code in the same process) Debug class ASP code on a remote computer Case #2 and #3 are pretty hard to solve. On the other hand, Monica's ...Show All
Visual Studio 2008 (Pre-release) DataContract and DataMember
I have a class and I need pass the class to the client of service without put the DataContract and DataMember atributte in the class, without modified the class. Can I put the DataContract or DataMember attribute in another place, or how I pass the class schema to the client without those atributtes You can use the XmlSerializer instead of DataContractSerializer. This is the old ASMX serialization method. If you want your service use XmlSerializer you might add this attribute [XmlSerializerFormat] above the ServiceContract Matias http://staff.southworks.net/blogs/matiaswoloski ...Show All
Visual Basic Deploy VB.NET code on Windows NT 4.0 TSE sp6
We want to deploy visual studio applications to our citrix farm that runs Windows NT TSE 4 SP6. We want to integrate with Office 97 applications with those visual studio applications. Possible Hi, here are the system requirements for .net 1.1. It should run on your systems. http://msdn.microsoft.com/netframework/technologyinfo/sysreqs/default.aspx With .net 2.0 there may be issues I did not find it as supported OS. System Requirements Supported Operating Systems: Windows 2000; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Important: Make sure you h ...Show All
Visual C# Converting CollectionBase to a table
ar there any way to convert a Collection (inherited from CollectionBase) to a DataTable i have Unit class and UnitCollection Class when i bind the UnitCollection to a DataGridView its displays exist data, but wont allow to add. ...Show All
Visual Basic Delete Key
i am using a a textbox and a keypress method i need to capture when the user presses backspace or delete i have the backspace but i cant get delete as it does not call the keypress method. any help would be appreciated Handling the delete key and all the other keys such as function keys etc. use the keyup or keydown events Private Sub TextBox1_KeyDown( ByVal sender As Object , ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = 46 Then MsgBox( "delete" ) 'Your code to handle delete key being pressed End If End Sub ...Show All
.NET Development TCP packet confirmation
Anybody know how I can checks that my TCP/IP packet have been really received on the destination side and that is not standing in the buffer because of retries or bad connection Ronald You can't rely on TCP acks to tell you if the peer application has received your data. It simply isn't going to work reliably, and there are already too many unreliable network applications out there. Deal with the extra cost - it's a requirement of what you are looking to do. The only time you get to use a TCP event to synchronise application events is when you can get a good FIN-FIN exchange at closure of the TCP socket. ...Show All
