Answer Questions
Lucas Almeida single transaction between different methods
I need to run a single transaction on the single database (sql 2005) between several methods (.net 2.0, c#). I made required preparations: cn.Open(); // connection SqlCommand mySqlCommand = cn.CreateCommand(); SqlTransaction mySqlTransaction = cn.BeginTransaction(); mySqlCommand.Transaction = mySqlTransaction; mySqlCommand.Connection = cn; then I tried to pass to each method open connection (cn) and sqlcommand ...Show All
Karthik R Athalon 64 problem with Win XP Home Editon
I am sorry if this is the wrong catagory for this topic... I have been having problems with a reboot issue... my systems specs. are at the bottom of this page... I have flashed by BIOS... All the parts are compatible... I thought maybe it would be a power issue... then a heat issue... Then i was believing Windows just hates me... But i believe there is an answer to all this... To describe the Reboot: I will be working on the computer ...Show All
Rhys Thomas Unwanted promotion using TransactionScope
Hi, I wanted to test System.Transaction and using TransactionScope. So I wrote a little factory class which has very basic CRUD functionality. One of it's methods is CreateName: public static Name CreateName( string nameValue) { using ( SqlConnection connection = new SqlConnection( Properties. Settings .Default.TestDB)) { return Crea ...Show All
Munkii ExecuteNonQuery hangs
Hi All, I posted a question some days ago, but didnt get any response. I guess I didnt word it properly. I'll try my best this time.... This is what I did: Create Command(connection, myTransaction) Set TimeOut property Try myCommand.ExecuteNonQuery() myTransaction.Commit() Catch ex as Exception myTransaction.Rollback() End try But the app hangs at myCommand.ExecuteNonQuery() statement. So, I tried to do it differently: I try to run the Exe ...Show All
RvA Invalid character value for cast specification.
Hi all, I am runing SQL Server 2000, Windows 2003, and doing this in C# on .Net Framework 2.0. I have the SQL Statement: insert into test_table (col_1) values ( ) OleDbParameter Value = 65788 OleDb Data Type is OleDbType .Numeric col_1 has a data type of Numeric(18,0) But I keep getting this error message: Invalid character value for cast specification. The same procedure works for all column type available on SQL Serv ...Show All
Mandypenny StrongNameIdentityPermission
ok bear with me here as I am not exactly sure if I am using this correctly: I am fooling around with StrongNameIdentityPermission I have two assemblies (both assigned the same .snk file in there AssemblyInfo.cs) Assembly Namespace MyApp.Utility.dll MyApp.Utility MyApp.exe &nbs ...Show All
Hrvoje Zlatar The server response was: [PERMFAIL] destination not valid within DNS ?
I am trying to send email using SmtpClient, it was working then I started getting the above error. Any suggestions would be greatly appreaciated. I have searched for two days without success. Here is my code and the stacktrace for the error message. public void CreateMessage( string sServer, string sMailFrom, string sFromName, string sMailTo, string sSubject, string sMessage, string sSignature) { Handshake(sServer ...Show All
Waseem Sadiq where does ServiceController gain its authority to start and stop services?
OK, second time I'm posting this question... some a-hole thought it was off topic on the windows forms forum (so they just deleted it... how nice eh ). guess since its a Component and not quite a "control" its out of place... how lame. my question is about the service controller. I started looking at it today, but do not see anywhere that allows someone to specify "who" is controlling the services. Where does the service controller d ...Show All
tarusoft What type of security should I use on web app(asp.net)
Hi, Hopefully I've posted in the correct forum. I have a relatively simple C# asp.net web app that a user enters personal data it POST's back to the server and an email is sent to a specific user with that data. I have all the code and everything working, my problem now is security. I want to implement some on the POST and on the email, but hopefully with no cost$(third party) involved and conceptually easy to develop. I've looked at the ...Show All
iffishah 64-bit .NET Framework won't install
Hi, I'm trying to load Microsoft SQL Server 2005 Express Edition - Community Technology Preview June 2005. I have an AMD 64 bit Athlon processor and I'm running Windows XP Professional SP2. I understand that .NET x64 is required but the install fails with the message "error creating process, reason = Windows\system32\advpack.dll. Can anyone help me out with this one Thanks, Marta I am also ha ...Show All
FernandoT ConflictOption.CompareRowVersion and Oracle
Hi, We are using Oracle 10g with VS 2005 (C#), and we want to use optimistic concurrency control. We also want to use DataSets as Business Entities and want the CommandBuilder to generate the Update, Insert and Delete SQL statements automatically based of course on the Select statement. I’ve managed to get it all working, but I want to use a Timestamp column in the tables with the ConflictOption set to CompareRowVersion as the optimist ...Show All
egreen Appending from file to file
Hi, Im having a lil problem with 2 xml files. Im trying to append from file to file with C#. One xml file is on my pc, the other one is on the server. The xml file on the server gets input for appointments. They look like this: [code] < xml version="1.0" standalone="yes" > <Agenda> <Appointment> <Id> 1 </Id> <Date> 20060604 </Date> <Time> 120000 </Time> <Subject> whatever </Subje ...Show All
jarka Multithreading and Synchronization
Good Day! I'm a new member of this forums and I would like to seek some assistance regarding multithreading and synchronization. I was wondering if someone can provide me a simple approach in understanding these concepts. It was nice knowing that there are forums like this where IT professional can interact and share ideas. Thank you very much! Just as a very quick overview, multithreading is primarily used two ways: 1) Separate long- ...Show All
Huy V Nguyen making a data type unique across web services
I'm writing client and webservice code. The problem is that in the client, i get ambiguous references when i use a common data type. How do i make computed Permissions one and only, unique across all my webservices Thanks. Error 102 'ComputedPermissions' is an ambiguous reference between 'MyCompany.XXX.API.AdminServiceWSE.ComputedPermissions' and 'MyCompany.XXXt.API.SearchServiceWSE.ComputedPermissions' D:\src ...Show All
gcs_78 Why Namespace xmlns="" always in Child element when use IXMLDOMDocument2Ptr?
I use IXMLDOMDocument2Ptr to create a root element. Then, use setAttribute to set Namespace xmlns. Then use IXMLDOMDocument2Ptr to create a child element. To my supprise, xmlns="" is always attached to child element. Anyone can tell me how to avoid this problem Thanks! Helena: You are right. We must use createNode with default namespace xmlns=".....". And also, we have to do this for all nodes. ...Show All
