Answer Questions
Allen Bergst Self modifying code in the CLR
Is self modifying code in the CLR possible To be more specific I had previously written a scripting engine for a game project in unmanaged C++. This worked by allocating a buffer big enough to hold the resulting code and then compiling it to x86 instructions using a mini compiler i wrote into memory and then creating a function pointer to the resulting code calling it. Will this work in managed code Or am i better off using IJW ...Show All
DoLoop Need Help, How to read the xml?
i have a xml file that contins context like: <cases> <case> <id>2</id> <operator>abc</operator> <saved>0</saved> <Exectors> <id>2</Id> <t>1</t> <name>abc</name> <telephone>1234</telephone> </Exectors> </case> <!-- more case node --> </cases> Each case node of the xml file cont ...Show All
Nishad.A.R TableAdapters and Identities
I am using tableadapters to add a new row to my db. The code is below. DomainsTableAdapter Domain = new DomainsTableAdapter (); UserManagementDAL . DomainsRow DomainRow; UserManagementDAL . DomainsDataTable DomainsTbl = new UserManagementDAL . DomainsDataTable (); DomainRow = DomainsTbl.NewDomainsRow(); DomainRow.DomainName = this .DomainName; DomainRow.ServerName ...Show All
nielsvdc There is already an open DataReader associated with this Command which must be closed first.
I have a rather large ASP-NET-2.0 project that I've been developing for some time. I'm using System.Data.Common classes for all of my data access, and SQL-2005 as my provider. Up to and including Beta-2, everything was working just fine and dandy. Then, with the release of RC1, I suddenly started to get the following error:: There is already an open DataReader associated with this Command which must be closed first. This totally threw me, b ...Show All
Josh L Decimal Tostring help
Please help guys, I'm reading a decimal value from my database for display on my winforms textbox. I call a method with the returned decimal... private void SetValue( decimal Value) { string tmpVal = Value.ToString; } at this point, if the Value parameter passed is something like 100 tmpVal is set to 100.00 and if the Value is something like 12.09 tmpVal is set to 12.090000 I dont understand it ...Show All
C&#35;Re_eYe got problem when try to connect a Access database remotely
Hi everyone, I have a c# desktop application, and it connected to a Access database, everyting was fine, my connection string (in app.config) was: <add key="LocalPath" value="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:/app1/database/patientRecords.mdb; User Id=admin; Password=;" /> however, now I need to access this database through Internet, so I change my connection string to: <add key="LocalPath" va ...Show All
RickInHouston Difference between (int), Int32.Parse and Convert.ToInt32?
Hi, I have been wondering. In which scenario, I should be using (int), Int32.Parse and Convert.ToInt32 Or are they the same I do notice in certain condition that i cannot cast directly using (int) and I have to use Convert.ToInt32. I am not that sure why i do that. I just need some confirmations from you all. Thank you. Cheers. Thanks for the replies. Now i understand. One more question. Is (int) same with Int32.Pars ...Show All
Chartsiam vb2005-access connection string
ive used vb6 before now im trying to convert my vb6 apps into vb2005. im having problem with my dsn-less connection string which is Dim cs As New ADOR.Recordset Dim rs As New ADOR.RecordsetClass Dim li As ListViewItem Public Sub con() Call dis() 'dsn less access connection & ...Show All
Jia_1999 Cannot Desrialize what i have serialized
Hi I have an object which inherits other object. My base object has few public properties of type IList. When i serialize my derived object, there is no problem. When i try to desrialize the xml back to my derived object, it throws an error which says "Could not deserialize global::System.Collections.IList. Parameterless constructor is required for collection and enumerators". The same works in .NET 1.1 and not in 2.0. ...Show All
Assar Error 1053: The service did not respond to the start or control request in a timely fashion...
Please help! Error 1053: The service did not respond to the start or control request in a timely fashion... I receive this error when trying to start a simple Windows Service i've made in .NET 1.1. This happens only at my first attempt to start the service. The second attempt succeeds. Pausing and resuming have no problems. After I stop it i recieve the same Error 1053 at the first attempt. DETAILS : The event handles for the Stop and Start Ev ...Show All
CharlestonSW.com Unable to use FTPWebRequest over SSL
Hi I have been trying to connect to a FTP server using SSL. I have followed the example on MSDN - ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref10/html/P_System_Net_FtpWebRequest_EnableSsl.htm However I keep getting an exceptions when then “ request.GetResponse ” method is called. The exceptions is “WebException” and message is “The underlying connection was closed: The server committed a protocol violation” &nb ...Show All
Charles Wildner Open File dialog doens't open files
Hi, I have this code to open a dialog box. It opens the dialog box allright, but then if i choose a .txt to open, Notepad isn't being launched. Nothing happens. Any help would be apreciated. Warm Regards, mamrg. -- private void openToolStripMenuItem_Click(object sender, EventArgs e) // File -> Open Dialog Box { OpenFileDialog dialog = new OpenFileDialog(); dialog.Title = "Browse to find file to open"; dialo ...Show All
Rayco J. Bug with NullableConverter ?
When attempting to convert Decimal to Decimal at runtime Type targetType = typeof(decimal ); decimal newPropertyValue = 2.3; -------------------------------------- NullableConverter nullConverter = new NullableConverter (targetType); &nbs ...Show All
Federico Provera Performance of ADO.Net in CLI Console app vs Windows Forms app
I have been playing with ADO.Net and at first, I created a CLI console application, where I did different things, such as querying the schema collections of a database. I then created a Windows Forms application and did similar things (wrote code from scratch). What strikes me is that some simple calls that took no time under the console app now take a long time under Forms. I use VS C++ and SQL Server 2005 Express on a Win2000 PC and the ODB ...Show All
rkonda Xml Namespaces
I have code which creates an XmlDocument from a file including namespacesXmlDocument document = new XmlDocument(); document.Load(filename);I want to do an xpath query /my:doc/my:section/more(possibly other namespaces)I am using an XmlNamespaceManagerXmlNamespaceManager manager = new XmlNamespaceManager(document.NameTable);when I run the above XPath query I get errors, so I have been able to temporariliy remedy the situation bymanager.AddNamespac ...Show All
