Answer Questions
Ricardo Costa GetProperties->GetObjectData exception
I posted once already but can no longer find it. Why does the following throw the exception throw the exception: "Only FieldInfo, PropertyInfo and SerializationMemberInfo are recognized" class Foo { public int _property; p ...Show All
monstero Collection was modified,Enumeration operation may not execute
Hi all, I've got " Collection was modified,Enumeration operation may not execute " error message that i never found before. it's make me confuse to solve this error. below this, that is my error code : Dim xRow As DataRow For Each xRow In oData.Tables("tblDetails").Rows If Trim(xRow("pd2")) = Trim(nArray(1)) Then xRow.BeginEdit() xRow("pd1") = nArray(0) xRow("pd2") = nAr ...Show All
joeciv How Can I Specify the Source IP of a SoapHttpClientProtocol?
I've got a program that's running on a machine with a bunch of IP addresses. I need it to send a request to a web service, but I need to specify which IP address that request will come from. It's the equivalent of a bind() in TCP/IP. How can I do this I'm curious. Why does it matter to you which IP address is used Hello Uncaged :) Yes you can do this. How are you trying to call ...Show All
webcliff TransactionScope and TableAdapters
Hi people, I'm having the following error when wrapping my TableAdapter updates inside a TransactionScope: using (TransactionScope ts = new TransactionScope()) { tableAdapter1.Update(); tableAdapter2.Update(); ts.Complete(); } <--- CODE FAILS AT THIS POINT All seems well until I get to the dispose of the using clause. At this point I get a NullReferenceException: Object reference not set t ...Show All
Shoven Generate Dataset VS.Net 2005
Hi In VS.Net 2003 I could Create an Xml file. Sketch out some nodes. Right click and create an Xsd The Xsd got added to the project I could open the Xsd and right click and Generate Dataset Then use the Strongly Typed Dataset I am using RC0 VS.Net 2005 It seems this flow is no longer there. I've worked around it. It takes several steps. Is the flow hidden somewhere Thanks Hi, John you wrote: The typed ...Show All
doomgaze Declare event in CodeDOM
How to implement Public Class AClass Public Event StatusChanged(ByVal percent as Integer, ByVal message as String) ... Enc Class in CodeDOM I could not find references on adding parameters to CodeMemberEvent... CodeDom is constrained to supporting only a common subset of syntaxes between all languages. In this case VB is offering a syntax that C# does not offer - declaring an event w/o specifyi ...Show All
e-an BindingList<T> implementation
I have written a set of custom business objects along with a collection to hold these objects that can be bound to any UI control. To accomplish this, I wrote my collection class to derive from BindingList<T>. As my custom business object can of course contain custom child objects, does each business object have to implement IEditableObject, or will the generic BindingList class take care of this for me In other words, if the collection de ...Show All
gb__ Cannot connect WinXP to Win2000
Hi guys, I am trying to create a linkup between a Win2000 PC and WinXP notebook via a cross-over cable. I've configured the IP addesses on both systems, ie. 192.168.0.1, 192.168.0.2 respectively. After restarting the PCs, both seems to be able to see each other by pinging each other. In fact, my Win2000 PC can even access my WinXP's shared folders. However, this is not true the other way round. My WinXP notebook cannot access my Win2000 files, ...Show All
Randine Socket BeginAccept Method Memory Leak?
Hi, After copy and pasting the code from the MSDN sample "Asynchronous Server Socket Example" - http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconnon-blockingserversocketexample.asp into a Windows Library project (DLL) for use in a server I'm writing, I'm finding that each request from my client application causes a growth in memory of 4-8KB in the server application. This doesn't seem to be reclaimed at a ...Show All
Shaun M. XML-DSig and PKCS#12
Hello! I need to sign a XML file. Format: www.w3.org.2000/09/xmldsig The certificate is stored as "PKCS#12" (I think this is called "softtoken container" ! ). Is everything I need for accessing the certificate and signing the XML inplemented in .NET 2.0 / VS 2005 Are there programming examples with SourceCode available for this Best regards CSharpNewbie22 Hello Is this question too complicated Is ...Show All
cskcsk .Net 2.0 and 1.1 ???
I am bit confused about .Net 2.0...my question is: Can i run .Net 1.1 or .Net 1.0 applications using .Net 2.0 and Can i build .Net 2.0 Applications using Visual Studio 2003 thanks Humayun Shabir SourceSystems.net Hi Humayun, in general .NET Framework 2.0 was created to extend the .NET Framework 1.1 and not to change. Although there were certain design issues that resulted in changes to be more con ...Show All
Smaldust Append a node not to the root
Im trying to append a node to my xml file but it is not at the root and i dont know how to do this. can anyone help i want to add the following 2 nodes into my xml file: <Conference Bridge>020 74152 58</Conference Bridge> <Pin>*1234*</Pin> My xml file is: - < Dataset1 xmlns =" http://tempuri.org/Dataset1.xsd " > - < CrisisManagementGroup > <Conference Bridge>020 74152 58</Conferen ...Show All
TaTas This must be a dumb question
I'm very new to XML and am completely confused by namespaces. I've created a schema and xml data file but I'm having problems validating the data, I get the error "Visual Studio could not locate a schema for this document". Here's a cut down copy of the schema and data file. I hope someone can show me the error of my ways! < xml version="1.0" encoding="UTF-8" > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> ...Show All
Jon Monreal Update parts of an dataset
I've got an Master and a Child table and i use an BindingSource object to join them. When I click on a row in the master table i get all its child rows. Now I want to update this rows with my dataAdapter. Now it's the problem how I only get the changes from the selection that is actually visible, because i don't want to save the other rows I maybe changed before. I tried it like this: Dim dv As New DataView(DataSet, "ID = " & id ...Show All
MarkLuo COM and .NET2 Interoperability
Hi! I was started migrating project to Visual Studio 2005 and I discovered problem with iterating through collection from COM object. This was working fine in VS2003, but now I get this error: "Unable to cast COM object of type 'System.__ComObject' to class type 'OurLibrary.OurClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ ...Show All
