Answer Questions
PublicError GetChanges - Update - Merge result in redudant row
I would like some assistance in the following situation. A table has 0 rows Row is added to table (table.rows.add) Table has 1 row GetChanges is called Update is called Merge is called Table has 2 rows (!) I suppose that this has to do with the primary key of table being autoincrement (both in database and in typed table). What's the procedure to do this right papadi wrote: I think I found the solution! http://msdn2.microsoft.com/en-us/library/ks9f57t0.aspx Search for "Merging" in this article. I haven't tried it yet but it describes this exact situation! Now the problem is that after performing the update, it does not return the correct number of affected records! ...Show All
Sandor Fabian Retrieving Keys and Relationships using a schema file.
I'm having the hardest time retrieving keys and relationships in my schema file. Is there a way to do this with XPath or SOM If you do know could you provided some code or an sample article or blog that I can use as reference because all the code samples that I use don't work. Please help. Thank you. If you want to use SOM, please tell us whether you use .NET 1.1 or .NET 2.0. Generally xs:key/keyref are constraints so for instance an XmlSchemaElement has a property named Constraints which is an XmlSchemaObject collection and contains the constraints associated with the element. I'm using .NET 2.0 For the top level elements in each schema in a schema set you can find constraints like this: XmlSchemaSet schemaSet = ...Show All
Puca type resolution ?
My problem is the following ... 1. I want to write a plugin loader that loads a concrete plugin implementing IPlugin 2. I Plugin does something when its methods are called. Some methods take a parameter e.g. IPlugin.PerformWork(ISomeInterface RealImpl); assuming an implementation MyPlugin : IPlugin { /*SOMETHING HERE*/ PerformWork(ISomeInterface RealImpl) { Console.WriteLine("PLUGIN PERFORM WORK"); SayHelloWorld(); SaySomething(); } 3. How ISomeInterface looks like is defined in another library e.g. interface ISomeInterface { void SayHelloWorld(); void SaySomething(); } now I load the plugin from within my plugin loader and execute PerformWork(..) on the plugin. The plugin loa ...Show All
Evan Mulawski How redistribute Assembly?
Hi, I have a doubt. Which is the correct way to redistribute an assembly Thank you If you are referring to an assembly that you created, the best way is to create an MSI-based setup for it. There are tools in Visual Studio to create MSI-based setups, and you could also use the WiX toolset ( http://wix.sourceforge.net ). If you are referring to assemblies that are a part of the .NET Framework, you will need to redistribute the entire .NET Framework setup package. You can find deployment information for the .NET Framework at the following locations: .NET Framework 2.0 - http://msdn2.microsoft.com/en-us/aa480237.aspx .NET Framework 3.0 - http://msdn2.microsoft.com/en-us/library/aa ...Show All
grnr_r Does de Ado .net (2005) has a Memory Leak???
Hi there, I'm trying to create an applications that stores the log in a .MDB file, but per second i make 100/200 inserts in the database, the application is mente to be running for months. So i need a permanent connetion to the Mdb but if i use that the application never stop groing and eventuali stop when the machine has no more memory... How can i have a permanent connetions without have the memory leak... Thanks in advance AugCampos Another alternative that I just thought of that might work well for you is to save off the records to a text file and periodically start a thread that imports the text file into the Access database then closes the connection. While the import is happening the primary threa ...Show All
killfr0g Refrencing the COM not working
Below I have included the relevent source code; when ever I try to refrence the .tlb in VB.net 2003 HE or VC# Express 2005 it gives me the following error: A refrence could not be added. Converting the type library to a .net assembly failed. type library EButton was exported from a CLR and can not be re-imported as a CLR assembly using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace EButtons { [ InterfaceType ( ComInterfaceType .InterfaceIsIDispatch)] [ Guid ( "DBE0E8C4-1C61-41f3-B6A4-4E2F353D3D08" )] public interface _EButton { } [ Guid ( "C6659361-1625-4746-931C ...Show All
Paul Yau ASP.Net error message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Hi, I have been developing a web page which uses windows authentication to allow access to one group set up in the Active directory. I have impersonate set to true and would like to access a SQL server database. The SQL database accepts windows authentication and inparticular the AD group set up also has access to the required tables. If i set: <allow users="*"><deny users=" "> then it seems to work but as soon as this changes to: <allow users="Domain\ADGroup"><deny users=*"> the error below consistantly occurs. The connection string is as follows: Data Source=SQLServer;Initial Catalog=SSIS Configurations;Integrated Security=SSPI;Persist Security Info=False When it comes to accessi ...Show All
Residual Logic Games I want a Sample about MailReceiver Application (Simple Outlook just for Receiveing)(Just vb.net syntax)
I want Code an Application Which can Receive mail From a Mail address. How Can i code this ( Have anybody Such Application Source ) sorry for Bad Syntax! ...Show All
Andy_B Interop Thread Leak?
Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All
eldiener converting a byte array to a string?
I have a program that acts as a server and when it receives information I would like to get all the data until a break char is given. for example the return key. The problem I am having is converting the Byte Array back to a string, it seems to only be giving me numbers. If you would like me to post my code to explain then I will :D. As I point out in that thread, it is perfectly safe to convert byte arrays to and from strings if you use the Default encoding (which is ANSI and therefore an 8-bit encoding). Try your code WITH CONCRETE VALUES: byte [] ibyte2 = new byte [] { 0x0, 0xff, 0x40, 0x40, 0x41 }; string str2 = Encoding .ASCII.GetString(ibyte2); byte [] byte2 = Encodi ...Show All
Kent Boogaart Async HTTP POST/GET in VB .Net 2005 !!
Hi, I am a VB6 developer and I am learning VB 2005, I wanted to know how can I make HTTP POST AND GET requests in asynchronous mode , I wanted to use it to download file from HTTP servers Simultaneously (probably using multi-threading). Thanks. Deepak, You dont have to use asynchronous mode for such a feature, use threading you mentioned. Create a single component that can download a file, use a couple of threads to download the files. Thanks all for reply, I guess this will help me http://msdn2.microsoft.com/en-us/library/ms144246.aspx , will post after testing Check http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse.aspx . It is more efficient to use async IO t ...Show All
mosslake PROBLEM WITH FTP FIREWALL IN C#
My problem deals with the fact that I was able to FTP files to and from a friend's site that doesn't have a firewall but I now have the real FTP information and it does have a firewall and I have no idea how to FTP a file to this new FTP location. I am under severe time pressure and would like to see the commands necessary in C# and NET 2.0 to accomplish this goal. Here is an example I was given by the site administrator using DOS FTP to access and upload a file. I will change the passwords in the example below: ftp -n open edifxpbw.geia.com user yppc112 yppc110GX user 10033XDIR@edi.yppc.geia.com 15211 HENRY binary put DirectoryStart.dat %YPPC-TEST%DIR ls mblist Here is an example of an upload that I created in C# ...Show All
Micror filter question
Hello I've a access database on a site and I like to use a filter on that. But this filter must have 6 values. I try this in web developer express but then it doesn't show any output. Even I change the select statement from and to or. Is there an other solution for this, maybe with self written select statement So you mean your where statement will be build dynamically. Its better to use SqlParameter I mean parametrized query. So you have to options: 1. Generate the select statement like this: string sql = "Select col1, col2 from Table1 Where col1 like '" +textbox1.text+"' or col2 like '" + textbox2.text + "'" and so on 2. string sql = "SELECT ...Show All
Mark Coleman importing XML/ASCII files to SQL database using VB express
importing XML/ASCII files to SQl database using VB express Hi everyone, I have to write a program in VB to receive the read data from a RFID reader for my graduation project.The problem is I am not a computer science student so I have only general info on programming. I created my DB in VB express but I couldn't find out how to send the read data (that will be either in XML or ASCII format) to my database...The read data will be transferred to my computer by the RFID reader's software but after that I don'T know how to transfer it to my DB.As I know I have to use commands like read.xml etc,but no idea how write the complete program. I checked the f ...Show All
Ofir Epstein Hash values in .Net 2.0
Hi, I am studying hashing in .net 2.0. I came across this line by MSDN documentation while viewing GetHashCode The behavior of GetHashCode is dependent on its implementation, which might change from one version of the common language runtime to another. A reason why this might happen is to improve the performance of GetHashCode . If you require the behavior of GetHashCode to be constant, override the runtime implementation of GetHashCode with an implementation of your own that you know will never change. As this line states the gethashcode algorithm can change with each version of .net framework. Also the .net framework provides classes in System.Security.Crytography, SHA256Managed & others. These classes also provide a uniqu ...Show All
