eralper's Q&A profile
SQL Server New transaction cannot enlist in the specified transaction coordinator.
I receive above error during a COM+ component call between web and db servers. Web Server: Windows 2003 SP1 Database Server: Clustered, SQL Server 2005 SP1, Windows 2003 SP1 I setup SQL and MSDTC clustered resources per instructions. I set "Enable Network DTC" on . I set "No authenticated required" on both servers' DTC settings. I set "NT Authority\NertworkService" on both servers' DTC settings. Using the SQL Profiler utility I can see that DTC connects but cannot execute the stored procedure. Consistently fails with error: "New transaction cannot enlist in the specified transaction ...Show All
.NET Development DateTimePicker in DataGridView
I am using the whidbey Beta version. I have a DataGridView object in a form. One of the columns is of type date. I want to have a DateTimePicker in that column. There is a link to do this on msdn2 http://msdn2.microsoft.com/library/7tas5c80%28en-us,vs.80%29.aspx But I am afraid, the link does not contain any information. Any help would be appreciated. ...Show All
Visual FoxPro Performance of VFP 5.0 vs. VFP 9.0
Looking to move to newer version of foxpro but was wondering if anyone has done some testing on the performance and resource requirements for an application written in VFP 9.0 vs VFP 5.0. Assume free tables being used initially. Any information would be greatly appreciated. Performance is good in general but I never thought it as the primary reason to make a move. Your existing code might not be fully compatible with VFP9. Think about it first. If I wanted to I could create test code to show it VFP5 is faster or slower than VFP9. An expert would notice the 'cheat' in code and optimize. In other words the ...Show All
.NET Development LocalEndPoint of underlying socket
Hi, If I bind a socket to IPAddress.Any, and accept a client connection, is there a means of identifying the actual IP address that the client connected to I would have thought that LocalEndPoint of the underlying socket would hold this, but it seems to be null. Code snippet below. Many thanks, Robert. [...] void sockStart() { Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); s.Bind(new IPEndPoint(IPAddress.Any, port)); s.Listen(100); while (!shuttingDown) { allDone.Reset(); s.BeginAccept(new AsyncCallback(this.AcceptCallback), s); allDone.WaitOne(); } s.Close(); } ...Show All
Visual Studio Express Editions My.Settings Values Read Only
Hello All, I have a bit of a problem here and I can't seem to figure it out. My project is a Class Library. This Class Library is one project which is part of a larger solution. I have several application settings which are set up as part of the project. Within the Class Library's root class, Application, there are two methods. GetSettings and SaveSettings. GetSettings retreives the My.Settings values and sets them as various property values within the Application class. This part works fine. The SaveSettings method retreives the property values from the class and attempts to place them back into My.Settings and then execute My.Settings.S ...Show All
SQL Server SQL Server 2005 - TCP "Keep Alive" problem / not working
We tested this new feature ("Keep Alive" for orphant connections to automatically close) with no success - neither the standard properties nor slightly changed properties worked. We tested like this: SQL Server 2005 - ADO.NET Client The client established an explicit lock on one row at one database. Afterwards we disconnected the client by pulling out the network-cable. We waited about 35 sec for the sessios to close - but nothing happend; we waited another minute but nothing changed. SQL Server Management Studio and the command line "netstat" told us that the connections are alive ... so what went wrong Did we miss so ...Show All
.NET Development Adding install condition
Hello. Under VS 7.1 the installer by default has install condition that verifies .NET Framework 1.1 presence. How do I add another condition that would verify .NET Framework 2.0 presence In saying that, you can still add a .NET Framework launch condition via the old way: 1. Create a new setup project 2. Right-click on the Setup project node in Solution Explorer and choose View -> Launch Conditions 3. Right-click on Requirements for Target Machine and Add .NET Framework Launch Condition . ...Show All
Windows Forms Datagridview and Endedit issue
The Problem: When I close a form, the current cell that is being edited in the datagridview doesn't save properly to the database. The Save Code so far: this .Validate(); this .items_tblDataGridView.EndEdit(); // Doesn't appear to make a difference this .items_tblBindingSource.EndEdit(); this .items_tblTableAdapter.Update(mPSDataSet.Items_tbl); I've also tried using " this .items_tblBindingSource.CurrencyManager.EndCurrentEdit()" as well, but no dice. Thank you for any help. -Colin I'm still having the issue, but found out that it is most likely that the closing "cont ...Show All
.NET Development Right sequence to get datatable updates written back to the database?
I have a DataGridView that I've manually bound to a DataTable (which is populated from a DataSet via a SQLDataAdapter). The user can go through and toggle a boolean column value and then save the results. I can see (via Rowstate) that the rows in the DataTable have been modified, but I can't seem to get them to be written back to the database. I've tried both acceptchanges at the DataTable level and update at the SQLDataAdapter level. I've looked through all the examples I can find and they just seem to be missing my situation. Is there an example that just wires up a database table to a DataTable, modifies ...Show All
Visual J# doesnt show up in the dropdown list as a useable method (post for brian)
Working on an unrelated program, but this kinda falls into a related topic. I have 2 forms in this example, form_main and form_abilities. When you hit a button, form_main is hidden, and a new instance of form_abilities is created/shown with form_main as the owner. form_main has a method like the following: public void ability_close(int a, int b, int c, int d, int e, int f) { //some irrelevent code here } when inside form_abilities, I've tryed to use: get_Owner().ability_close(a,b,c,d,e,f); but it doesnt show up in the dropdown list as a useable method, and if I manually type it in I get a "Cannont find metho ...Show All
Visual Studio Command routing question
Hi, I'm writing a package and I'd like to intercept some commands that are executed from menus created by another package. I understand from some VS architecture discussion that commands are normally routed to the package that defines the command and that not every command is routed to every package. It's stated that it is possible to override this behaviour with a priority command target so that my package can override other packages. I don't want to change the behaviour of the other package; I just wanted to be notified when a command is executed and add my own custom behaviour (along with do what the owner package does). ...Show All
Windows Forms Overriding OnPaint on ComboBox
Hello, I'm newbie in C# and .NET and I need to use user control inherited from combobox. So, in constructor I set: SetStyle(ControlStyles.UserPaint | ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true); Now I can free paint over my combobox, but over everything I painted is uggly black box, which represents the place where the new typed text is placed. This text is draw by standard system font Black on White, and ignores font settings in control params. Can anyone say me, why the control behaves like this Thanx From the MSDN: ComboBox.Paint Even ...Show All
Visual C# How to overwrite an existing Bitmap file
using ( Bitmap bitmap = new Bitmap (( int )(scale * page.Width), ( int )(scale * page.Height))) { Graphics graphics = Graphics .FromImage(bitmap); graphics.SmoothingMode = SmoothingMode .AntiAlias; graphics.ScaleTransform(scale, scale); graphics.Clear( Color .White); page.Draw(graphics); bitmap.Save( "C:\\Image.tiff" , ImageFormat .Tiff); } As you can see in the code above, I am generating a Bitmap and saving it as image.tiff. I want to beable to re-run this piece of code over and over, but the bitmap.save does not allow you to re-write over the same file, how to I achieve this ...Show All
Windows Forms Store/load form settings with a generic Settings class?
Hi, I have a form containing graphical components such as textboxes, checkboxes and radiobuttons. When the program closes I want a Settings class to handle the state of these components and Save/Load them to/from a text file. I want the Settings class to be able to retrieve the state from each component without hard coding each component in the Settings&nb ...Show All
Smart Device Development How i can access pocket pc 2002's appointment?
Anyone say POOM,but these sample 's code is writted by C++, I don't understand C++,only C#. who can help me These samples may help: .NET Compact Framework Sample: POOM Wrapper: http://www.microsoft.com/downloads/details.aspx FamilyId=80D3D611-CC81-4190-AAB4-B1EA57637BAC&displaylang=en .NET Compact Framework Sample: InTheHand PocketOutlook http://www.microsoft.com/downloads/details.aspx familyid=40691E57-F6E4-43F3-8018-657E0A6B81DA&displaylang=en Michael ...Show All
